From 9d9c2e40774eb0586332cd81c9f841992219eb9a Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Mon, 8 Apr 2019 14:17:50 -0700 Subject: [PATCH 01/14] Runs rails new --- .gitignore | 3 + .ruby-version | 1 + Gemfile | 81 ++++++ Gemfile.lock | 274 ++++++++++++++++++ Guardfile | 9 + Rakefile | 6 + app/assets/config/manifest.js | 3 + app/assets/images/.keep | 0 app/assets/javascripts/application.js | 16 + app/assets/javascripts/cable.js | 13 + app/assets/javascripts/channels/.keep | 0 app/assets/stylesheets/application.css | 15 + app/channels/application_cable/channel.rb | 4 + app/channels/application_cable/connection.rb | 4 + app/controllers/application_controller.rb | 2 + app/controllers/concerns/.keep | 0 app/helpers/application_helper.rb | 2 + app/jobs/application_job.rb | 2 + app/mailers/application_mailer.rb | 4 + app/models/application_record.rb | 3 + app/models/concerns/.keep | 0 app/views/layouts/application.html.erb | 15 + app/views/layouts/mailer.html.erb | 13 + app/views/layouts/mailer.text.erb | 1 + bin/bundle | 3 + bin/rails | 9 + bin/rake | 9 + bin/setup | 36 +++ bin/spring | 17 ++ bin/update | 31 ++ bin/yarn | 11 + config.ru | 5 + config/application.rb | 26 ++ config/boot.rb | 4 + config/cable.yml | 10 + config/credentials.yml.enc | 1 + config/database.yml | 85 ++++++ config/environment.rb | 5 + config/environments/development.rb | 61 ++++ config/environments/production.rb | 94 ++++++ config/environments/test.rb | 46 +++ config/initializers/action_view.rb | 1 + .../application_controller_renderer.rb | 8 + config/initializers/assets.rb | 14 + config/initializers/backtrace_silencers.rb | 7 + .../initializers/content_security_policy.rb | 25 ++ config/initializers/cookies_serializer.rb | 5 + .../initializers/filter_parameter_logging.rb | 4 + config/initializers/inflections.rb | 16 + config/initializers/mime_types.rb | 4 + config/initializers/wrap_parameters.rb | 14 + config/locales/en.yml | 33 +++ config/puma.rb | 34 +++ config/routes.rb | 3 + config/spring.rb | 6 + config/storage.yml | 34 +++ db/seeds.rb | 7 + lib/assets/.keep | 0 lib/tasks/.keep | 0 log/.keep | 0 log/development.log | 0 package.json | 5 + public/404.html | 67 +++++ public/422.html | 67 +++++ public/500.html | 66 +++++ public/apple-touch-icon-precomposed.png | 0 public/apple-touch-icon.png | 0 public/favicon.ico | 0 public/robots.txt | 1 + storage/.keep | 0 test/application_system_test_case.rb | 5 + test/fixtures/.keep | 0 test/fixtures/files/.keep | 0 test/helpers/.keep | 0 test/integration/.keep | 0 test/mailers/.keep | 0 test/models/.keep | 0 test/system/.keep | 0 test/test_helper.rb | 26 ++ vendor/.keep | 0 80 files changed, 1376 insertions(+) create mode 100644 .ruby-version create mode 100644 Gemfile create mode 100644 Gemfile.lock create mode 100644 Guardfile create mode 100644 Rakefile create mode 100644 app/assets/config/manifest.js create mode 100644 app/assets/images/.keep create mode 100644 app/assets/javascripts/application.js create mode 100644 app/assets/javascripts/cable.js create mode 100644 app/assets/javascripts/channels/.keep create mode 100644 app/assets/stylesheets/application.css create mode 100644 app/channels/application_cable/channel.rb create mode 100644 app/channels/application_cable/connection.rb create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep create mode 100644 app/helpers/application_helper.rb create mode 100644 app/jobs/application_job.rb create mode 100644 app/mailers/application_mailer.rb create mode 100644 app/models/application_record.rb create mode 100644 app/models/concerns/.keep create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100755 bin/bundle create mode 100755 bin/rails create mode 100755 bin/rake create mode 100755 bin/setup create mode 100755 bin/spring create mode 100755 bin/update create mode 100755 bin/yarn create mode 100644 config.ru create mode 100644 config/application.rb create mode 100644 config/boot.rb create mode 100644 config/cable.yml create mode 100644 config/credentials.yml.enc create mode 100644 config/database.yml create mode 100644 config/environment.rb create mode 100644 config/environments/development.rb create mode 100644 config/environments/production.rb create mode 100644 config/environments/test.rb create mode 100644 config/initializers/action_view.rb create mode 100644 config/initializers/application_controller_renderer.rb create mode 100644 config/initializers/assets.rb create mode 100644 config/initializers/backtrace_silencers.rb create mode 100644 config/initializers/content_security_policy.rb create mode 100644 config/initializers/cookies_serializer.rb create mode 100644 config/initializers/filter_parameter_logging.rb create mode 100644 config/initializers/inflections.rb create mode 100644 config/initializers/mime_types.rb create mode 100644 config/initializers/wrap_parameters.rb create mode 100644 config/locales/en.yml create mode 100644 config/puma.rb create mode 100644 config/routes.rb create mode 100644 config/spring.rb create mode 100644 config/storage.yml create mode 100644 db/seeds.rb create mode 100644 lib/assets/.keep create mode 100644 lib/tasks/.keep create mode 100644 log/.keep create mode 100644 log/development.log create mode 100644 package.json create mode 100644 public/404.html create mode 100644 public/422.html create mode 100644 public/500.html create mode 100644 public/apple-touch-icon-precomposed.png create mode 100644 public/apple-touch-icon.png create mode 100644 public/favicon.ico create mode 100644 public/robots.txt create mode 100644 storage/.keep create mode 100644 test/application_system_test_case.rb create mode 100644 test/fixtures/.keep create mode 100644 test/fixtures/files/.keep create mode 100644 test/helpers/.keep create mode 100644 test/integration/.keep create mode 100644 test/mailers/.keep create mode 100644 test/models/.keep create mode 100644 test/system/.keep create mode 100644 test/test_helper.rb create mode 100644 vendor/.keep diff --git a/.gitignore b/.gitignore index 74b0d5d2c..40b6a3061 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc .DS_Store + +# Ignore master key for decrypting credentials and more. +/config/master.key diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 000000000..25c81fe39 --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +ruby-2.5.1 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 000000000..e665f46d3 --- /dev/null +++ b/Gemfile @@ -0,0 +1,81 @@ +source 'https://rubygems.org' +git_source(:github) { |repo| "https://github.com/#{repo}.git" } + +ruby '2.5.1' + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.2.3' +# Use postgresql as the database for Active Record +gem 'pg', '>= 0.18', '< 2.0' +# Use Puma as the app server +gem 'puma', '~> 3.11' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'mini_racer', platforms: :ruby + +# Use CoffeeScript for .coffee assets and views +# gem 'coffee-rails', '~> 4.2' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 4.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use ActiveStorage variant +# gem 'mini_magick', '~> 4.8' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +# Reduces boot times through caching; required in config/boot.rb +gem 'bootsnap', '>= 1.1.0', require: false + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] +end + +group :development do + # Access an interactive console on exception pages or by calling 'console' anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '>= 3.0.5', '< 3.2' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +group :test do + # Adds support for Capybara system testing and selenium driver + gem 'capybara', '>= 2.15' + gem 'selenium-webdriver' + # Easy installation and use of chromedriver to run system tests with Chrome + gem 'chromedriver-helper' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] + +gem 'jquery-turbolinks' +gem 'jquery-rails' +group :development, :test do + gem 'pry-rails' +end + +group :development do + gem 'better_errors' + gem 'binding_of_caller' + gem 'guard' + gem 'guard-minitest' +end + +group :test do + gem 'minitest-rails' + gem 'minitest-reporters' + gem 'minitest-skip' +end diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..e5a2992a5 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,274 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.2.3) + actionpack (= 5.2.3) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + actionmailer (5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.2.3) + actionview (= 5.2.3) + activesupport (= 5.2.3) + rack (~> 2.0) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.2.3) + activesupport (= 5.2.3) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.2.3) + activesupport (= 5.2.3) + globalid (>= 0.3.6) + activemodel (5.2.3) + activesupport (= 5.2.3) + activerecord (5.2.3) + activemodel (= 5.2.3) + activesupport (= 5.2.3) + arel (>= 9.0) + activestorage (5.2.3) + actionpack (= 5.2.3) + activerecord (= 5.2.3) + marcel (~> 0.3.1) + activesupport (5.2.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.6.0) + public_suffix (>= 2.0.2, < 4.0) + ansi (1.5.0) + archive-zip (0.12.0) + io-like (~> 0.3.0) + arel (9.0.0) + better_errors (2.5.1) + coderay (>= 1.0.0) + erubi (>= 1.0.0) + rack (>= 0.9.0) + bindex (0.7.0) + binding_of_caller (0.8.0) + debug_inspector (>= 0.0.1) + bootsnap (1.4.3) + msgpack (~> 1.0) + builder (3.2.3) + byebug (11.0.1) + capybara (3.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (~> 1.8) + rack (>= 1.6.0) + rack-test (>= 0.6.3) + regexp_parser (~> 1.2) + xpath (~> 3.2) + childprocess (0.9.0) + ffi (~> 1.0, >= 1.0.11) + chromedriver-helper (2.1.1) + archive-zip (~> 0.10) + nokogiri (~> 1.8) + coderay (1.1.2) + concurrent-ruby (1.1.5) + crass (1.0.4) + debug_inspector (0.0.3) + erubi (1.8.0) + execjs (2.7.0) + ffi (1.10.0) + formatador (0.2.5) + globalid (0.4.2) + activesupport (>= 4.2.0) + guard (2.15.0) + formatador (>= 0.2.4) + listen (>= 2.7, < 4.0) + lumberjack (>= 1.0.12, < 2.0) + nenv (~> 0.1) + notiffany (~> 0.0) + pry (>= 0.9.12) + shellany (~> 0.0) + thor (>= 0.18.1) + guard-compat (1.2.1) + guard-minitest (2.4.6) + guard-compat (~> 1.2) + minitest (>= 3.0) + i18n (1.6.0) + concurrent-ruby (~> 1.0) + io-like (0.3.0) + jbuilder (2.8.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.3) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + jquery-turbolinks (2.1.0) + railties (>= 3.1.0) + turbolinks + listen (3.1.5) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) + loofah (2.2.3) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + lumberjack (1.0.13) + mail (2.7.1) + mini_mime (>= 0.1.1) + marcel (0.3.3) + mimemagic (~> 0.3.2) + method_source (0.9.2) + mimemagic (0.3.3) + mini_mime (1.0.1) + mini_portile2 (2.4.0) + minitest (5.11.3) + minitest-rails (3.0.0) + minitest (~> 5.8) + railties (~> 5.0) + minitest-reporters (1.3.6) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + minitest-skip (0.0.1) + minitest (~> 5.0) + msgpack (1.2.9) + multi_json (1.13.1) + nenv (0.3.0) + nio4r (2.3.1) + nokogiri (1.10.2) + mini_portile2 (~> 2.4.0) + notiffany (0.1.1) + nenv (~> 0.1) + shellany (~> 0.0) + pg (1.1.4) + pry (0.12.2) + coderay (~> 1.1.0) + method_source (~> 0.9.0) + pry-rails (0.3.9) + pry (>= 0.10.4) + public_suffix (3.0.3) + puma (3.12.1) + rack (2.0.7) + rack-test (1.1.0) + rack (>= 1.0, < 3) + rails (5.2.3) + actioncable (= 5.2.3) + actionmailer (= 5.2.3) + actionpack (= 5.2.3) + actionview (= 5.2.3) + activejob (= 5.2.3) + activemodel (= 5.2.3) + activerecord (= 5.2.3) + activestorage (= 5.2.3) + activesupport (= 5.2.3) + bundler (>= 1.3.0) + railties (= 5.2.3) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.4) + loofah (~> 2.2, >= 2.2.2) + railties (5.2.3) + actionpack (= 5.2.3) + activesupport (= 5.2.3) + method_source + rake (>= 0.8.7) + thor (>= 0.19.0, < 2.0) + rake (12.3.2) + rb-fsevent (0.10.3) + rb-inotify (0.10.0) + ffi (~> 1.0) + regexp_parser (1.4.0) + ruby-progressbar (1.10.0) + ruby_dep (1.5.0) + rubyzip (1.2.2) + sass (3.7.4) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + selenium-webdriver (3.141.0) + childprocess (~> 0.5) + rubyzip (~> 1.2, >= 1.2.2) + shellany (0.0.1) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.2) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.3) + thread_safe (0.3.6) + tilt (2.0.9) + turbolinks (5.2.0) + turbolinks-source (~> 5.2) + turbolinks-source (5.2.0) + tzinfo (1.2.5) + thread_safe (~> 0.1) + uglifier (4.1.20) + execjs (>= 0.3.0, < 3) + web-console (3.7.0) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.7.0) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (3.2.0) + nokogiri (~> 1.8) + +PLATFORMS + ruby + +DEPENDENCIES + better_errors + binding_of_caller + bootsnap (>= 1.1.0) + byebug + capybara (>= 2.15) + chromedriver-helper + guard + guard-minitest + jbuilder (~> 2.5) + jquery-rails + jquery-turbolinks + listen (>= 3.0.5, < 3.2) + minitest-rails + minitest-reporters + minitest-skip + pg (>= 0.18, < 2.0) + pry-rails + puma (~> 3.11) + rails (~> 5.2.3) + sass-rails (~> 5.0) + selenium-webdriver + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +RUBY VERSION + ruby 2.5.1p57 + +BUNDLED WITH + 1.17.3 diff --git a/Guardfile b/Guardfile new file mode 100644 index 000000000..e34f706f4 --- /dev/null +++ b/Guardfile @@ -0,0 +1,9 @@ +guard :minitest, autorun: false, spring: true do + watch(%r{^app/(.+).rb$}) { |m| "test/#{m[1]}_test.rb" } + watch(%r{^app/controllers/application_controller.rb$}) { 'test/controllers' } + watch(%r{^app/controllers/(.+)_controller.rb$}) { |m| "test/integration/#{m[1]}_test.rb" } + watch(%r{^app/views/(.+)_mailer/.+}) { |m| "test/mailers/#{m[1]}_mailer_test.rb" } + watch(%r{^lib/(.+).rb$}) { |m| "test/lib/#{m[1]}_test.rb" } + watch(%r{^test/.+_test.rb$}) + watch(%r{^test/test_helper.rb$}) { 'test' } +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 000000000..e85f91391 --- /dev/null +++ b/Rakefile @@ -0,0 +1,6 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require_relative 'config/application' + +Rails.application.load_tasks diff --git a/app/assets/config/manifest.js b/app/assets/config/manifest.js new file mode 100644 index 000000000..b16e53d6d --- /dev/null +++ b/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/app/assets/images/.keep b/app/assets/images/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/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/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..d05ea0f51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/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/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/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/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..b9ce64348 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + TaskList + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/bin/bundle b/bin/bundle new file mode 100755 index 000000000..f19acf5b5 --- /dev/null +++ b/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) +load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails new file mode 100755 index 000000000..5badb2fde --- /dev/null +++ b/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/bin/rake b/bin/rake new file mode 100755 index 000000000..d87d5f578 --- /dev/null +++ b/bin/rake @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/bin/setup b/bin/setup new file mode 100755 index 000000000..94fd4d797 --- /dev/null +++ b/bin/setup @@ -0,0 +1,36 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/spring b/bin/spring new file mode 100755 index 000000000..fb2ec2ebb --- /dev/null +++ b/bin/spring @@ -0,0 +1,17 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast. +# It gets overwritten when you run the `spring binstub` command. + +unless defined?(Spring) + require 'rubygems' + require 'bundler' + + lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) + spring = lockfile.specs.detect { |spec| spec.name == "spring" } + if spring + Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path + gem 'spring', spring.version + require 'spring/binstub' + end +end diff --git a/bin/update b/bin/update new file mode 100755 index 000000000..58bfaed51 --- /dev/null +++ b/bin/update @@ -0,0 +1,31 @@ +#!/usr/bin/env ruby +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = File.expand_path('..', __dir__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # Install JavaScript dependencies if using Yarn + # system('bin/yarn') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/bin/yarn b/bin/yarn new file mode 100755 index 000000000..460dd565b --- /dev/null +++ b/bin/yarn @@ -0,0 +1,11 @@ +#!/usr/bin/env ruby +APP_ROOT = File.expand_path('..', __dir__) +Dir.chdir(APP_ROOT) do + begin + exec "yarnpkg", *ARGV + rescue Errno::ENOENT + $stderr.puts "Yarn executable was not detected in the system." + $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" + exit 1 + end +end diff --git a/config.ru b/config.ru new file mode 100644 index 000000000..f7ba0b527 --- /dev/null +++ b/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/config/application.rb b/config/application.rb new file mode 100644 index 000000000..77b3ec01b --- /dev/null +++ b/config/application.rb @@ -0,0 +1,26 @@ +require_relative 'boot' + +require 'rails/all' + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module TaskList + class Application < Rails::Application + config.generators do |g| + # Force new test files to be generated in the minitest-spec style + g.test_framework :minitest, spec: true + + # Always use .js files, never .coffee + g.javascript_engine :js + end + # Initialize configuration defaults for originally generated Rails version. + config.load_defaults 5.2 + + # Settings in config/environments/* take precedence over those specified here. + # Application configuration can go into files in config/initializers + # -- all .rb files in that directory are automatically loaded after loading + # the framework and any gems in your application. + end +end diff --git a/config/boot.rb b/config/boot.rb new file mode 100644 index 000000000..b9e460cef --- /dev/null +++ b/config/boot.rb @@ -0,0 +1,4 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. +require 'bootsnap/setup' # Speed up boot time by caching expensive operations. diff --git a/config/cable.yml b/config/cable.yml new file mode 100644 index 000000000..51266cdbe --- /dev/null +++ b/config/cable.yml @@ -0,0 +1,10 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> + channel_prefix: TaskList_production diff --git a/config/credentials.yml.enc b/config/credentials.yml.enc new file mode 100644 index 000000000..7c6e462a4 --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +GSWm8xZ7hHvJZ9e5nCoTULKgWp1kZO/kj2rONl3rWl9NSD1SMoPBhTZErysZLThe+BEUBvD0S9cBNe7tOkq0Imjl/C0CoenPfqQV9tKIqMyZajrG4rN6INuWhA/c0vdmc8NI5cNwBP6j35smqxBIMuPXTfiNmezYUp15OFB3dQtnzBjngTbBt2k+9X4iUaAYlvSlO9rKi+lJjuhjOPO2Cgg2GpDShAvpw4+Ib7LoS/lL20DZHId3gVxjnbzfwVFCnB5i0A43CBDyZ5pVh1JFod+lbjF6GxipNOay+BsUWtHyqxPd18o4L7AqIzSwisZ+PJCbmAgabE64WovPcYuxQPsyGTr5bYySRF8zOGa9IdigMYiCnQHdAnjrMa3UQBiJzVCTq+iCyRq/kUpYZ8mKSXrGS740y2iiggkO--X9YUpA770O6xxriE--ni8p5JXcJmy0inhX3RJRGQ== \ 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..787824f88 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +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/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..e69de29bb 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/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/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 From c37078da3ed7d97a635b547a14ed3d9a9b87fdc9 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Mon, 8 Apr 2019 15:03:43 -0700 Subject: [PATCH 02/14] Displays tasks on /tasks path --- app/assets/javascripts/tasks.js | 2 + app/assets/stylesheets/tasks.scss | 3 ++ app/controllers/tasks_controller.rb | 18 +++++++++ app/helpers/tasks_helper.rb | 2 + app/views/layouts/application.html.erb | 1 + app/views/tasks/index.html.erb | 8 ++++ config/routes.rb | 1 + log/development.log | 52 ++++++++++++++++++++++++++ 8 files changed, 87 insertions(+) create mode 100644 app/assets/javascripts/tasks.js create mode 100644 app/assets/stylesheets/tasks.scss create mode 100644 app/controllers/tasks_controller.rb create mode 100644 app/helpers/tasks_helper.rb create mode 100644 app/views/tasks/index.html.erb 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/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c5e7712d4 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 000000000..cfa680f10 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,18 @@ +class TasksController < ApplicationController + + TASKS = [ + { + task: "Hikefinder exercise Section 1", status: [:complete, :incomplete] + }, + { + task: "Make lunch for the week", status: [:complete, :incomplete] + }, + { + task: "Watch short video on MVC", status: [:complete, :incomplete] + }, + + ] + def index + @tasks = TASKS; + end +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/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index b9ce64348..530c99dc4 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,6 +10,7 @@ +

Task List

<%= yield %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb new file mode 100644 index 000000000..e2d35a2d5 --- /dev/null +++ b/app/views/tasks/index.html.erb @@ -0,0 +1,8 @@ + diff --git a/config/routes.rb b/config/routes.rb index 787824f88..bcc866ea6 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,4 @@ Rails.application.routes.draw do + get '/tasks', to: 'tasks#index' # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/log/development.log b/log/development.log index e69de29bb..594c443b6 100644 --- a/log/development.log +++ b/log/development.log @@ -0,0 +1,52 @@ +  (601.6ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (475.5ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-08 14:23:54 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (4.6ms) +Completed 200 OK in 24ms (Views: 13.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:23:59 -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 264ms (Views: 260.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:37:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (8.7ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.0ms) + + + +TypeError - no implicit conversion of Symbol into Integer: + app/views/tasks/index.html.erb:8:in `block in _app_views_tasks_index_html_erb__2601736212924582889_70304795539120' + app/views/tasks/index.html.erb:4:in `_app_views_tasks_index_html_erb__2601736212924582889_70304795539120' + +Started POST "/__better_errors/123de4ab16d8547a/variables" for ::1 at 2019-04-08 14:37:38 -0700 +Started GET "/tasks" for ::1 at 2019-04-08 14:38:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 103ms (Views: 100.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:41:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 73ms (Views: 69.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 14:42:34 -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 78ms (Views: 73.7ms | ActiveRecord: 0.0ms) + + From b4c738029fc16d4a8d3e1b0a30d3df8e178722be Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Tue, 9 Apr 2019 15:24:57 -0700 Subject: [PATCH 03/14] Created a model, migrations and 2 tasks in db. Updated index.html --- app/controllers/tasks_controller.rb | 2 +- app/models/task.rb | 2 + app/views/tasks/index.html.erb | 15 +- db/migrate/20190409212755_create_tasks.rb | 10 + .../20190409214432_change_tasks_status.rb | 5 + db/migrate/20190409215910_add_columns.rb | 6 + db/schema.rb | 26 ++ log/development.log | 402 ++++++++++++++++++ test/fixtures/tasks.yml | 9 + test/models/task_test.rb | 9 + 10 files changed, 482 insertions(+), 4 deletions(-) create mode 100644 app/models/task.rb create mode 100644 db/migrate/20190409212755_create_tasks.rb create mode 100644 db/migrate/20190409214432_change_tasks_status.rb create mode 100644 db/migrate/20190409215910_add_columns.rb create mode 100644 db/schema.rb create mode 100644 test/fixtures/tasks.yml create mode 100644 test/models/task_test.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index cfa680f10..ca74a9984 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -13,6 +13,6 @@ class TasksController < ApplicationController ] def index - @tasks = TASKS; + @tasks = Task.all; end end diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index e2d35a2d5..11f7adcf9 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,8 +1,17 @@
    - <% @tasks.each do |task| %> + <% @tasks.each do |todo_item| %>
  • - <%= task[:task]%>, - status: <%= task[:status][1] %> + Task: <%= todo_item.task%>, +
      +
    • + Description: <%= todo_item.descriptions %> +
    • +
    +
      +
    • + Completion date: <%= todo_item.completion_date %> +
    • +
  • <% end %>
diff --git a/db/migrate/20190409212755_create_tasks.rb b/db/migrate/20190409212755_create_tasks.rb new file mode 100644 index 000000000..3376e5f22 --- /dev/null +++ b/db/migrate/20190409212755_create_tasks.rb @@ -0,0 +1,10 @@ +class CreateTasks < ActiveRecord::Migration[5.2] + def change + create_table :tasks do |t| + t.string :task + t.string :status + + t.timestamps + end + end +end diff --git a/db/migrate/20190409214432_change_tasks_status.rb b/db/migrate/20190409214432_change_tasks_status.rb new file mode 100644 index 000000000..5db26c593 --- /dev/null +++ b/db/migrate/20190409214432_change_tasks_status.rb @@ -0,0 +1,5 @@ +class ChangeTasksStatus < ActiveRecord::Migration[5.2] + def change + remove_column(:tasks, :status) + end +end diff --git a/db/migrate/20190409215910_add_columns.rb b/db/migrate/20190409215910_add_columns.rb new file mode 100644 index 000000000..19157ec6b --- /dev/null +++ b/db/migrate/20190409215910_add_columns.rb @@ -0,0 +1,6 @@ +class AddColumns < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :descriptions, :string + add_column :tasks, :completion_date, :string + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..2376920ad --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,26 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 2019_04_09_215910) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "tasks", force: :cascade do |t| + t.string "task" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.string "descriptions" + t.string "completion_date" + end + +end diff --git a/log/development.log b/log/development.log index 594c443b6..1103deeec 100644 --- a/log/development.log +++ b/log/development.log @@ -50,3 +50,405 @@ Processing by TasksController#index as HTML Completed 200 OK in 78ms (Views: 73.7ms | ActiveRecord: 0.0ms) +Started GET "/books" for ::1 at 2019-04-09 14:18:42 -0700 + +ActionController::RoutingError (No route matches [GET] "/books"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-09 14:18:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 271ms (Views: 265.7ms | ActiveRecord: 0.0ms) + + +  (40.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (10.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 +  (2.4ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (5.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409212755) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (10.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409212755_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409212755"]] + ↳ bin/rails:9 +  (0.7ms) 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 + 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", "development"], ["created_at", "2019-04-09 21:30:57.073498"], ["updated_at", "2019-04-09 21:30:57.073498"]] + ↳ bin/rails:9 +  (0.4ms) 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.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ 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 + 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]] + ↳ 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 +  (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 + 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]] + ↳ bin/rails:9 +  (0.3ms) BEGIN + ↳ bin/rails:9 +  (0.2ms) COMMIT + ↳ bin/rails:9 +  (0.3ms) 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.1ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.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.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 ChangeTasksStatus (20190409214432) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.5ms) ROLLBACK + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.4ms) 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.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] + ↳ bin/rails:9 +  (279.6ms) DROP DATABASE IF EXISTS "TaskList_development" + ↳ bin/rails:9 +  (225.6ms) DROP DATABASE IF EXISTS "TaskList_test" + ↳ bin/rails:9 +  (534.0ms) CREATE DATABASE "TaskList_development" ENCODING = 'unicode' + ↳ bin/rails:9 +  (448.3ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + ↳ bin/rails:9 + SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (1.2ms) DROP TABLE IF EXISTS "tasks" CASCADE + ↳ db/schema.rb:18 +  (6.8ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:18 +  (3.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ db/schema.rb:13 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ db/schema.rb:13 +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES (20190409212755) + ↳ db/schema.rb:13 +  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ 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]] + ↳ db/schema.rb:13 +  (0.2ms) BEGIN + ↳ db/schema.rb:13 + 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", "development"], ["created_at", "2019-04-09 21:47:54.075345"], ["updated_at", "2019-04-09 21:47:54.075345"]] + ↳ db/schema.rb:13 +  (0.4ms) 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.1ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" + ↳ db/schema.rb:16 +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE + ↳ db/schema.rb:18 +  (10.2ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "status" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/schema.rb:18 +  (3.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.8ms) INSERT INTO "schema_migrations" (version) VALUES (20190409212755) + ↳ db/schema.rb:13 +  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ 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]] + ↳ db/schema.rb:13 +  (0.1ms) BEGIN + ↳ db/schema.rb:13 + ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 21:47:54.127518"], ["updated_at", "2019-04-09 21:47:54.127518"]] + ↳ db/schema.rb:13 +  (0.5ms) 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.1ms) 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-09 21:47:54.132195"], ["key", "environment"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeTasksStatus (20190409214432) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) ROLLBACK + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to ChangeTasksStatus (20190409214432) +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (13.3ms) ALTER TABLE "tasks" DROP COLUMN "status" + ↳ db/migrate/20190409214432_change_tasks_status.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409214432"]] + ↳ bin/rails:9 +  (0.4ms) COMMIT + ↳ bin/rails:9 + 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]] + ↳ bin/rails:9 +  (0.1ms) 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.1ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.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.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) 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.1ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (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.1ms) 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 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.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.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 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.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.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 + 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.1ms) 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.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddColumns (20190409215910) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.7ms) ALTER TABLE "tasks" ADD "descriptions" character varying + ↳ db/migrate/20190409215910_add_columns.rb:3 +  (0.3ms) ALTER TABLE "tasks" ADD "completion_date" character varying + ↳ db/migrate/20190409215910_add_columns.rb:4 + ActiveRecord::SchemaMigration Create (1.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409215910"]] + ↳ bin/rails:9 +  (1.2ms) COMMIT + ↳ bin/rails:9 + 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]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (0.1ms) COMMIT + ↳ bin/rails:9 +  (0.3ms) 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 + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" +  (0.2ms) BEGIN + Task Create (4.9ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "CS Fun"], ["created_at", "2019-04-09 22:10:45.223322"], ["updated_at", "2019-04-09 22:10:45.223322"], ["descriptions", "Complete and submit PR for Factorial"], ["completion_date", "incomplete"]] +  (0.6ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Fold laundry"], ["created_at", "2019-04-09 22:11:00.442944"], ["updated_at", "2019-04-09 22:11:00.442944"], ["descriptions", "Fold and put away laundry"], ["completion_date", "incomplete"]] +  (1.7ms) COMMIT + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +Started GET "/tasks" for ::1 at 2019-04-09 15:18:34 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (14.4ms) +Completed 200 OK in 240ms (Views: 212.7ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 15:19:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 34ms (Views: 28.6ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 15:20:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 31ms (Views: 27.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 15:21:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 47ms (Views: 43.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-09 15:22:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 85ms (Views: 80.7ms | ActiveRecord: 0.9ms) + + diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..6348c1d6d --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + task: MyString + status: MyString + +two: + task: MyString + status: MyString 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 From dfe8802cf8a330a8d7bef86a124c41d486f0e126 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Thu, 11 Apr 2019 14:42:56 -0700 Subject: [PATCH 04/14] Added ability to edit task --- app/controllers/tasks_controller.rb | 86 +- app/views/tasks/edit.html.erb | 20 + app/views/tasks/index.html.erb | 13 +- app/views/tasks/new.html.erb | 14 + app/views/tasks/show.html.erb | 12 + config/routes.rb | 13 +- log/development.log | 2084 +++++++++++++++++++++ log/test.log | 837 +++++++++ test/controllers/tasks_controller_test.rb | 32 +- test/fixtures/tasks.yml | 6 +- 10 files changed, 3076 insertions(+), 41 deletions(-) create mode 100644 app/views/tasks/edit.html.erb create mode 100644 app/views/tasks/new.html.erb create mode 100644 app/views/tasks/show.html.erb create mode 100644 log/test.log diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index ca74a9984..4e25a8228 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,18 +1,80 @@ class TasksController < ApplicationController - TASKS = [ - { - task: "Hikefinder exercise Section 1", status: [:complete, :incomplete] - }, - { - task: "Make lunch for the week", status: [:complete, :incomplete] - }, - { - task: "Watch short video on MVC", status: [:complete, :incomplete] - }, - - ] + # TASKS = [ + # { + # task: "Hikefinder exercise Section 1", status: [:complete, :incomplete] + # }, + # { + # task: "Make lunch for the week", status: [:complete, :incomplete] + # }, + # { + # task: "Watch short video on MVC", status: [:complete, :incomplete] + # }, + + # ] def index @tasks = Task.all; end + + def show + task_id = params[:id] + @task = Task.find_by(id: task_id) + + if @task.nil? + redirect_to tasks_path + end + end + + def new + @task = Task.new + @task.task = "I have to..." + @task.completion_date = "incomplete" + end + + def create + new_task = Task.new( + task: params["task"]["task"], + descriptions: params["task"]["descriptions"], + completion_date: params["task"]["completion_date"] + ) + + is_successful = new_task.save + + if is_successful + redirect_to task_path(new_task.id) + else + head :found + end + + # Book.create will also work + end + + def edit + task_id = params[:id].to_i + @task = Task.find_by(id: task_id) + end + + def update + edit_task_id = params[:id].to_i + edited_task = Task.find(edit_task_id) + + # follows browser structure + new_completion_date = params["task"]["completed"] + new_description = params["task"]["description"] + new_name = params["task"]["name"] + + # based on schema + edited_task.task = new_name + edited_task.descriptions = new_description + edited_task.completion_date = new_completion_date + + is_successful = edited_task.save + # raise + + if is_successful + redirect_to task_path(edit_task_id) + else + redirect_to tasks_path + end + end end diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..7ce765fb0 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,20 @@ +

Edit this task!

+ +<%= form_with model: @task, class: 'edit-task' do |f| %> + +

Please fill out this form to edit this task

+ <%= f.label "Edit name of task:" %> + <%= f.text_field :name %> + <%= f.label "Edit description of task:" %> + <%= f.text_field :description %> + <%= f.label "Change completion status:" %> + <%= f.text_field :completed %> + + <%= f.submit "Edit Task", class: "edit-button" %> + +<% end %> + + + + +<%= link_to "Back to Tasks", tasks_path %> \ No newline at end of file diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 11f7adcf9..2c7825be7 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,17 +1,8 @@
    <% @tasks.each do |todo_item| %>
  • - Task: <%= todo_item.task%>, -
      -
    • - Description: <%= todo_item.descriptions %> -
    • -
    -
      -
    • - Completion date: <%= todo_item.completion_date %> -
    • -
    + Task: <%= link_to todo_item.task, task_path(todo_item.id) %>,
  • <% end %>
+ diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb new file mode 100644 index 000000000..ba6bfba85 --- /dev/null +++ b/app/views/tasks/new.html.erb @@ -0,0 +1,14 @@ +

Add a new task!

+

Please fill out the form below to add a new task to the TaskList.

+ +<%# Syntax for form-with %> +<%= form_with model: @task, class: 'create_task' do |f| %> + <%= f.label :task %> + <%= f.text_field :task %> + <%= f.label :descriptions %> + <%= f.text_field :descriptions %> + <%= f.label :completion_date %> + <%= f.text_field :completion_date %> + + <%= f.submit "Add Task", class: "task-form_submit-btn" %> +<% end %> \ No newline at end of file diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..d7905cc81 --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,12 @@ +

+Task: <%= @task.task %>, +

+

+Description: <%= @task.descriptions %> +

+

+Completion date: <%= @task.completion_date %> +

+ +<%= link_to "Back to Tasks", tasks_path %> +<%= link_to "Edit Task", edit_task_path %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index bcc866ea6..5a47108e4 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,15 @@ Rails.application.routes.draw do - get '/tasks', to: 'tasks#index' + 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" + + + root to: "tasks#index" # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/log/development.log b/log/development.log index 1103deeec..ac3850e62 100644 --- a/log/development.log +++ b/log/development.log @@ -452,3 +452,2087 @@ Processing by TasksController#index as HTML Completed 200 OK in 85ms (Views: 80.7ms | ActiveRecord: 0.9ms) + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" +Started GET "/" for ::1 at 2019-04-10 15:56:26 -0700 +  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (4.3ms) +Completed 200 OK in 26ms (Views: 17.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:56:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (19.2ms) +Completed 200 OK in 273ms (Views: 259.5ms | ActiveRecord: 7.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 15:56:36 -0700 +Processing by TasksController#index as HTML + Parameters: {"id"=>"1"} + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 21ms (Views: 17.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 15:56: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]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 500 Internal Server Error in 16ms (ActiveRecord: 4.1ms) + + + +NoMethodError - undefined method `nil' for # +Did you mean? nil?: + app/controllers/tasks_controller.rb:23:in `show' + +Started POST "/__better_errors/05ce3440752f7b79/variables" for ::1 at 2019-04-10 15:56:56 -0700 +Started GET "/tasks/1" for ::1 at 2019-04-10 15:57: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 38ms (Views: 25.3ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:57:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 27ms (Views: 21.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:59:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/:id" for ::1 at 2019-04-10 15:59:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>":id"} + Task Load (2.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 5ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:59:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/:id" for ::1 at 2019-04-10 15:59:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>":id"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 3ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:59:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 29ms (Views: 26.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:00:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 20ms (Views: 17.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:00:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:00:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 23ms (Views: 19.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/:id" for ::1 at 2019-04-10 16:00:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>":id"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 3ms (ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:00:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 36ms (Views: 33.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/:id" for ::1 at 2019-04-10 16:00:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>":id"} + Task Load (3.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 5ms (ActiveRecord: 3.7ms) + + +Started GET "/tasks/:id" for ::1 at 2019-04-10 16:02:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>":id"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 11ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:02:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 48ms (Views: 41.1ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 16:02:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (7.7ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 2.8ms) + + + +NoMethodError - undefined method `each' for nil:NilClass: + app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb__4222705833123441227_70125950622960' + +Started POST "/__better_errors/7930a5826314692b/variables" for ::1 at 2019-04-10 16:02:15 -0700 +Started GET "/tasks/1" for ::1 at 2019-04-10 16:07:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (346.1ms) +Completed 500 Internal Server Error in 354ms (ActiveRecord: 0.3ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007f8ef7022e88>: + app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb__4222705833123441227_70126003100780' + +Started POST "/__better_errors/2668bd607cf182fc/variables" for ::1 at 2019-04-10 16:07:18 -0700 +Started GET "/tasks/" for ::1 at 2019-04-10 16:07:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 37ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:07:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (370.7ms) +Completed 500 Internal Server Error in 384ms (ActiveRecord: 1.1ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007f8ef6b435e8>: + app/views/tasks/show.html.erb:2:in `_app_views_tasks_show_html_erb__4222705833123441227_70126000545660' + +Started POST "/__better_errors/56ddc67f1ed2d678/variables" for ::1 at 2019-04-10 16:07:54 -0700 +Started GET "/tasks/2" for ::1 at 2019-04-10 16:08:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 17ms (Views: 13.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/" for ::1 at 2019-04-10 16:08:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 30ms (Views: 23.4ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 16:08:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 24.1ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:21:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (14.7ms) +Completed 200 OK in 43ms (Views: 29.8ms | ActiveRecord: 7.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:21:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 24ms (Views: 20.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 16: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-10 16:21:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"new"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:21:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 29.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-10 16:21:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (28.3ms) +Completed 200 OK in 64ms (Views: 50.0ms | ActiveRecord: 2.7ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-10 16:23:04 -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 29ms (Views: 17.3ms | ActiveRecord: 3.3ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 16:23:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hwgq505JLDJj8RFTWV/8lRi8RSAIKmD0c+7hBfBFGAO0uc1BLGu4ZUA4MyN5JbkabHTxi8ElVt6lnSmtLHb6Aw==", "task"=>{"task"=>"shopping", "descriptions"=>"Grocery shopping", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 3, expected 0..1): + app/controllers/tasks_controller.rb:35:in `create' + +Started POST "/__better_errors/c928aaf231469d8d/variables" for ::1 at 2019-04-10 16:23:15 -0700 +Started POST "/tasks" for ::1 at 2019-04-10 16:23:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hwgq505JLDJj8RFTWV/8lRi8RSAIKmD0c+7hBfBFGAO0uc1BLGu4ZUA4MyN5JbkabHTxi8ElVt6lnSmtLHb6Aw==", "task"=>{"task"=>"shopping", "descriptions"=>"Grocery shopping", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:35:in `create' + +Started POST "/__better_errors/a65ac7815902fe3f/variables" for ::1 at 2019-04-10 16:23:54 -0700 +Started POST "/__better_errors/a65ac7815902fe3f/eval" for ::1 at 2019-04-10 16:23:57 -0700 +Started POST "/__better_errors/a65ac7815902fe3f/eval" for ::1 at 2019-04-10 16:24:12 -0700 +Started POST "/__better_errors/a65ac7815902fe3f/eval" for ::1 at 2019-04-10 16:24:23 -0700 +Started POST "/__better_errors/a65ac7815902fe3f/eval" for ::1 at 2019-04-10 16:24:33 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:28:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (8.5ms) +Completed 200 OK in 39ms (Views: 31.1ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 16:28:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 35ms (Views: 26.1ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:28:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (4.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 33ms (Views: 24.8ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-10 16:28:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 21ms (Views: 18.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 16:29:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bgg0S2UQ3ZVzqnFvyZfXEv1EMZ+d5JUvbFYHF3zORlldudPtBzJJwlBjUx/p7ZKdiYyFNFTrowW6Jc+/oP2kWQ==", "task"=>{"task"=>"I have to do something", "descriptions"=>"Something with something", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:41 + Task Create (8.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to do something"], ["created_at", "2019-04-10 23:29:18.310501"], ["updated_at", "2019-04-10 23:29:18.310501"], ["descriptions", "Something with something"], ["completion_date", "incomplete"]] + ↳ app/controllers/tasks_controller.rb:41 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:41 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 14ms (ActiveRecord: 9.6ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 16:29:18 -0700 +Processing by TasksController#show 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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.2ms) + + +  (1.4ms) 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-10 18:33:13 -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 94ms (Views: 62.7ms | ActiveRecord: 7.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 18:33:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 39ms (Views: 34.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/edit" for ::1 at 2019-04-10 18:33:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 5ms (ActiveRecord: 0.6ms) + + +Started GET "/tasks/" for ::1 at 2019-04-10 18:33:52 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (13.6ms) +Completed 200 OK in 226ms (Views: 210.7ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/edit" for ::1 at 2019-04-10 18:33:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"edit"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 0], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 +Completed 404 Not Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-10 18:34:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (21.8ms) +Completed 200 OK in 39ms (Views: 36.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/3/" for ::1 at 2019-04-10 18:34:31 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 21ms (Views: 16.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-10 18:34:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks/3/edit" for ::1 at 2019-04-10 18:35:23 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/3/edit"): + +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-11 09:21:48 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (18.0ms) +Completed 200 OK in 223ms (Views: 200.3ms | ActiveRecord: 7.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:22:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 18ms (Views: 15.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:22:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 51ms (Views: 25.6ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:22:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 19ms (Views: 14.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:22:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (3.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 32ms (Views: 25.3ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:22:42 -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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 35ms (Views: 29.5ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:23:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (23.7ms) +Completed 200 OK in 45ms (Views: 43.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:23:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 33ms (Views: 29.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:23:25 -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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 49ms (Views: 41.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:23:26 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 34ms (Views: 28.0ms | ActiveRecord: 2.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:23: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:24:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.4ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:24:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 35ms (Views: 30.7ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-11 09:24:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 41ms (Views: 35.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:24:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.2ms) +Completed 200 OK in 30ms (Views: 27.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks/1/edit" for ::1 at 2019-04-11 09:24:46 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/1/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/1/" for ::1 at 2019-04-11 09:26:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 60ms (Views: 43.0ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:26:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 163ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/6ed014b5dd1a95ed/variables" for ::1 at 2019-04-11 09:26:17 -0700 +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:26:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 255ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/301ed3611cb4b413/variables" for ::1 at 2019-04-11 09:26:44 -0700 +Started GET "/tasks/1/" for ::1 at 2019-04-11 09:26: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 48ms (Views: 32.4ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:26:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 179ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/31168fa336b4eb33/variables" for ::1 at 2019-04-11 09:26:51 -0700 +Started GET "/tasks/1/edit" for ::1 at 2019-04-11 09:27:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} +Completed 500 Internal Server Error in 183ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/eaf661b1ba17e9b1/variables" for ::1 at 2019-04-11 09:27:01 -0700 +Started GET "/tasks/1/" for ::1 at 2019-04-11 09:27:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 50ms (Views: 34.9ms | ActiveRecord: 4.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 09:27:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 40ms (Views: 34.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 09:27:08 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 36ms (Views: 31.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 09:27:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} +Completed 500 Internal Server Error in 207ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/5436d8bb6bd113fa/variables" for ::1 at 2019-04-11 09:27:09 -0700 +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 09:27:28 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} +Completed 500 Internal Server Error in 168ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/8cee20337afeb8f8/variables" for ::1 at 2019-04-11 09:27:28 -0700 +Started GET "/tasks" for ::1 at 2019-04-11 09:27:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 37ms (Views: 30.7ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-11 09:27:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 37ms (Views: 31.1ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:27:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 248ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/30c43f062036cae0/variables" for ::1 at 2019-04-11 09:27:37 -0700 +Started GET "/tasks/2/" for ::1 at 2019-04-11 09:27:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 28ms (Views: 16.3ms | ActiveRecord: 3.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:27:53 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 171ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task' for #: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/dc653c0c8108816c/variables" for ::1 at 2019-04-11 09:27:53 -0700 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:28:16 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks/2/edit" for ::1 at 2019-04-11 09:28:37 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2/edit"): + +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-11 09:29:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (11.6ms) +Completed 200 OK in 42ms (Views: 32.5ms | ActiveRecord: 3.8ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-11 09:29:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:29:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 177ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/19d56d90a172dcbc/variables" for ::1 at 2019-04-11 09:29:52 -0700 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:30:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.1ms) +Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:32:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 194ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task_id' for # +Did you mean? task_url: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/891630377b29f5e2/variables" for ::1 at 2019-04-11 09:32:33 -0700 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:32:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 156ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task' for #: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/89d4c156f82593c2/variables" for ::1 at 2019-04-11 09:32:55 -0700 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:33:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} +Completed 500 Internal Server Error in 176ms (ActiveRecord: 0.0ms) + + + +NameError - undefined local variable or method `task' for #: + app/controllers/tasks_controller.rb:53:in `edit' + +Started POST "/__better_errors/c77446a3b46b7005/variables" for ::1 at 2019-04-11 09:33:11 -0700 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:34:01 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (12.7ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 3.1ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132301744480' + +Started POST "/__better_errors/4819e025de58996b/variables" for ::1 at 2019-04-11 09:34:01 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/" for ::1 at 2019-04-11 09:34:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 37ms (Views: 31.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:34:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (11.6ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132308850160' + +Started POST "/__better_errors/9b73f3792a94c672/variables" for ::1 at 2019-04-11 09:34:40 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/" for ::1 at 2019-04-11 09:37:22 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 90ms (Views: 73.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:37:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (19.3ms) +Completed 500 Internal Server Error in 35ms (ActiveRecord: 0.5ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132309031980' + +Started POST "/__better_errors/217f59c2547ac7dc/variables" for ::1 at 2019-04-11 09:37:24 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:37:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (7.8ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132309842780' + +Started POST "/__better_errors/218bdb64a1a259be/variables" for ::1 at 2019-04-11 09:37:37 -0700 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:37:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (0.5ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:39:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (9.2ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132259363240' + +Started POST "/__better_errors/ab1e1af51d1ca9b5/variables" for ::1 at 2019-04-11 09:39:09 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:39:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (7.1ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132300996360' + +Started POST "/__better_errors/f2ecd7cce62cd096/variables" for ::1 at 2019-04-11 09:39:18 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:39:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (7.9ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.2ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132262908940' + +Started POST "/__better_errors/972c17837efd0dc7/variables" for ::1 at 2019-04-11 09:39:20 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:39:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (6.2ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.2ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132309956560' + +Started POST "/__better_errors/9731e351298577f8/variables" for ::1 at 2019-04-11 09:39:42 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:41:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (38.9ms) +Completed 500 Internal Server Error in 60ms (ActiveRecord: 0.6ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132263086600' + +Started POST "/__better_errors/5535bd003d3e0d8e/variables" for ::1 at 2019-04-11 09:41:56 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:43:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (15.2ms) +Completed 500 Internal Server Error in 32ms (ActiveRecord: 6.7ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:5:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132301582020' + +Started POST "/__better_errors/47fc934966370aec/variables" for ::1 at 2019-04-11 09:43:27 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:43:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Rendering tasks/edit.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + Rendered tasks/edit.html.erb within layouts/application (9.2ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.2ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NoMethodError - undefined method `to_model' for # +Did you mean? to_xml: + app/views/tasks/edit.html.erb:3:in `_app_views_tasks_edit_html_erb___2208770548814392239_70132310098040' + +Started POST "/__better_errors/005d83e39d75fed6/variables" for ::1 at 2019-04-11 09:43:55 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/2/edit" for ::1 at 2019-04-11 09:44:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.3ms) +Completed 200 OK in 55ms (Views: 40.2ms | ActiveRecord: 3.7ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-11 09:44:56 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started PATCH "/tasks/2" for ::1 at 2019-04-11 10:03:09 -0700 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +AbstractController::ActionNotFound - The action 'update' could not be found for TasksController: + +Started POST "/__better_errors/bca497745661be28/variables" for ::1 at 2019-04-11 10:03:10 -0700 +Started GET "/tasks/" for ::1 at 2019-04-11 10:03:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (25.9ms) +Completed 200 OK in 261ms (Views: 239.9ms | ActiveRecord: 9.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 10:03:18 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 36ms (Views: 26.0ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 10:03:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (13.8ms) +Completed 200 OK in 47ms (Views: 37.9ms | ActiveRecord: 3.0ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 10:03:28 -0700 + +AbstractController::ActionNotFound - The action 'update' could not be found for TasksController: + +Started POST "/__better_errors/004ee51affb5b041/variables" for ::1 at 2019-04-11 10:03:28 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 10:32:01 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"=>"hRHxA1UzTj1MiOLf5LAJ55SRHut3IoKyU7OUdISXWcaRd55rSi4M757UK3DZBI3nfSJyKEIe6sblPW2FugSmZg==", "task"=>{"name"=>"bv,hb,", "description"=>"nbmh,m", "completed"=>" nbmjb"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (23.3ms) SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 [["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +Completed 500 Internal Server Error in 37ms (ActiveRecord: 25.3ms) + + + +PG::DatatypeMismatch - ERROR: argument of WHERE must be type boolean, not type integer +LINE 1: SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 + ^ +: + app/controllers/tasks_controller.rb:58:in `update' + +Started POST "/__better_errors/d77fde1926a9ed05/variables" for ::1 at 2019-04-11 10:32:02 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 10:32:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hRHxA1UzTj1MiOLf5LAJ55SRHut3IoKyU7OUdISXWcaRd55rSi4M757UK3DZBI3nfSJyKEIe6sblPW2FugSmZg==", "task"=>{"name"=>"bv,hb,", "description"=>"nbmh,m", "completed"=>" nbmjb"}, "commit"=>"Edit Task", "id"=>"3"} +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1..2): + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/1da3c47fc8151e8f/variables" for ::1 at 2019-04-11 10:32:32 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 10:33:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hRHxA1UzTj1MiOLf5LAJ55SRHut3IoKyU7OUdISXWcaRd55rSi4M757UK3DZBI3nfSJyKEIe6sblPW2FugSmZg==", "task"=>{"name"=>"bv,hb,", "description"=>"nbmh,m", "completed"=>" nbmjb"}, "commit"=>"Edit Task", "id"=>"3"} +Completed 500 Internal Server Error in 6ms (ActiveRecord: 2.5ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1..2): + app/controllers/tasks_controller.rb:60:in `update' + +Started POST "/__better_errors/28ec574e03e47e52/variables" for ::1 at 2019-04-11 10:33:24 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:05:35 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"=>"hRHxA1UzTj1MiOLf5LAJ55SRHut3IoKyU7OUdISXWcaRd55rSi4M757UK3DZBI3nfSJyKEIe6sblPW2FugSmZg==", "task"=>{"name"=>"bv,hb,", "description"=>"nbmh,m", "completed"=>" nbmjb"}, "commit"=>"Edit Task", "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:58 +Completed 500 Internal Server Error in 24ms (ActiveRecord: 4.4ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/4aac728be74e4bdc/variables" for ::1 at 2019-04-11 14:05:36 -0700 +Started GET "/tasks/" for ::1 at 2019-04-11 14:05:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 233ms (Views: 228.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:05:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + 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.3ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:06:13 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (5.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", nil], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Completed 404 Not Found in 10ms (ActiveRecord: 5.6ms) + + + +ActiveRecord::RecordNotFound - Couldn't find Task with 'id'={:id=>3}: + app/controllers/tasks_controller.rb:54:in `edit' + +Started POST "/__better_errors/4afe5c059a0874e9/variables" for ::1 at 2019-04-11 14:06:13 -0700 +Started GET "/tasks/3" for ::1 at 2019-04-11 14:06:16 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 28ms (Views: 23.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:06:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (3.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", nil], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +Completed 404 Not Found in 8ms (ActiveRecord: 3.7ms) + + + +ActiveRecord::RecordNotFound - Couldn't find Task with 'id'={:id=>3}: + app/controllers/tasks_controller.rb:54:in `edit' + +Started POST "/__better_errors/0f37789c992307ac/variables" for ::1 at 2019-04-11 14:06:19 -0700 +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:08: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]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (22.1ms) +Completed 200 OK in 74ms (Views: 57.6ms | ActiveRecord: 3.2ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:08:58 -0700 + +AbstractController::ActionNotFound - The action 'update' could not be found for TasksController: + +Started POST "/__better_errors/326b07c2b6e69ad7/variables" for ::1 at 2019-04-11 14:08:58 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:19:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"saU3qDKuQsp5XrSdXZ2dTW6uzC7NlBzdIY0IXrHgpMeCFNAOUIzWnVqXlu1959jCGmZ4hQSbKvf3/sD2bdNGxw==", "task"=>{"name"=>"asfasfasf", "description"=>"fasfasf", "completed"=>"afasfaf"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 [["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +Completed 500 Internal Server Error in 15ms (ActiveRecord: 5.9ms) + + + +PG::DatatypeMismatch - ERROR: argument of WHERE must be type boolean, not type integer +LINE 1: SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 + ^ +: + app/controllers/tasks_controller.rb:58:in `update' + +Started POST "/__better_errors/c260e19066d17db2/variables" for ::1 at 2019-04-11 14:19:48 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:20:09 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"=>"saU3qDKuQsp5XrSdXZ2dTW6uzC7NlBzdIY0IXrHgpMeCFNAOUIzWnVqXlu1959jCGmZ4hQSbKvf3/sD2bdNGxw==", "task"=>{"name"=>"asfasfasf", "description"=>"fasfasf", "completed"=>"afasfaf"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 [["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.8ms) + + + +PG::DatatypeMismatch - ERROR: argument of WHERE must be type boolean, not type integer +LINE 1: SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 + ^ +: + app/controllers/tasks_controller.rb:58:in `update' + +Started POST "/__better_errors/2b2735ddffd4bb5a/variables" for ::1 at 2019-04-11 14:20:10 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:21:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"saU3qDKuQsp5XrSdXZ2dTW6uzC7NlBzdIY0IXrHgpMeCFNAOUIzWnVqXlu1959jCGmZ4hQSbKvf3/sD2bdNGxw==", "task"=>{"name"=>"asfasfasf", "description"=>"fasfasf", "completed"=>"afasfaf"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (3.4ms) SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 [["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:58 +Completed 500 Internal Server Error in 11ms (ActiveRecord: 4.5ms) + + + +PG::DatatypeMismatch - ERROR: argument of WHERE must be type boolean, not type integer +LINE 1: SELECT "tasks".* FROM "tasks" WHERE (3) LIMIT $1 + ^ +: + app/controllers/tasks_controller.rb:58:in `update' + +Started POST "/__better_errors/f3212614df45eb0c/variables" for ::1 at 2019-04-11 14:21:07 -0700 +Started POST "/__better_errors/f3212614df45eb0c/eval" for ::1 at 2019-04-11 14:21:19 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:22:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"saU3qDKuQsp5XrSdXZ2dTW6uzC7NlBzdIY0IXrHgpMeCFNAOUIzWnVqXlu1959jCGmZ4hQSbKvf3/sD2bdNGxw==", "task"=>{"name"=>"asfasfasf", "description"=>"fasfasf", "completed"=>"afasfaf"}, "commit"=>"Edit Task", "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:59 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Update (12.1ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", nil], ["descriptions", nil], ["completion_date", nil], ["updated_at", "2019-04-11 21:22:51.285126"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:69 +  (6.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 42ms (ActiveRecord: 24.2ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:22:51 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 249ms (Views: 245.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14:23:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 33ms (Views: 26.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:23:07 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (12.7ms) +Completed 200 OK in 40ms (Views: 33.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:23:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (2.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (20.1ms) +Completed 200 OK in 49ms (Views: 39.3ms | ActiveRecord: 2.8ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:23:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"gA0osMErIRA169cDVfGg/HAEvbXl33jbjgsDaiuJVLiUa0fY3jZjwue3HqxoRST8mbfRdtDjEK84hfqbFRqrGA==", "task"=>{"name"=>"lunch", "description"=>"noodles", "completed"=>"not done"}, "commit"=>"Edit Task", "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:59 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:23:22 -0700 +Processing by TasksController#show 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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14:23:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 52ms (Views: 48.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14:23:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (10.9ms) +Completed 200 OK in 43ms (Views: 32.8ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:23:57 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 45ms (Views: 40.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:23:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.6ms) +Completed 200 OK in 41ms (Views: 32.7ms | ActiveRecord: 1.5ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:24:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IZzwReQrXgHP+rxcCbKRtdSD1OGgoXoiq74C4KUBs8M1+p8t+zYc0x2mdfM0BhW1PTC4IpWdElYdMPsRm5JMYw==", "task"=>{"name"=>"sfsfsf", "description"=>"sdfsdfsdf", "completed"=>"dsfsdfsdf"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.7ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:68:in `update' + +Started POST "/__better_errors/2246788d69e7f206/variables" for ::1 at 2019-04-11 14:24:04 -0700 +Started POST "/__better_errors/2246788d69e7f206/eval" for ::1 at 2019-04-11 14:24:12 -0700 +Started POST "/__better_errors/2246788d69e7f206/eval" for ::1 at 2019-04-11 14:24:31 -0700 +Started POST "/__better_errors/2246788d69e7f206/eval" for ::1 at 2019-04-11 14:24:38 -0700 +Started POST "/__better_errors/2246788d69e7f206/eval" for ::1 at 2019-04-11 14:24:43 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:24:53 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IZzwReQrXgHP+rxcCbKRtdSD1OGgoXoiq74C4KUBs8M1+p8t+zYc0x2mdfM0BhW1PTC4IpWdElYdMPsRm5JMYw==", "task"=>{"name"=>"sfsfsf", "description"=>"sdfsdfsdf", "completed"=>"dsfsdfsdf"}, "commit"=>"Edit Task", "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:59 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:68 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:68 +Completed 500 Internal Server Error in 13ms (ActiveRecord: 3.8ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:69:in `update' + +Started POST "/__better_errors/051544f259e5cb24/variables" for ::1 at 2019-04-11 14:24:54 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:03 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:09 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:27 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:30 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:37 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:48 -0700 +Started POST "/__better_errors/051544f259e5cb24/eval" for ::1 at 2019-04-11 14:25:56 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:26:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IZzwReQrXgHP+rxcCbKRtdSD1OGgoXoiq74C4KUBs8M1+p8t+zYc0x2mdfM0BhW1PTC4IpWdElYdMPsRm5JMYw==", "task"=>{"name"=>"sfsfsf", "description"=>"sdfsdfsdf", "completed"=>"dsfsdfsdf"}, "commit"=>"Edit Task", "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:59 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Completed 500 Internal Server Error in 20ms (ActiveRecord: 4.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:70:in `update' + +Started POST "/__better_errors/b7a69fe63554afaf/variables" for ::1 at 2019-04-11 14:26:52 -0700 +Started POST "/__better_errors/b7a69fe63554afaf/eval" for ::1 at 2019-04-11 14:26:56 -0700 +Started POST "/__better_errors/b7a69fe63554afaf/eval" for ::1 at 2019-04-11 14:27:01 -0700 +Started GET "/tasks/3" for ::1 at 2019-04-11 14:28:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (7.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 54ms (Views: 39.6ms | ActiveRecord: 7.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14:28:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 28ms (Views: 22.8ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:28:31 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 25ms (Views: 20.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:28:34 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (4.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.0ms) +Completed 200 OK in 33ms (Views: 21.8ms | ActiveRecord: 4.6ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:28:48 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldnM68qKRXt1sjKUO3zwqNndzmALlQKqB5HPE/UVnLGBv6OD1ZcHqafu+zsGyHSoMG6ioz6pat6xHzbiy4ZjEQ==", "task"=>{"name"=>"somethinf", "description"=>"with something", "completed"=>"not done yet"}, "commit"=>"Edit Task", "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:59 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 1.0ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:70:in `update' + +Started POST "/__better_errors/73ad08441ca2c0b0/variables" for ::1 at 2019-04-11 14:28:48 -0700 +Started POST "/__better_errors/73ad08441ca2c0b0/eval" for ::1 at 2019-04-11 14:28:59 -0700 +Started POST "/__better_errors/73ad08441ca2c0b0/eval" for ::1 at 2019-04-11 14:29:16 -0700 +Started POST "/__better_errors/73ad08441ca2c0b0/eval" for ::1 at 2019-04-11 14:32:27 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:32:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldnM68qKRXt1sjKUO3zwqNndzmALlQKqB5HPE/UVnLGBv6OD1ZcHqafu+zsGyHSoMG6ioz6pat6xHzbiy4ZjEQ==", "task"=>{"name"=>"somethinf", "description"=>"with something", "completed"=>"not done yet"}, "commit"=>"Edit Task", "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:59 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:70 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "somethinf"], ["descriptions", "with something"], ["updated_at", "2019-04-11 21:32:40.692838"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:70 +  (0.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:70 +Completed 500 Internal Server Error in 19ms (ActiveRecord: 4.9ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:71:in `update' + +Started POST "/__better_errors/c15f99dea1c0304a/variables" for ::1 at 2019-04-11 14:32:40 -0700 +Started POST "/__better_errors/c15f99dea1c0304a/eval" for ::1 at 2019-04-11 14:32:43 -0700 +Started POST "/__better_errors/c15f99dea1c0304a/eval" for ::1 at 2019-04-11 14:32:53 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:34:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldnM68qKRXt1sjKUO3zwqNndzmALlQKqB5HPE/UVnLGBv6OD1ZcHqafu+zsGyHSoMG6ioz6pat6xHzbiy4ZjEQ==", "task"=>{"name"=>"somethinf", "description"=>"with something", "completed"=>"not done yet"}, "commit"=>"Edit Task", "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:59 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "not done yet"], ["updated_at", "2019-04-11 21:34:15.675016"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:71 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Completed 500 Internal Server Error in 22ms (ActiveRecord: 4.3ms) + + + +RuntimeError - : + app/controllers/tasks_controller.rb:72:in `update' + +Started POST "/__better_errors/c116d0f1a4ca8854/variables" for ::1 at 2019-04-11 14:34:15 -0700 +Started POST "/__better_errors/c116d0f1a4ca8854/eval" for ::1 at 2019-04-11 14:34:29 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:34:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldnM68qKRXt1sjKUO3zwqNndzmALlQKqB5HPE/UVnLGBv6OD1ZcHqafu+zsGyHSoMG6ioz6pat6xHzbiy4ZjEQ==", "task"=>{"name"=>"somethinf", "description"=>"with something", "completed"=>"not done yet"}, "commit"=>"Edit Task", "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:59 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 15ms (ActiveRecord: 4.6ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:34:51 -0700 +Processing by TasksController#show 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:21 + 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.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-11 14: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" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 30ms (Views: 26.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:34:59 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 29.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-11 14:35:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (5.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.2ms) +Completed 200 OK in 38ms (Views: 26.0ms | ActiveRecord: 5.3ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-11 14:35:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"J0QS/sSlca9ynofFdHtm0//zk4Bd3Ehl5G9cQZgGl6MzIn2W27gzfaDCTmpJz+LTFkD/Q2jgIBFS4aWwppVoAw==", "task"=>{"name"=>"Something", "description"=>"with something else", "completed"=>"not done"}, "commit"=>"Edit Task", "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:59 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.7ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Something"], ["descriptions", "with something else"], ["completion_date", "not done"], ["updated_at", "2019-04-11 21:35:15.716591"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:71 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 8ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-11 14:35:15 -0700 +Processing by TasksController#show 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:21 + 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.6ms | ActiveRecord: 0.2ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..0f265afc1 --- /dev/null +++ b/log/test.log @@ -0,0 +1,837 @@ +  (7.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.4ms) 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.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (212.9ms) DROP DATABASE IF EXISTS "TaskList_test" +  (630.1ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.1ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (7.5ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "descriptions" character varying, "completion_date" character varying) +  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20190409215910) +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190409212755), +(20190409214432); + + +  (4.9ms) 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.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-10 23:34:58.225647"], ["updated_at", "2019-04-10 23:34:58.225647"]] +  (0.4ms) 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.2ms) BEGIN +  (0.2ms) COMMIT +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (1.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 (2.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:47:30.291356', '2019-04-10 23:47:30.291356', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:47:30.291356', '2019-04-10 23:47:30.291356', 'MyString', 'MyString') +  (1.5ms) COMMIT +  (0.2ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 16:47:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 272ms (Views: 262.4ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) 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.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:49:12.622186', '2019-04-10 23:49:12.622186', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:49:12.622186', '2019-04-10 23:49:12.622186', 'MyString', 'MyString') +  (1.4ms) COMMIT +  (0.2ms) 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::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.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) 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-10 16:49:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 151ms (Views: 143.5ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 16:49:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:51:05.671735', '2019-04-10 23:51:05.671735', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:51:05.671735', '2019-04-10 23:51:05.671735', 'MyString', 'MyString') +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.6ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 16:51:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.5ms) +Completed 200 OK in 167ms (Views: 157.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-10 16:51:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) 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-10 16:51:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.9ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-10 23:51:05.905175"], ["updated_at", "2019-04-10 23:51:05.905175"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 1.5ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-10 16:51:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (29.0ms) +Completed 200 OK in 32ms (Views: 30.1ms | 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-10 16:51: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]] +Completed 404 Not 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-10 23:51:05.967816"], ["updated_at", "2019-04-10 23:51:05.967816"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 16:51:05 -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 (0.4ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:51:45.578701', '2019-04-10 23:51:45.578701', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:51:45.578701', '2019-04-10 23:51:45.578701', 'MyString', 'MyString') +  (1.7ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-10 23:51:45.621707"], ["updated_at", "2019-04-10 23:51:45.621707"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 16:51:45 -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 (0.6ms) +Completed 200 OK in 119ms (Views: 110.0ms | 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-10 16:51: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]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 16:51:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 16:51:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::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-10 16:51:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-10 23:51:45.784010"], ["updated_at", "2019-04-10 23:51:45.784010"], ["descriptions", "new task description"]] +  (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"."task" = $1 LIMIT $2 [["task", "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-10 16:51:45 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.5ms) 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.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:53:06.152759', '2019-04-10 23:53:06.152759', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:53:06.152759', '2019-04-10 23:53:06.152759', 'MyString', 'MyString') +  (0.4ms) 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 +-------------------------------------------------------------- +  (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-10 16:53:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.9ms) +Completed 200 OK in 181ms (Views: 150.8ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 16:53:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-10 23:53:06.377080"], ["updated_at", "2019-04-10 23:53:06.377080"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-10 23:53:06.394294"], ["updated_at", "2019-04-10 23:53:06.394294"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 16:53:06 -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 (0.5ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 16:53:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.6ms) +  (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.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 16: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" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 16:53:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms) +  (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.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-10 23:54:18.318078', '2019-04-10 23:54:18.318078', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-10 23:54:18.318078', '2019-04-10 23:54:18.318078', 'MyString', 'MyString') +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.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-10 16:54:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-10 23:54:18.371130"], ["updated_at", "2019-04-10 23:54:18.371130"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 10ms (ActiveRecord: 1.0ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["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-10 16:54:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-10 23:54:18.390507"], ["updated_at", "2019-04-10 23:54:18.390507"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 16:54:18 -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.5ms) +Completed 200 OK in 145ms (Views: 141.6ms | 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-10 16:54:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 16:54:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.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-10 16:54:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.6ms) +Completed 200 OK in 18ms (Views: 14.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (4.2ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (12.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-11 16:20:33.059438', '2019-04-11 16:20:33.059438', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-11 16:20:33.059438', '2019-04-11 16:20:33.059438', 'MyString', 'MyString') +  (6.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.1ms) COMMIT +  (0.2ms) 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-11 09:20:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-11 16:20:33.132394"], ["updated_at", "2019-04-11 16:20:33.132394"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 14ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:20:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 177ms (Views: 172.7ms | ActiveRecord: 1.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-11 09:20:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +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.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-11 16:20:33.343034"], ["updated_at", "2019-04-11 16:20:33.343034"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-11 09:20:33 -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 (0.5ms) +Completed 200 OK in 8ms (Views: 1.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-11 09:20: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-11 09:20:33 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.8ms) +Completed 200 OK in 26ms (Views: 21.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-11 16:47:21.877807', '2019-04-11 16:47:21.877807', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-11 16:47:21.877807', '2019-04-11 16:47:21.877807', 'MyString', 'MyString') +  (1.3ms) COMMIT +  (0.2ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-11 09:47:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (9.0ms) +Completed 200 OK in 163ms (Views: 155.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-11 09:47:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-11 09:47:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (18.2ms) +Completed 200 OK in 22ms (Views: 19.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-11 16:47:22.106750"], ["updated_at", "2019-04-11 16:47:22.106750"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-11 09:47:22 -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 (0.6ms) +Completed 200 OK in 8ms (Views: 1.6ms | ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-11 09:47:22 -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.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-11 09:47:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-11 16:47:22.142855"], ["updated_at", "2019-04-11 16:47:22.142855"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 971913898..ccd53fdc3 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -1,9 +1,11 @@ require "test_helper" describe TasksController do + # Note to students: Your Task model **may** be different and + # you may need to modify this. let (:task) { - Task.create name: "sample task", description: "this is an example for a test", - completion_date: Time.now + 5.days + Task.create task: "sample task", descriptions: "this is an example for a test", + completion_date: "date" } # Tests for Wave 1 @@ -28,7 +30,7 @@ # Unskip these tests for Wave 2 describe "show" do it "can get a valid task" do - skip + # skip # Act get task_path(task.id) @@ -37,19 +39,18 @@ end it "will redirect for an invalid task" do - skip + # skip # Act get task_path(-1) # Assert must_respond_with :redirect - expect(flash[:error]).must_equal "Could not find task with id: -1" end end describe "new" do it "can get the new task page" do - skip + # skip # Act get new_task_path @@ -61,14 +62,16 @@ describe "create" do it "can create a new task" do - skip + # skip # Arrange + # Note to students: Your Task model **may** be different and + # you may need to modify this. task_hash = { task: { - name: "new task", - description: "new task description", - completion_date: nil, + task: "new task", + descriptions: "new task description", + completed: false, }, } @@ -77,10 +80,9 @@ post tasks_path, params: task_hash }.must_change "Task.count", 1 - new_task = Task.find_by(name: task_hash[:task][:name]) - expect(new_task.description).must_equal task_hash[:task][:description] - expect(new_task.due_date.to_time.to_i).must_equal task_hash[:task][:due_date].to_i - expect(new_task.completed).must_equal task_hash[:task][:completed] + new_task = Task.find_by(task: task_hash[:task][:task]) + expect(new_task.descriptions).must_equal task_hash[:task][:descriptions] + expect(new_task.completion_date).must_equal task_hash[:task][:completion_date] must_respond_with :redirect must_redirect_to task_path(new_task.id) @@ -125,4 +127,4 @@ describe "toggle_complete" do # Your tests go here end -end +end \ No newline at end of file diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml index 6348c1d6d..267b905a4 100644 --- a/test/fixtures/tasks.yml +++ b/test/fixtures/tasks.yml @@ -2,8 +2,10 @@ one: task: MyString - status: MyString + descriptions: MyString + completion_date: MyString two: task: MyString - status: MyString + descriptions: MyString + completion_date: MyString From 53328a5cbca64c45dd14d16d5170a833299bb673 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Fri, 12 Apr 2019 15:33:31 -0700 Subject: [PATCH 05/14] Cleaned up code. Working on Wave 4 --- app/controllers/tasks_controller.rb | 70 +- app/views/tasks/_form.html.erb | 12 + app/views/tasks/edit.html.erb | 18 +- app/views/tasks/index.html.erb | 1 + app/views/tasks/new.html.erb | 15 +- app/views/tasks/show.html.erb | 3 +- config/routes.rb | 17 +- log/development.log | 2086 ++++++ log/test.log | 7163 +++++++++++++++++++++ test/controllers/tasks_controller_test.rb | 66 +- 10 files changed, 9370 insertions(+), 81 deletions(-) create mode 100644 app/views/tasks/_form.html.erb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 4e25a8228..e9e6b6ec3 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,17 +1,5 @@ class TasksController < ApplicationController - # TASKS = [ - # { - # task: "Hikefinder exercise Section 1", status: [:complete, :incomplete] - # }, - # { - # task: "Make lunch for the week", status: [:complete, :incomplete] - # }, - # { - # task: "Watch short video on MVC", status: [:complete, :incomplete] - # }, - - # ] def index @tasks = Task.all; end @@ -31,13 +19,9 @@ def new @task.completion_date = "incomplete" end - def create - new_task = Task.new( - task: params["task"]["task"], - descriptions: params["task"]["descriptions"], - completion_date: params["task"]["completion_date"] - ) - + def create + new_task = Task.new(task_params) + is_successful = new_task.save if is_successful @@ -45,36 +29,42 @@ def create else head :found end - - # Book.create will also work end def edit - task_id = params[:id].to_i - @task = Task.find_by(id: task_id) + @task = Task.find_by(id: params[:id]) + # task_id = params[:id].to_i + # @task = Task.find_by(id: task_id) end - def update - edit_task_id = params[:id].to_i - edited_task = Task.find(edit_task_id) - - # follows browser structure - new_completion_date = params["task"]["completed"] - new_description = params["task"]["description"] - new_name = params["task"]["name"] + def update + existing_task = Task.find_by(id: params[:id]) - # based on schema - edited_task.task = new_name - edited_task.descriptions = new_description - edited_task.completion_date = new_completion_date - - is_successful = edited_task.save - # raise + # is_successful = existing_task.update(task_params) - if is_successful - redirect_to task_path(edit_task_id) + if existing_task && existing_task.update(task_params) + redirect_to task_path(existing_task.id) + else + redirect_to tasks_path + end + end + + def destroy + task = Task.find( params[:id] ) + if task.nil? + head :not_found else + task.destroy redirect_to tasks_path end end + + + private + + def task_params + return params.require(:task).permit(:task, :descriptions, :completion_date) + end + + end diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb new file mode 100644 index 000000000..a50809b4e --- /dev/null +++ b/app/views/tasks/_form.html.erb @@ -0,0 +1,12 @@ +<%= form_with model: @task, class: form_class do |f| %> + + <%= f.label "Edit name of task:" %> + <%= f.text_field :task %> + <%= f.label "Edit description of task:" %> + <%= f.text_field :descriptions %> + <%= f.label "Change completion status:" %> + <%= f.text_field :completion_date %> + + <%= f.submit action_name, class: "form-submit-button" %> + +<% end %> \ No newline at end of file diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb index 7ce765fb0..b9145879d 100644 --- a/app/views/tasks/edit.html.erb +++ b/app/views/tasks/edit.html.erb @@ -1,18 +1,10 @@

Edit this task!

+

Please fill out the form below to edit the task.

-<%= form_with model: @task, class: 'edit-task' do |f| %> - -

Please fill out this form to edit this task

- <%= f.label "Edit name of task:" %> - <%= f.text_field :name %> - <%= f.label "Edit description of task:" %> - <%= f.text_field :description %> - <%= f.label "Change completion status:" %> - <%= f.text_field :completed %> - - <%= f.submit "Edit Task", class: "edit-button" %> - -<% end %> +<%= render partial: 'form', locals: { + form_class: 'edit_task', + action_name: 'Update Task' +} %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 2c7825be7..b652e4184 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -6,3 +6,4 @@ <% end %> +<%= link_to "New Task", new_task_path %> diff --git a/app/views/tasks/new.html.erb b/app/views/tasks/new.html.erb index ba6bfba85..c1d188f18 100644 --- a/app/views/tasks/new.html.erb +++ b/app/views/tasks/new.html.erb @@ -1,14 +1,7 @@

Add a new task!

Please fill out the form below to add a new task to the TaskList.

-<%# Syntax for form-with %> -<%= form_with model: @task, class: 'create_task' do |f| %> - <%= f.label :task %> - <%= f.text_field :task %> - <%= f.label :descriptions %> - <%= f.text_field :descriptions %> - <%= f.label :completion_date %> - <%= f.text_field :completion_date %> - - <%= f.submit "Add Task", class: "task-form_submit-btn" %> -<% end %> \ No newline at end of file +<%= render partial: 'form', locals: { + form_class: 'new_task', + action_name: 'Create Task' +} %> \ No newline at end of file diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index d7905cc81..cb278624c 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -9,4 +9,5 @@ Completion date: <%= @task.completion_date %>

<%= link_to "Back to Tasks", tasks_path %> -<%= link_to "Edit Task", edit_task_path %> \ No newline at end of file +<%= link_to "Edit Task", edit_task_path %> +<%= link_to "Delete #{@task.task}", task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"} %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 5a47108e4..99f7bc7ac 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,15 +1,18 @@ Rails.application.routes.draw do - get '/tasks', to: 'tasks#index', as: 'tasks' + # get '/tasks', to: 'tasks#index', as: 'tasks' - get "/tasks/new", to: "tasks#new", as: "new_task" - post "/tasks", to: "tasks#create" + # 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', to: 'tasks#show', as: 'task' - get "/tasks/:id/edit", to: "tasks#edit", as: "edit_task" - patch "/tasks/:id", to: "tasks#update" + # get "/tasks/:id/edit", to: "tasks#edit", as: "edit_task" + # patch "/tasks/:id", to: "tasks#update" + + root to: "tasks#index" + + resources :tasks - root to: "tasks#index" # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/log/development.log b/log/development.log index ac3850e62..0346cf3ba 100644 --- a/log/development.log +++ b/log/development.log @@ -2536,3 +2536,2089 @@ Processing by TasksController#show as HTML Completed 200 OK in 25ms (Views: 21.6ms | ActiveRecord: 0.2ms) +Started GET "/tasks/3" for ::1 at 2019-04-12 08:46:05 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"=>"3"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 239ms (Views: 205.3ms | ActiveRecord: 6.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 08:46:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 25.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 08:46:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 27ms (Views: 23.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 08:46:09 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 40ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 08:46:11 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (15.5ms) +Completed 200 OK in 43ms (Views: 34.6ms | ActiveRecord: 4.2ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 08:46:30 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6C6tFuVHAEoIMl8gtA8uEQthAdalJjhrssyAOQx1hav8SMJ++lpCmNpulo+Ju6oR4tJtFZAaUB8EQnnIMuZ6Cw==", "task"=>{"name"=>"Go hiking", "description"=>"rainier", "completed"=>"sunday"}, "commit"=>"Edit Task", "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:59 +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/controllers/tasks_controller.rb:71:in `update' + +Started POST "/__better_errors/b2615f8ce91b2564/variables" for ::1 at 2019-04-12 08:46:30 -0700 +Started GET "/tasks/" for ::1 at 2019-04-12 09:06:06 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (13.9ms) +Completed 200 OK in 252ms (Views: 231.0ms | ActiveRecord: 5.1ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 09:06:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 38ms (Views: 22.8ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 09:06:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (21.1ms) +Completed 200 OK in 49ms (Views: 42.1ms | ActiveRecord: 2.2ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:06:26 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'name' for Task.: + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/c91b14f8d3b2db0d/variables" for ::1 at 2019-04-12 09:06:27 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:06:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 +  (0.1ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 13ms (ActiveRecord: 3.4ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'name' for Task.: + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/d3316efe963f27c2/variables" for ::1 at 2019-04-12 09:06:40 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:06:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 +  (0.1ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 2.7ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'description' for Task.: + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/1e29679eae30b9c4/variables" for ::1 at 2019-04-12 09:06:58 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:07:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:58 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 11ms (ActiveRecord: 2.9ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'description' for Task.: + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/923b6be72b3e2fdc/variables" for ::1 at 2019-04-12 09:07:09 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:07:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 +  (0.1ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 13ms (ActiveRecord: 4.6ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'description' for Task.: + app/controllers/tasks_controller.rb:59:in `update' + +Started POST "/__better_errors/e214b95adddf53e4/variables" for ::1 at 2019-04-12 09:07:17 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:08:04 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "id"=>"3"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:59 +Completed 500 Internal Server Error in 15ms (ActiveRecord: 5.1ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/controllers/tasks_controller.rb:71:in `update' + +Started POST "/__better_errors/1e28afd26f28679d/variables" for ::1 at 2019-04-12 09:08:04 -0700 +Started PATCH "/tasks/3" for ::1 at 2019-04-12 09:08:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VQzSbQ3rgvip4qfu8syHNDOk/S5olCzumElxWycz2cRBar0FEvbAKnu+bkHPeAM02heR7V2oRJoux4iqGaAmZA==", "task"=>{"name"=>"Go Hiking", "description"=>"Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:59 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (8.9ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Go Hiking"], ["descriptions", "Mount Rainier"], ["completion_date", "Sunday"], ["updated_at", "2019-04-12 16:08:20.413053"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:71 +  (6.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 31ms (ActiveRecord: 20.8ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 09:08:20 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 50ms (Views: 45.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 09:08:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 30ms (Views: 24.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 09:08: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 32ms (Views: 27.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-12 09:08:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (3.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 33ms (Views: 24.7ms | ActiveRecord: 3.8ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-12 09:08:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"FT8KkeCAQBU0pgh+B9SEVvNKVc36Aj42H7H4houC6iTNJxyPLwieyMcsQNo+y+oa0CtuTc7VGW4S1NN8H6d+cQ==", "task"=>{"name"=>"Clean", "description"=>"my apartment", "completed"=>"today"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:59 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:71 + Task Update (0.6ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Clean"], ["descriptions", "my apartment"], ["completion_date", "today"], ["updated_at", "2019-04-12 16:08:56.956961"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:71 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:71 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 7ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 09:08: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 09:09:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 35ms (Views: 28.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:11:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (24.9ms) +Completed 200 OK in 92ms (Views: 71.3ms | ActiveRecord: 7.7ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:11:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 62ms (Views: 23.3ms | ActiveRecord: 3.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:11:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 38ms (Views: 34.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:12:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 40ms (Views: 35.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 10:12:12 -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 87ms (Views: 25.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 10:12:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"V1gnKCWk+vGvA0iEjqxMigcNNA6KkNP9TwBBRswgleUt5Z8zv5u7R62QuU7Ke9qUDNNZTGGT480XHV8IlfnWOw==", "task"=>{"task"=>"I have to...Study", "descriptions"=>"Everything", "completion_date"=>"tomorrow"}, "commit"=>"Add Task"} +  (1.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:41 + Task Create (11.0ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to...Study"], ["created_at", "2019-04-12 17:12:34.578378"], ["updated_at", "2019-04-12 17:12:34.578378"], ["descriptions", "Everything"], ["completion_date", "tomorrow"]] + ↳ app/controllers/tasks_controller.rb:41 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:41 +Redirected to http://localhost:3000/tasks/4 +Completed 302 Found in 20ms (ActiveRecord: 13.6ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 10:12:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:12:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 36ms (Views: 29.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:12:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 35ms (Views: 30.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-12 10:12:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.7ms) +Completed 200 OK in 38ms (Views: 30.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:12:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KogFzaLuSmH6EJaiaOI9DUsPVm+/kKKbqEE0F3xbcR/ykBPTbWaUvAma3gZR/VNBaG5t74tHhcOlJB/t6H7lSg==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"tomorrow"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:82 +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.8ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'name' for Task.: + app/controllers/tasks_controller.rb:82:in `update' + +Started POST "/__better_errors/3ddd78048e94604d/variables" for ::1 at 2019-04-12 10:12:57 -0700 +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:13:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KogFzaLuSmH6EJaiaOI9DUsPVm+/kKKbqEE0F3xbcR/ykBPTbWaUvAma3gZR/VNBaG5t74tHhcOlJB/t6H7lSg==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"tomorrow"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 +  (0.1ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:82 +Completed 500 Internal Server Error in 16ms (ActiveRecord: 4.5ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'name' for Task.: + app/controllers/tasks_controller.rb:82:in `update' + +Started POST "/__better_errors/900c0b73791b9700/variables" for ::1 at 2019-04-12 10:13:56 -0700 +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:14:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KogFzaLuSmH6EJaiaOI9DUsPVm+/kKKbqEE0F3xbcR/ykBPTbWaUvAma3gZR/VNBaG5t74tHhcOlJB/t6H7lSg==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"tomorrow"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:82 +Completed 500 Internal Server Error in 19ms (ActiveRecord: 4.0ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'completed' for Task.: + app/controllers/tasks_controller.rb:82:in `update' + +Started POST "/__better_errors/32e7d7c738956ac4/variables" for ::1 at 2019-04-12 10:14:18 -0700 +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:14:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KogFzaLuSmH6EJaiaOI9DUsPVm+/kKKbqEE0F3xbcR/ykBPTbWaUvAma3gZR/VNBaG5t74tHhcOlJB/t6H7lSg==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"tomorrow"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", nil], ["descriptions", nil], ["completion_date", nil], ["updated_at", "2019-04-12 17:14:35.373546"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:82 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 23ms (ActiveRecord: 5.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:14: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 84ms (Views: 80.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:14:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 48ms (Views: 41.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:14:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 33ms (Views: 25.9ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-12 10:14:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.6ms) +Completed 200 OK in 40ms (Views: 33.5ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:15:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"I/zTGf9ct24mWp+hhy6TSoP2e8/8pyLuTduz44z/L8X75MUHMNRps9XQ1wW+Mf0GoJdAT8hwBbZAvpgZGNq7kA==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"tomorrow"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:15:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + 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.3ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:15:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 37ms (Views: 32.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:15:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (8.2ms) +Completed 200 OK in 29ms (Views: 22.0ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:15: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 37ms (Views: 29.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-12 10:15:35 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 37ms (Views: 30.1ms | ActiveRecord: 2.9ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:15:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wr+GsLueqiHG6PNu4tyhUmJIWxm645fweo27NflEphwap5CudBZ0/DViu8rbw88eQSlgmY40sKh36JDPbWEySQ==", "task"=>{"name"=>"faasfasf", "description"=>"fsgsdgsdg", "completed"=>"sdgsdgsdg"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "faasfasf"], ["descriptions", "fsgsdgsdg"], ["completion_date", "sdgsdgsdg"], ["updated_at", "2019-04-12 17:15:41.620586"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:82 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 8ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:15:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + 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.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:15:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 37ms (Views: 31.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:15: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 37ms (Views: 32.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-12 10:15:52 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (5.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 39ms (Views: 29.7ms | ActiveRecord: 5.3ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-12 10:16:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VYQCvZA2AN/g9fN37lLY7uHxFR12qeP31sE9qZKX+zWNnBSjX77eAhN/u9PXTbaiwpAunUJ+xK/bpBZTBrJvYA==", "task"=>{"name"=>"I have to...clean", "description"=>"my apartment", "completed"=>"Sunday"}, "commit"=>"Edit Task", "id"=>"1"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.8ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (5.8ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "I have to...clean"], ["descriptions", "my apartment"], ["completion_date", "Sunday"], ["updated_at", "2019-04-12 17:16:43.014027"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:82 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 14ms (ActiveRecord: 8.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 10:16: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]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:16:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 30ms (Views: 25.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 10:16:48 -0700 +Processing by TasksController#show 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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 31ms (Views: 25.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 10:16:50 -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:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:16:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 41ms (Views: 33.6ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 10:37:58 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.8ms) +Completed 200 OK in 101ms (Views: 85.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-12 10:37: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]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (11.8ms) +Completed 200 OK in 63ms (Views: 56.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-12 10:38:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"DeHG0LSnYfq1c27YcTDPE2NRdRIY07M76mUNjbceHwwZh6m4q7ojKGcvp3dMhEsTiuIZ0S3v209c6/R8iY3grA==", "task"=>{"name"=>"I have to...go hiking!", "description"=>"at Mount Rainier", "completed"=>"Sunday"}, "commit"=>"Edit Task", "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:81 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (1.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "I have to...go hiking!"], ["descriptions", "at Mount Rainier"], ["updated_at", "2019-04-12 17:38:55.447042"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:82 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 17ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 10:38:55 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 59ms (Views: 55.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:38:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 46ms (Views: 39.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-12 10:39:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (5.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 38ms (Views: 26.4ms | ActiveRecord: 5.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-12 10:39:08 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 42ms (Views: 37.0ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-12 10:39:28 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"430biapNSvQTp0s0nbSLvzqcbelKISZEPx/EDvyD4uMxvM+KZExjMuKTWYO06Yq7Vw3yxvNfKy8D3adnpDTDmw==", "task"=>{"name"=>"I have to...fold laundry :(", "description"=>"and put it away", "completed"=>"today"}, "commit"=>"Edit Task", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:81 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (0.5ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "I have to...fold laundry :("], ["descriptions", "and put it away"], ["completion_date", "today"], ["updated_at", "2019-04-12 17:39:28.306371"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:82 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 7ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-12 10:39:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 28ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 10:53:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (11.7ms) +Completed 200 OK in 123ms (Views: 114.5ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:08:54 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (13.3ms) +Completed 200 OK in 229ms (Views: 214.6ms | ActiveRecord: 4.8ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:08:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (28.6ms) +Completed 200 OK in 53ms (Views: 47.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:09:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fKd/+/pY0ShG+o9/zEFvW32xKYk3mRutuBDbmYt2+SUGGsfgYGeQnkRpfrWIlvlFdm9Ey9yaK53gDcXX0q+6+w==", "task"=>{"task"=>"I have to...something", "descriptions"=>"somewhere", "completion_date"=>"sometime"}, "commit"=>"Add Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:41 + Task Create (0.7ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to...something"], ["created_at", "2019-04-12 18:09:10.658649"], ["updated_at", "2019-04-12 18:09:10.658649"], ["descriptions", "somewhere"], ["completion_date", "sometime"]] + ↳ app/controllers/tasks_controller.rb:41 +  (1.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:41 +Redirected to http://localhost:3000/tasks/5 +Completed 302 Found in 6ms (ActiveRecord: 1.9ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-12 11:09: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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 24ms (Views: 18.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/5/edit" for ::1 at 2019-04-12 11:09:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"5"} + Task Load (4.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (4.3ms) +Completed 200 OK in 42ms (Views: 31.9ms | ActiveRecord: 4.7ms) + + +Started PATCH "/tasks/5" for ::1 at 2019-04-12 11:09:50 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"C5EkSTSEhfzquBYzc1QSoJNJxU8JC6jpb9ha6b/NU5V/hC9u0ROYErvwC/hE0XpB+mosA1G3AtlMSQYxbCeQOQ==", "task"=>{"name"=>"I have to...finish The Sopranos", "description"=>"so I can be ready for GoT!", "completed"=>"This weekend"}, "commit"=>"Edit Task", "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:81 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:82 + Task Update (0.7ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "I have to...finish The Sopranos"], ["descriptions", "so I can be ready for GoT!"], ["completion_date", "This weekend"], ["updated_at", "2019-04-12 18:09:50.411320"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:82 +  (6.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:82 +Redirected to http://localhost:3000/tasks/5 +Completed 302 Found in 13ms (ActiveRecord: 7.7ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-12 11:09:50 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:09:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 28ms (Views: 23.0ms | ActiveRecord: 0.7ms) + + +Started GET "/books" for ::1 at 2019-04-12 11:42:50 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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-12 11:42:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (22.9ms) +Completed 200 OK in 278ms (Views: 260.8ms | ActiveRecord: 10.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 11:42:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (13.4ms) +Completed 200 OK in 46ms (Views: 41.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 11:43:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6sTftND5mVdZJdh9gnC5+1Xi+oUAlnOBjYRipxg/T8SQeWevSsbY4Vu2KbfGpy/lXjyXx+uVQ7HVmXzpQeYMGg==", "task"=>{"task"=>"I have to...eat", "descriptions"=>"lunch", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to...eat"], ["created_at", "2019-04-12 18:43:07.051186"], ["updated_at", "2019-04-12 18:43:07.051186"], ["descriptions", "lunch"], ["completion_date", "incomplete"]] + ↳ app/controllers/tasks_controller.rb:43 +  (4.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:43 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 9ms (ActiveRecord: 5.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 11:43:07 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 24ms (Views: 18.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-12 11:43:11 -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:54 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 39ms (Views: 31.5ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-12 11:43:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PSJAtfDfn3dgt9T9low+FfnHBWr31YJRKrz0N5yJ9j+vepcVJ5Ub8RqFh0twyeRl2v7TIOFv+8NE+csN1dZH1Q==", "task"=>{"name"=>"I have to...eat lunch", "description"=>"red beans", "completed"=>"right now"}, "commit"=>"Edit Task", "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:58 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "I have to...eat lunch"], ["descriptions", "red beans"], ["completion_date", "right now"], ["updated_at", "2019-04-12 18:43:31.143953"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:59 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 11:43:31 -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:21 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 11:43:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 42ms (Views: 32.1ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:27:44 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (15.2ms) +Completed 200 OK in 241ms (Views: 220.8ms | ActiveRecord: 5.1ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 13:27:49 -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 47ms (Views: 41.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 13:27:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+cOrUgbeSuDkn6Ik2BqdC7IlG7RtdLu7a90YK4MynpuDfhNJnOELVuYMU+6czQsVuft29oZ3i4szwAZl2uvdRQ==", "task"=>{"task"=>"I have to...", "descriptions"=>"", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (6.0ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to..."], ["created_at", "2019-04-12 20:27:51.958121"], ["updated_at", "2019-04-12 20:27:51.958121"], ["descriptions", ""], ["completion_date", "incomplete"]] + ↳ app/controllers/tasks_controller.rb:25 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 11ms (ActiveRecord: 7.0ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:27: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:9 + 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.7ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:27:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 31ms (Views: 27.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:27:56 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 41ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:27:57 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (16.6ms) +Completed 500 Internal Server Error in 34ms (ActiveRecord: 0.3ms) + + + +ActionView::MissingTemplate - Missing partial tasks/_form, application/_form with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/faizahusain/Documents/Ada_Classwork/Ruby_on_Rails/TaskList/app/views" +: + app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___3963534372690125662_70231408521860' + +Started POST "/__better_errors/fa2988ad34847857/variables" for ::1 at 2019-04-12 13:27:57 -0700 +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:28:34 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.3ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.3ms) + + + +ActionView::MissingTemplate - Missing partial app/views/partial/__form.html.erb with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/faizahusain/Documents/Ada_Classwork/Ruby_on_Rails/TaskList/app/views" +: + app/views/tasks/edit.html.erb:4:in `_app_views_tasks_edit_html_erb___3963534372690125662_70231407033720' + +Started POST "/__better_errors/a19d89e911a8d75d/variables" for ::1 at 2019-04-12 13:28:35 -0700 +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:29:07 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/edit.html.erb within layouts/application (6.8ms) +Completed 200 OK in 87ms (Views: 82.4ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:29:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"w/HRI/OrkDIU15yYjSusCpHSZVupaMBv5DxqdJyF+mDwQDaFkYkEZTcevuitUemF5RrR8GBn9kUyT6LcQLYYYA==", "task"=>{"name"=>"I have to...take notes", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "id"=>"7"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:41 +Unpermitted parameters: :name, :description, :completed +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 7ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:29: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 73ms (Views: 68.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:29:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 37ms (Views: 30.4ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:29:38 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 37ms (Views: 30.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:29:39 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (6.4ms) + Rendered tasks/edit.html.erb within layouts/application (10.8ms) +Completed 200 OK in 42ms (Views: 33.2ms | ActiveRecord: 3.1ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:30:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Ghv4ii/71g9ee22/J1YT4aXoq4qSdDDVCduoHNtEi9/wub/eSQ1K68ppFHyiDVdhzyvhYQ7sKA+8UrbVWXRokg==", "task"=>{"name"=>"I have to...take notes", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "id"=>"7"} + Task Load (5.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:41 +Unpermitted parameters: :name, :description, :completed +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:42 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:42 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 9ms (ActiveRecord: 6.1ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:30:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 20ms (Views: 15.2ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:32: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 46ms (Views: 31.2ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:32:46 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (14.5ms) +Completed 200 OK in 233ms (Views: 214.1ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:32:47 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 38ms (Views: 27.2ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:32:48 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + Task Load (8.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (20.8ms) + Rendered tasks/edit.html.erb within layouts/application (23.6ms) +Completed 200 OK in 60ms (Views: 41.8ms | ActiveRecord: 8.6ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:33:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ESB1C+fhUjs713Z7QITMURQb7ujgQ75K2/4N4S3weyb7gjJfgRfO36/FD7jF34jRftikA3zbppBudxMor8CYaw==", "task"=>{"name"=>"I have to...take notes", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "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:41 +Unpermitted parameter: :name +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:43 +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.7ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'description' for Task.: + app/controllers/tasks_controller.rb:43:in `update' + +Started POST "/__better_errors/1e7f129371d99583/variables" for ::1 at 2019-04-12 13:33:40 -0700 +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:34:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ESB1C+fhUjs713Z7QITMURQb7ujgQ75K2/4N4S3weyb7gjJfgRfO36/FD7jF34jRftikA3zbppBudxMor8CYaw==", "task"=>{"name"=>"I have to...take notes", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "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:41 +Unpermitted parameters: :name, :description +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.1ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:43 +Completed 500 Internal Server Error in 13ms (ActiveRecord: 3.6ms) + + + +ActiveModel::UnknownAttributeError - unknown attribute 'completed' for Task.: + app/controllers/tasks_controller.rb:43:in `update' + +Started POST "/__better_errors/01b364dca8052419/variables" for ::1 at 2019-04-12 13:34:04 -0700 +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:34:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ESB1C+fhUjs713Z7QITMURQb7ujgQ75K2/4N4S3weyb7gjJfgRfO36/FD7jF34jRftikA3zbppBudxMor8CYaw==", "task"=>{"name"=>"I have to...take notes", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "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:41 +Unpermitted parameters: :name, :description, :completed +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:43 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 11ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:34:16 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 19ms (Views: 15.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:34:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:34: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 36ms (Views: 30.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:34:21 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.6ms) + Rendered tasks/edit.html.erb within layouts/application (11.1ms) +Completed 200 OK in 51ms (Views: 43.0ms | ActiveRecord: 2.2ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:34:52 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IADsTHBD4k34A7mz3xzxmS2zGb+tBLwHRn1c5FGgrprKoqsYFrV+qWwRwHBaR7UZR3BTVDGcpN3z9EIt05BN1w==", "task"=>{"name"=>"I have to...take notes ", "description"=>"in my notebook", "completed"=>"today"}, "commit"=>"Update Task", "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:41 +Unpermitted parameters: :name, :description, :completed +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:43 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:34: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 26ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:35: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 39ms (Views: 26.4ms | ActiveRecord: 2.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:35:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 38ms (Views: 31.8ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:35:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (5.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 42ms (Views: 24.7ms | ActiveRecord: 5.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:59:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (15.3ms) +Completed 200 OK in 54ms (Views: 42.8ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:59: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 38ms (Views: 29.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 13:59:45 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (6.6ms) +Completed 200 OK in 43ms (Views: 34.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 13:59:53 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"W/A0f0vgiWHDDSdbJFDM+/zBV4QUR4lggSyQpGodENmxUnMrLRYVhVcfXpihC4h7lgIdb4jfkbo0pY5t6C3zlA==", "task"=>{"name"=>"fsefef", "description"=>"sdgsgsg", "completed"=>"dsgsdgsd"}, "commit"=>"Update Task", "id"=>"7"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:54 + Task Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "fsefef"], ["descriptions", "sdgsgsg"], ["completion_date", "dsgsdgsd"], ["updated_at", "2019-04-12 20:59:53.595948"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:54 +  (4.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:54 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 10ms (ActiveRecord: 6.2ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 13:59: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 25ms (Views: 21.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 13:59:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 34ms (Views: 29.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:08:52 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 202ms (Views: 178.3ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 14:08:55 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + Task Load (7.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (11.0ms) + Rendered tasks/edit.html.erb within layouts/application (14.0ms) +Completed 200 OK in 55ms (Views: 42.1ms | ActiveRecord: 7.1ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 14:09:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oJQZYgEn40SX5G4zABPbbPCm+FANwelTmhK9JVO4OrhKNl42Z9F/oAP2F/CFSJ/smmWyu5FZ8Ykvm6Ps0YjZ9Q==", "task"=>{"name"=>"I have to...finish TaskList", "description"=>"in the auditorium", "completed"=>"today"}, "commit"=>"Update Task", "id"=>"7"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:41 +Unpermitted parameters: :name, :description, :completed +  (1.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:43 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 9ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:09:16 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 23ms (Views: 19.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 14:11:58 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (17.4ms) + Rendered tasks/edit.html.erb within layouts/application (20.6ms) +Completed 200 OK in 295ms (Views: 257.6ms | ActiveRecord: 4.6ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 14:12:16 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"u3IP9Qr22lqdtTIogfuYesXyM01/sEmb4tjxsO8FqSRR0EihbABGvgmnS+sEoNz6rzF5puMoUUFXUe95bTVKaQ==", "task"=>{"name"=>"Hi Heather", "description"=>"in auditorium", "completed"=>"today"}, "commit"=>"Update Task", "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:41 +Unpermitted parameters: :name, :description, :completed +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:43 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:43 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:12:16 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 22ms (Views: 16.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:13:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 31ms (Views: 27.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:13:14 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 36ms (Views: 31.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 14:13:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + Task Load (11.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/edit.html.erb within layouts/application (6.3ms) +Completed 200 OK in 41ms (Views: 26.9ms | ActiveRecord: 11.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:18:24 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 214ms (Views: 200.5ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:18: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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 38ms (Views: 24.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 14:18:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"7"} + Task Load (2.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (21.7ms) + Rendered tasks/edit.html.erb within layouts/application (31.7ms) +Completed 200 OK in 68ms (Views: 56.8ms | ActiveRecord: 2.5ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 14:19:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"b/5Y0YdSWlKb9RxA0w5QvT7vdieljz7Sa9nFjS64hhiFXB+F4aTGtg/nZYNWVRQ9VCw8zDkXJgjeUNtErIhlVQ==", "task"=>{"name"=>"Hi", "description"=>"here", "completed"=>"today"}, "commit"=>"Update Task", "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:43 +Unpermitted parameters: :name, :description, :completed +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:45 +  (0.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:45 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:19:03 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 20ms (Views: 17.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:21:47 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (16.2ms) +Completed 200 OK in 246ms (Views: 228.7ms | ActiveRecord: 7.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 14:21:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (27.1ms) +Completed 200 OK in 55ms (Views: 50.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 14:21:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pYPVULXvwBDXzzJZ87PYrk8CAya8Kjd3d3ooIWkUTP7fPm1LL9CBptVcw5O3ZE6wRNxuZFcpB0cvZzZvMM0PIA==", "task"=>{"task"=>"I have to...vsdgsdgs", "descriptions"=>"sdgsdghd", "completion_date"=>"incomplete"}, "commit"=>"Add Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to...vsdgsdgs"], ["created_at", "2019-04-12 21:21:55.040216"], ["updated_at", "2019-04-12 21:21:55.040216"], ["descriptions", "sdgsdghd"], ["completion_date", "incomplete"]] + ↳ app/controllers/tasks_controller.rb:25 +  (6.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/8 +Completed 302 Found in 11ms (ActiveRecord: 7.2ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-12 14:21:55 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 26ms (Views: 19.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:21:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:22:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 36ms (Views: 30.2ms | ActiveRecord: 1.6ms) + + +Started GET "/tasks/7/edit" for ::1 at 2019-04-12 14:22:01 -0700 +Processing by TasksController#edit 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:36 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.7ms) + Rendered tasks/edit.html.erb within layouts/application (5.3ms) +Completed 200 OK in 40ms (Views: 32.7ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/7" for ::1 at 2019-04-12 14:22:14 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CFQxepHD7k0YyxMH7hheHCjVyRV0Q1ZSBCkSLTxqydLi9nYu9zVyqYzZasRrQxqcQhaD/ujbToixoAzkvloqnw==", "task"=>{"task"=>"Hi Heather", "descriptions"=>"Auditorium", "completion_date"=>"today"}, "commit"=>"Update Task", "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:43 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:45 + Task Update (1.5ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Hi Heather"], ["descriptions", "Auditorium"], ["completion_date", "today"], ["updated_at", "2019-04-12 21:22:14.291694"], ["id", 7]] + ↳ app/controllers/tasks_controller.rb:45 +  (4.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:45 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 11ms (ActiveRecord: 6.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 14:22:14 -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:9 + 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.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:22:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 40ms (Views: 35.2ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-12 14:23:03 -0700 +Processing by TasksController#show 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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 37ms (Views: 28.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:24:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (58.1ms) +Completed 200 OK in 96ms (Views: 90.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 14:24:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.8ms) + Rendered tasks/new.html.erb within layouts/application (6.7ms) +Completed 200 OK in 48ms (Views: 41.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 14:25:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"P4+UCbfup/vBny6Z+b5OO6w0yeNiZcM/mNFX24rHieVFMiwSLdHmTcMM31O9adglp+qkoYlm8w/AzEmV0x7KOw==", "task"=>{"task"=>"I have to...do stuff", "descriptions"=>"tomorrow", "completion_date"=>"incomplete"}, "commit"=>"Create Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.7ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to...do stuff"], ["created_at", "2019-04-12 21:25:08.650412"], ["updated_at", "2019-04-12 21:25:08.650412"], ["descriptions", "tomorrow"], ["completion_date", "incomplete"]] + ↳ app/controllers/tasks_controller.rb:25 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 8ms (ActiveRecord: 2.8ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-12 14:25:08 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 31ms (Views: 26.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 14:25:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 41ms (Views: 34.0ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-12 15:21:28 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 223ms (Views: 202.3ms | ActiveRecord: 4.4ms) + + +Started DELETE "/tasks/7" for ::1 at 2019-04-12 15:21:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"bwA926s+Fra5b6626heBLPZnMHuKtVUkX/CO9zGsANFcsdp9yRyC4ZqmjMbKbcSjgq+E0EO6Yw6Jg0Zf7Z/i0Q==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Destroy (0.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] + ↳ app/controllers/tasks_controller.rb:57 +  (3.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:21:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-12 15:21:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (10.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 44ms (Views: 29.1ms | ActiveRecord: 10.4ms) + + +Started DELETE "/tasks/8" for ::1 at 2019-04-12 15:21:35 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"2nVqEYApgbzWZO3kYqIqCC7L6TTIsAW43pnxKscPdYzpxI234gsV6/Wtz5RC2G+HWgNdnwG/M5II6jmCGzyXjA==", "id"=>"8"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.6ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:21:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:21:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 34ms (Views: 26.5ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-12 15:21:41 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (14.8ms) + Rendered tasks/edit.html.erb within layouts/application (17.7ms) +Completed 200 OK in 47ms (Views: 39.0ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-12 15:21:47 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"U1mPy4z3dZVdparKwfZ84BxnhIQyQjrtHGXaAhC6LenBAVhrW73xEyeX+Xwns6aQP15SziT4Q39yIOU4WeWcAw==", "task"=>{"task"=>"I have to...eat dinner", "descriptions"=>"red beans", "completion_date"=>"right now"}, "commit"=>"Update Task", "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:41 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:45 + Task Update (0.6ms) UPDATE "tasks" SET "task" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task", "I have to...eat dinner"], ["updated_at", "2019-04-12 22:21:47.059337"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:45 +  (2.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:45 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 10ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:21:47 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-12 15:21:49 -0700 +Processing by TasksController#edit 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:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (3.0ms) + Rendered tasks/edit.html.erb within layouts/application (5.7ms) +Completed 200 OK in 43ms (Views: 36.8ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-12 15:22:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1w5xmvkop6tdhuMuhzIzywNZLfFwhSOOcx7dnlUjvvhFVqY6LmIjLSe0sJhhd+m7IGD7u2Y/WhwdW+KkHHwPEg==", "task"=>{"task"=>"I have to...eat dinner", "descriptions"=>"biryani", "completion_date"=>"later"}, "commit"=>"Update Task", "id"=>"6"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:41 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:45 + Task Update (0.5ms) UPDATE "tasks" SET "descriptions" = $1, "completion_date" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["descriptions", "biryani"], ["completion_date", "later"], ["updated_at", "2019-04-12 22:22:02.434169"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:45 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:45 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 8ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 15:22:02 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 44ms (Views: 40.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:22:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 44ms (Views: 35.4ms | ActiveRecord: 4.2ms) + + +Started GET "/tasks/5" for ::1 at 2019-04-12 15:22:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"5"} + Task Load (10.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 39ms (Views: 24.6ms | ActiveRecord: 10.8ms) + + +Started DELETE "/tasks/5" for ::1 at 2019-04-12 15:22:30 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"txDpHu6LxuiolPAorWlzA6QCDkPKTyjam+Af8Iqew/CEoQ64jKlSv4td0liNEzaM0Mq66ANAHvBNk9dYVq0h8A==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 5]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:22:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 20.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-12 15:24:22 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 245ms (Views: 213.1ms | ActiveRecord: 3.9ms) + + +Started DELETE "/tasks/9" for ::1 at 2019-04-12 15:24:24 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"kt41KvDhkn3O4t/eMdws3mdkGzmNB91M8BuOJ5GgGw2hb9KMksMGKu0r/a4RpmlRE6yvkkQI62YmaEaPTZP5DQ==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 9]] + ↳ app/controllers/tasks_controller.rb:57 +  (4.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 5.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:24:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 18.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-12 15:24:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (19.5ms) + Rendered tasks/new.html.erb within layouts/application (22.7ms) +Completed 200 OK in 69ms (Views: 61.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 15:24:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"C0lENDBaZJ/dvhpyTIZZpZHbQeTzoMGuroHFN9Hc+N9x9PwvqmUlKd8t67gIUc+7mgUsphij8Z72nNt5iAW7AQ==", "task"=>{"task"=>"I have to..afsgsdgdsg.", "descriptions"=>"gfdgdfhsgfef", "completion_date"=>"incompletgsgsdgsdge"}, "commit"=>"Create Task"} +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.6ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to..afsgsdgdsg."], ["created_at", "2019-04-12 22:24:37.633295"], ["updated_at", "2019-04-12 22:24:37.633295"], ["descriptions", "gfdgdfhsgfef"], ["completion_date", "incompletgsgsdgsdge"]] + ↳ app/controllers/tasks_controller.rb:25 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 6ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-12 15:24:37 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:24:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 36ms (Views: 31.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:27:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (12.7ms) +Completed 200 OK in 147ms (Views: 135.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-12 15:27:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (5.2ms) +Completed 200 OK in 73ms (Views: 39.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:27:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 65ms (Views: 60.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:27:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 57ms (Views: 50.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-12 15:27:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 38ms (Views: 33.3ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-12 15:29:17 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 77ms (Views: 74.6ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/10" for ::1 at 2019-04-12 15:29:28 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"N/jmZD/feBwG5mAacboHeZw0BQzwLr4T1DKSbKJuwHcESQHCXf3sSyUvQmpRwEL26PyxpzkhiDkCQVrEfl0idw==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 10]] + ↳ app/controllers/tasks_controller.rb:57 +  (2.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:29:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.3ms) + + diff --git a/log/test.log b/log/test.log index 0f265afc1..c24679d28 100644 --- a/log/test.log +++ b/log/test.log @@ -835,3 +835,7166 @@ Completed 302 Found in 3ms (ActiveRecord: 0.7ms)  (0.2ms) SELECT COUNT(*) FROM "tasks" Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]]  (0.1ms) ROLLBACK +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (14.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 (22.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 15:26:30.696265', '2019-04-12 15:26:30.696265', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 15:26:30.696265', '2019-04-12 15:26:30.696265', 'MyString', 'MyString') +  (12.9ms) 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::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::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::show: test_0001_can get a valid task +----------------------------------------------------- +  (2.6ms) SAVEPOINT active_record_1 + Task Create (1.9ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 15:26:30.810526"], ["updated_at", "2019-04-12 15:26:30.810526"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 08:26:30 -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.7ms) +Completed 200 OK in 254ms (Views: 227.4ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 08:26:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::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 08:26:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 15:26:31.103559"], ["updated_at", "2019-04-12 15:26:31.103559"], ["descriptions", "new task description"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 1.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 08: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" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 08: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" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 08:26:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.4ms) +Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.4ms) 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 (2.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 15:27:28.748174', '2019-04-12 15:27:28.748174', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 15:27:28.748174', '2019-04-12 15:27:28.748174', 'MyString', 'MyString') +  (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 +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 08:27:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 15:27:28.789042"], ["updated_at", "2019-04-12 15:27:28.789042"], ["descriptions", "new task description"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 14ms (ActiveRecord: 1.1ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 08:27:28 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 173ms (Views: 171.6ms | ActiveRecord: 0.0ms) +  (0.2ms) 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.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 15:27:28.979588"], ["updated_at", "2019-04-12 15:27:28.979588"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 08:27:28 -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.0ms) +Completed 200 OK in 10ms (Views: 4.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 +------------------------------------------------------------------------------------------------------ +  (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-12 08:27:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 1.7ms | 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-12 08:27:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.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 (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 15:27:29.008659"], ["updated_at", "2019-04-12 15:27:29.008659"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 08:27:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 08:27:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 15:45:12.586062', '2019-04-12 15:45:12.586062', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 15:45:12.586062', '2019-04-12 15:45:12.586062', 'MyString', 'MyString') +  (1.2ms) COMMIT +  (0.2ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 15:45:12.619608"], ["updated_at", "2019-04-12 15:45:12.619608"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 08:45:12 -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.0ms) +Completed 200 OK in 225ms (Views: 216.2ms | 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-12 08:45:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 15:45:12.862823"], ["updated_at", "2019-04-12 15:45:12.862823"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 08:45:12 -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 (21.9ms) +Completed 200 OK in 27ms (Views: 23.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 +------------------------------------------------------------------------------------------------------ +  (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 08:45:12 -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: 3.0ms | ActiveRecord: 0.0ms) +  (0.5ms) 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-12 08:45:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 5ms (Views: 2.7ms | 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 08:45:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms) +  (0.6ms) 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::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 08:45:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 15:45:12.943363"], ["updated_at", "2019-04-12 15:45:12.943363"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.5ms) 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.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 16:11:44.856014', '2019-04-12 16:11:44.856014', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 16:11:44.856014', '2019-04-12 16:11:44.856014', 'MyString', 'MyString') +  (0.4ms) 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.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 16:11:44.887873"], ["updated_at", "2019-04-12 16:11:44.887873"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 09:11:44 -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 (17.9ms) +Completed 200 OK in 235ms (Views: 224.6ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 09:11:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 16:11:45.142884"], ["updated_at", "2019-04-12 16:11:45.142884"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 09:11: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 (0.8ms) +Completed 200 OK in 8ms (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 09:11: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.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 09:11: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.5ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 09:11:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 16:11:45.183002"], ["updated_at", "2019-04-12 16:11:45.183002"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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 +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 09: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" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 09:11:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 16:12:59.214017', '2019-04-12 16:12:59.214017', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 16:12:59.214017', '2019-04-12 16:12:59.214017', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) 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::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 09:12:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 16:12:59.247919"], ["updated_at", "2019-04-12 16:12:59.247919"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 11ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 16:12:59.256654"], ["updated_at", "2019-04-12 16:12:59.256654"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 09:12:59 -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 (8.7ms) +Completed 200 OK in 189ms (Views: 185.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 09:12:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) 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 +  (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-12 09: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 (2.0ms) +Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.0ms) +  (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-12 09:12:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 09:12:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 2.0ms | 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 (1.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 16:12:59.489041"], ["updated_at", "2019-04-12 16:12:59.489041"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 09:12:59 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.3ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 09:12: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.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 16:17:32.670015', '2019-04-12 16:17:32.670015', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 16:17:32.670015', '2019-04-12 16:17:32.670015', 'MyString', 'MyString') +  (1.3ms) COMMIT +  (0.2ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 09:17:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (12.8ms) +Completed 200 OK in 204ms (Views: 197.8ms | 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-12 09:17:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +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-12 09:17:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (19.1ms) +Completed 200 OK in 24ms (Views: 20.3ms | ActiveRecord: 0.0ms) +  (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) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 16:17:32.938301"], ["updated_at", "2019-04-12 16:17:32.938301"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (1.3ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 16:17:32.940133"], ["completion_date", "tomorrow"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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-12 09:17:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 16:17:32.961109"], ["updated_at", "2019-04-12 16:17:32.961109"], ["descriptions", "new task description"]] +  (0.1ms) 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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 16:17:32.970216"], ["updated_at", "2019-04-12 16:17:32.970216"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 09:17:32 -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 (0.5ms) +Completed 200 OK in 5ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 09:17:32 -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.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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 16:17:32.984656"], ["updated_at", "2019-04-12 16:17:32.984656"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 09:17:32 -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.5ms) +Completed 200 OK in 6ms (Views: 3.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/-1" for 127.0.0.1 at 2019-04-12 09:17:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (1.3ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 16:21:55.180801', '2019-04-12 16:21:55.180801', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 16:21:55.180801', '2019-04-12 16:21:55.180801', 'MyString', 'MyString') +  (0.8ms) 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.6ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 09:21:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.0ms) +Completed 200 OK in 214ms (Views: 207.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 09:21:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (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-12 09:21:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 16:21:55.448400"], ["updated_at", "2019-04-12 16:21:55.448400"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) 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-12 09:21:55 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (16.5ms) +Completed 200 OK in 25ms (Views: 17.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-12 09:21: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 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 (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 16:21:55.501391"], ["updated_at", "2019-04-12 16:21:55.501391"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 09:21:55 -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 (0.7ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 16:21:55.510692"], ["updated_at", "2019-04-12 16:21:55.510692"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 16:21:55.512297"], ["completion_date", "tomorrow"], ["id", 980190965]] +  (2.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 09:21: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.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 16:21:55.567779"], ["updated_at", "2019-04-12 16:21:55.567779"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 09:21:55 -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.3ms) +Completed 200 OK in 7ms (Views: 3.7ms | 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.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 17:17:05.865127', '2019-04-12 17:17:05.865127', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 17:17:05.865127', '2019-04-12 17:17:05.865127', 'MyString', 'MyString') +  (0.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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 17:17:05.898764"], ["updated_at", "2019-04-12 17:17:05.898764"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 10:17: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 (2.3ms) +Completed 200 OK in 234ms (Views: 221.5ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 10:17:06 -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 +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 17:17:06.153998"], ["updated_at", "2019-04-12 17:17:06.153998"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 17:17:06.155351"], ["completion_date", "tomorrow"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.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-12 10:17:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 17:17:06.232038"], ["updated_at", "2019-04-12 17:17:06.232038"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 17:17:06.238409"], ["updated_at", "2019-04-12 17:17:06.238409"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 10:17:06 -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 (19.3ms) +Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 10:17:06 -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-12 10: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 (2.3ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 10:17:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 10:17:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 17:17:27.058411', '2019-04-12 17:17:27.058411', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 17:17:27.058411', '2019-04-12 17:17:27.058411', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 17:17:27.093785"], ["updated_at", "2019-04-12 17:17:27.093785"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 10:17:27 -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 (6.9ms) +Completed 200 OK in 162ms (Views: 153.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/-1" for 127.0.0.1 at 2019-04-12 10:17:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 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-12 10:17:27 -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 6ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 17:17:27.281666"], ["updated_at", "2019-04-12 17:17:27.281666"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 17:17:27.283017"], ["completion_date", "tomorrow"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 10:17:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 10:17:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 17:17:27.296547"], ["updated_at", "2019-04-12 17:17:27.296547"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 17:17:27.302237"], ["updated_at", "2019-04-12 17:17:27.302237"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 10:17:27 -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 (0.7ms) +Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (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 10:17:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 10:17:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 10:17:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 17:40:05.800185', '2019-04-12 17:40:05.800185', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 17:40:05.800185', '2019-04-12 17:40:05.800185', 'MyString', 'MyString') +  (0.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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 10:40:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (24.2ms) +Completed 200 OK in 276ms (Views: 257.9ms | 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.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 17:40:06.109641"], ["updated_at", "2019-04-12 17:40:06.109641"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 10:40:06 -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 (3.1ms) +Completed 200 OK in 12ms (Views: 4.7ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 10:40:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (1.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (3.5ms) SAVEPOINT active_record_1 + Task Create (2.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 17:40:06.142459"], ["updated_at", "2019-04-12 17:40:06.142459"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 17:40:06.147033"], ["completion_date", "tomorrow"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 10:40:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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 (1.0ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 17:40:06.161261"], ["updated_at", "2019-04-12 17:40:06.161261"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 10:40:06 -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 (0.9ms) +Completed 200 OK in 18ms (Views: 5.1ms | ActiveRecord: 0.3ms) +  (0.8ms) 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 10:40:06 -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::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 10:40:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 17:40:06.198270"], ["updated_at", "2019-04-12 17:40:06.198270"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 10:40:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 8ms (Views: 3.2ms | ActiveRecord: 1.9ms) +  (1.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 10:40:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 17:40:27.520482', '2019-04-12 17:40:27.520482', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 17:40:27.520482', '2019-04-12 17:40:27.520482', 'MyString', 'MyString') +  (0.5ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 17:40:27.541732"], ["updated_at", "2019-04-12 17:40:27.541732"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 10:40:27 -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 191ms (Views: 182.8ms | 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-12 10:40:27 -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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 10:40:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (44.9ms) +Completed 200 OK in 49ms (Views: 46.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 (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 17:40:27.803733"], ["updated_at", "2019-04-12 17:40:27.803733"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 10:40:27 -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.2ms) +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/-1" for 127.0.0.1 at 2019-04-12 10:40:27 -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.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 17:40:27.818234"], ["updated_at", "2019-04-12 17:40:27.818234"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 17:40:27.819722"], ["completion_date", "tomorrow"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 10:40:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-12 10:40:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (5.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 17:40:27.838108"], ["updated_at", "2019-04-12 17:40:27.838108"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 9ms (ActiveRecord: 5.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 10:40:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 10:40:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:10:23.590159', '2019-04-12 18:10:23.590159', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:10:23.590159', '2019-04-12 18:10:23.590159', 'MyString', 'MyString') +  (0.7ms) 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 +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:10:23.616977"], ["updated_at", "2019-04-12 18:10:23.616977"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 18:10:23.619520"], ["completion_date", "tomorrow"], ["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:10:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:10:23.642108"], ["updated_at", "2019-04-12 18:10:23.642108"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 11:10:23 -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 (22.6ms) +Completed 200 OK in 178ms (Views: 169.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:10:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:10:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 11:10:23 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:10:23.903040"], ["updated_at", "2019-04-12 18:10:23.903040"], ["descriptions", "new task description"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 1.4ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (1.6ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 11:10:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.2ms) 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-12 11:10:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:10:23.930864"], ["updated_at", "2019-04-12 18:10:23.930864"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 11:10:23 -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 (0.8ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.4ms) 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.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:10:38.956594', '2019-04-12 18:10:38.956594', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:10:38.956594', '2019-04-12 18:10:38.956594', 'MyString', 'MyString') +  (0.5ms) 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::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 11:10:38 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:10:38.995140"], ["updated_at", "2019-04-12 18:10:38.995140"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 12ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 11:10:39 -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.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:10:39.012708"], ["updated_at", "2019-04-12 18:10:39.012708"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 11:10: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 (1.7ms) +Completed 200 OK in 150ms (Views: 146.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:10:39.169011"], ["updated_at", "2019-04-12 18:10:39.169011"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 18:10:39.170948"], ["completion_date", "tomorrow"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:10:39 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 2.1ms) +  (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-12 11:10:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 11:10:39 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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-12 11:10:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (17.9ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:10:39.225237"], ["updated_at", "2019-04-12 18:10:39.225237"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 11:10:39 -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.1ms) +Completed 200 OK in 7ms (Views: 3.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/-1" for 127.0.0.1 at 2019-04-12 11:10:39 -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.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:11:00.122124', '2019-04-12 18:11:00.122124', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:11:00.122124', '2019-04-12 18:11:00.122124', 'MyString', 'MyString') +  (1.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::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:11:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:11:00.158736"], ["updated_at", "2019-04-12 18:11:00.158736"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 11:11:00 -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.0ms) +Completed 200 OK in 123ms (Views: 121.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:11:00.287536"], ["updated_at", "2019-04-12 18:11:00.287536"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 18:11:00.289734"], ["completion_date", "tomorrow"], ["id", 980190964]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:11:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 11:11:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:11:00.308043"], ["updated_at", "2019-04-12 18:11:00.308043"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.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.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:11:00.314245"], ["updated_at", "2019-04-12 18:11:00.314245"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 11:11:00 -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 (5.2ms) +Completed 200 OK in 10ms (Views: 6.3ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:11:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.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 11:11:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 3.5ms | 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-12 11:11:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:11:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (1.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.7ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:43:51.968881', '2019-04-12 18:43:51.968881', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:43:51.968881', '2019-04-12 18:43:51.968881', 'MyString', 'MyString') +  (0.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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:43:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 160ms (Views: 154.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 11:43:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.8ms) 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-12 11:43:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:43:52.185735"], ["updated_at", "2019-04-12 18:43:52.185735"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (1.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-12 11:43:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (26.3ms) +Completed 200 OK in 49ms (Views: 28.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:43:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:43:52.278347"], ["updated_at", "2019-04-12 18:43:52.278347"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "updated_at" = $1, "completion_date" = $2 WHERE "tasks"."id" = $3 [["updated_at", "2019-04-12 18:43:52.279836"], ["completion_date", "tomorrow"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:43:52.283370"], ["updated_at", "2019-04-12 18:43:52.283370"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 11:43:52 -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 (2.0ms) +Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:43:52 -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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:43:52.297251"], ["updated_at", "2019-04-12 18:43:52.297251"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 11:43:52 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:43:52 -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.5ms) 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 (1.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:49:21.892147', '2019-04-12 18:49:21.892147', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:49:21.892147', '2019-04-12 18:49:21.892147', 'MyString', 'MyString') +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:49:21.922514"], ["updated_at", "2019-04-12 18:49:21.922514"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:49:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 0.4ms) +  (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-12 11:49:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (20.7ms) +Completed 200 OK in 170ms (Views: 167.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:49:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 11ms (Views: 6.7ms | ActiveRecord: 0.8ms) +  (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-12 11:49:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:49:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:49:22.147793"], ["updated_at", "2019-04-12 18:49:22.147793"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 11:49:22 -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.1ms) +Completed 200 OK in 7ms (Views: 3.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 11:49:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:49:22.169758"], ["updated_at", "2019-04-12 18:49:22.169758"], ["descriptions", "new task description"]] +  (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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.8ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:49:22.180512"], ["updated_at", "2019-04-12 18:49:22.180512"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 11:49:22 -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 (0.9ms) +Completed 200 OK in 5ms (Views: 2.2ms | 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-12 11:49:22 -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.4ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:51:46.930110', '2019-04-12 18:51:46.930110', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:51:46.930110', '2019-04-12 18:51:46.930110', 'MyString', 'MyString') +  (1.7ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:51:46.960076"], ["updated_at", "2019-04-12 18:51:46.960076"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:51:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:51:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 129ms (Views: 126.1ms | ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 11:51:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.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-12 11:51: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 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (1.7ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:51:47.127448"], ["updated_at", "2019-04-12 18:51:47.127448"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 11:51:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 6ms (Views: 1.9ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 11:51:47 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:51:47.146392"], ["updated_at", "2019-04-12 18:51:47.146392"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 11:51:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 11ms (Views: 6.8ms | 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:51:47.168756"], ["updated_at", "2019-04-12 18:51:47.168756"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 11:51:47 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.5ms) 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 (1.8ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:51:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (1.8ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.8ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:52:01.720730', '2019-04-12 18:52:01.720730', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:52:01.720730', '2019-04-12 18:52:01.720730', 'MyString', 'MyString') +  (1.7ms) 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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 11:52:01 -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 140ms (Views: 122.7ms | 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.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:52:01.894859"], ["updated_at", "2019-04-12 18:52:01.894859"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 11:52:01 -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 (3.0ms) +Completed 200 OK in 14ms (Views: 4.3ms | ActiveRecord: 1.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:52:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:52:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.6ms | 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-12 11:52:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.5ms | 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:52:01.929551"], ["updated_at", "2019-04-12 18:52:01.929551"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 11:52:01 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (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 11:52:01 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:52:01.943429"], ["updated_at", "2019-04-12 18:52:01.943429"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:52:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) 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-12 11:52:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:52:01.958385"], ["updated_at", "2019-04-12 18:52:01.958385"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.4ms) 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.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:54:00.332179', '2019-04-12 18:54:00.332179', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:54:00.332179', '2019-04-12 18:54:00.332179', 'MyString', 'MyString') +  (1.6ms) 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-12 11:54:00 -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 140ms (Views: 114.3ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:54:00.508231"], ["updated_at", "2019-04-12 18:54:00.508231"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 11:54:00 -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 (0.9ms) +Completed 200 OK in 13ms (Views: 2.3ms | ActiveRecord: 2.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-12 11:54:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:54:00.533208"], ["updated_at", "2019-04-12 18:54:00.533208"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 11:54:00 -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 (1.9ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:54:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.1ms) 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-12 11:54:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:54:00.553439"], ["updated_at", "2019-04-12 18:54:00.553439"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 11:54:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (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-12 11:54:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:54:00.573374"], ["updated_at", "2019-04-12 18:54:00.573374"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:54:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:55:16.758076', '2019-04-12 18:55:16.758076', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:55:16.758076', '2019-04-12 18:55:16.758076', 'MyString', 'MyString') +  (1.8ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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 11:55:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:55:16.812528"], ["updated_at", "2019-04-12 18:55:16.812528"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:55:16.825245"], ["updated_at", "2019-04-12 18:55:16.825245"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 11:55:16 -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 (6.9ms) +Completed 200 OK in 134ms (Views: 130.7ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:55: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 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-12 11:55:16 -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.9ms) 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:55:16.980470"], ["updated_at", "2019-04-12 18:55:16.980470"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 11:55:16 -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 (0.6ms) +Completed 200 OK in 8ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 11:55:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 6ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.6ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 11:55:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 11:55: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.5ms) +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.0ms) +  (1.6ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:55:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:55:17.029013"], ["updated_at", "2019-04-12 18:55:17.029013"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:55:47.067792', '2019-04-12 18:55:47.067792', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:55:47.067792', '2019-04-12 18:55:47.067792', 'MyString', 'MyString') +  (1.7ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:55:47.095740"], ["updated_at", "2019-04-12 18:55:47.095740"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 11:55:47 -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 116ms (Views: 108.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:55:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:55:47 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (1.0ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.8ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:55:47.236811"], ["updated_at", "2019-04-12 18:55:47.236811"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_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-12 11:55:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.0ms | 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-12 11:55:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.3ms | 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-12 11:55:47 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:55:47.285125"], ["updated_at", "2019-04-12 18:55:47.285125"], ["descriptions", "new task description"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 11:55:47 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (24.7ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 11:55: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 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:55:47.328750"], ["updated_at", "2019-04-12 18:55:47.328750"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 11:55:47 -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 (3.3ms) +Completed 200 OK in 8ms (Views: 4.5ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 18:57:51.616319', '2019-04-12 18:57:51.616319', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 18:57:51.616319', '2019-04-12 18:57:51.616319', 'MyString', 'MyString') +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (1.0ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.9ms) 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 18:57:51.650856"], ["updated_at", "2019-04-12 18:57:51.650856"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 11:57:51 -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 (23.1ms) +Completed 200 OK in 230ms (Views: 219.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/-1" for 127.0.0.1 at 2019-04-12 11:57:51 -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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (1.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 11:57:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.9ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 18:57:51.926166"], ["updated_at", "2019-04-12 18:57:51.926166"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 11:57:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 11:57:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 18:57:51.949388"], ["updated_at", "2019-04-12 18:57:51.949388"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 11:57:51 -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 (0.7ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (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 11:57:51 -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 2ms (ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 11:57:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 18:57:51.969631"], ["updated_at", "2019-04-12 18:57:51.969631"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-12 11:57:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms) +  (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-12 11:57:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (1.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 (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 20:04:12.537361', '2019-04-12 20:04:12.537361', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 20:04:12.537361', '2019-04-12 20:04:12.537361', 'MyString', 'MyString') +  (0.8ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 20:04:12.571425"], ["updated_at", "2019-04-12 20:04:12.571425"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +Completed 400 Bad Request in 9ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 20:04:12.613208"], ["updated_at", "2019-04-12 20:04:12.613208"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 13:04:12 -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 (2.0ms) +Completed 200 OK in 252ms (Views: 248.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 20:04:12.875389"], ["updated_at", "2019-04-12 20:04:12.875389"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.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-12 13:04:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 20:04:12.897384"], ["updated_at", "2019-04-12 20:04:12.897384"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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 13:04:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 13:04:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 4ms (Views: 3.7ms | 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-12 13:04:12 -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 25ms (Views: 22.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 20:04:35.444282', '2019-04-12 20:04:35.444282', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 20:04:35.444282', '2019-04-12 20:04:35.444282', 'MyString', 'MyString') +  (0.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.8ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 20:04:35.479390"], ["updated_at", "2019-04-12 20:04:35.479390"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963" for 127.0.0.1 at 2019-04-12 13:04:35 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +Completed 400 Bad Request in 10ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 13:04:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.5ms) 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-12 13:04:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (2.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 20:04:35.519185"], ["updated_at", "2019-04-12 20:04:35.519185"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 7ms (ActiveRecord: 2.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["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.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 20:04:35.530313"], ["updated_at", "2019-04-12 20:04:35.530313"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 13:04:35 -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.9ms) +Completed 200 OK in 198ms (Views: 194.8ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (1.0ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:04: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.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 13:04:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 11ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 13:04:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 20:04:35.761872"], ["updated_at", "2019-04-12 20:04:35.761872"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 13:04:35 -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 (23.3ms) +Completed 200 OK in 28ms (Views: 24.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:04: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::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 13:04: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.6ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.1ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 20:05:07.987027', '2019-04-12 20:05:07.987027', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 20:05:07.987027', '2019-04-12 20:05:07.987027', 'MyString', 'MyString') +  (1.9ms) COMMIT +  (0.2ms) 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 20:05:08.017966"], ["updated_at", "2019-04-12 20:05:08.017966"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 13:05: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 (5.7ms) +Completed 200 OK in 176ms (Views: 166.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:05: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.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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 20:05:08.209723"], ["updated_at", "2019-04-12 20:05:08.209723"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 13:05:08 -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 (0.8ms) +Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 13:05: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.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 +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 13:05:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (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-12 13:05:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 13:05:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.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-12 13:05: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.2ms) +Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.0ms) +  (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-12 13:05:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 20:05:08.266100"], ["updated_at", "2019-04-12 20:05:08.266100"], ["descriptions", "new task description"]] +  (0.2ms) 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.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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.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.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:02:32.978631', '2019-04-12 21:02:32.978631', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:02:32.978631', '2019-04-12 21:02:32.978631', 'MyString', 'MyString') +  (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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 14:02:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:02:33.048825"], ["updated_at", "2019-04-12 21:02:33.048825"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 11ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:02:33.063028"], ["updated_at", "2019-04-12 21:02:33.063028"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:02:33 -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 (2.0ms) +Completed 200 OK in 234ms (Views: 230.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-12 14:02:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:02: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.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:02:33.313442"], ["updated_at", "2019-04-12 21:02:33.313442"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:02:33 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.7ms) + Rendered tasks/edit.html.erb within layouts/application (18.5ms) +Completed 200 OK in 24ms (Views: 21.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:02:33.343840"], ["updated_at", "2019-04-12 21:02:33.343840"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:02:33 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task"=>"Cleaning", "descriptions"=>"My apartment", "completion_date"=>"today"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", nil], ["descriptions", nil], ["completion_date", nil], ["updated_at", "2019-04-12 21:02:33.347342"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:02:33 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:02:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.0ms | 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-12 14:02:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.8ms) +  (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-12 14:02:33 -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.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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:04:08.908705', '2019-04-12 21:04:08.908705', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:04:08.908705', '2019-04-12 21:04:08.908705', 'MyString', 'MyString') +  (0.4ms) 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-12 14:04:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (22.8ms) +Completed 200 OK in 235ms (Views: 220.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 8ms (Views: 4.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-12 14:04:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:04:09.194509"], ["updated_at", "2019-04-12 21:04:09.194509"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"task"=>"Cleaning", "descriptions"=>"My apartment", "completion_date"=>"today"}, "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 Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", nil], ["descriptions", nil], ["completion_date", nil], ["updated_at", "2019-04-12 21:04:09.212120"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:04:09.229048"], ["updated_at", "2019-04-12 21:04:09.229048"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 1.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:04:09.236718"], ["updated_at", "2019-04-12 21:04:09.236718"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.6ms) 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 (0.6ms) +Completed 200 OK in 6ms (Views: 1.6ms | 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-12 14:04:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.5ms) 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:04:09.253096"], ["updated_at", "2019-04-12 21:04:09.253096"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:04:09 -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/_form.html.erb (2.2ms) + Rendered tasks/edit.html.erb within layouts/application (4.8ms) +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:04:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:07:09.569205', '2019-04-12 21:07:09.569205', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:07:09.569205', '2019-04-12 21:07:09.569205', 'MyString', 'MyString') +  (1.7ms) 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 +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:07:09.595842"], ["updated_at", "2019-04-12 21:07:09.595842"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:07:09 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", nil], ["descriptions", nil], ["completion_date", nil], ["updated_at", "2019-04-12 21:07:09.611114"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 0.9ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:07:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:07:09.622876"], ["updated_at", "2019-04-12 21:07:09.622876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:07:09 -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/_form.html.erb (6.7ms) + Rendered tasks/edit.html.erb within layouts/application (10.1ms) +Completed 200 OK in 170ms (Views: 167.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/-1" for 127.0.0.1 at 2019-04-12 14:07:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (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-12 14:07:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:07:09.809498"], ["updated_at", "2019-04-12 21:07:09.809498"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 14:07:09 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (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-12 14:07:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:07:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.8ms | 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:07:09.839072"], ["updated_at", "2019-04-12 21:07:09.839072"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:07:09 -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 (0.5ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (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 14:07:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:08:37.612731', '2019-04-12 21:08:37.612731', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:08:37.612731', '2019-04-12 21:08:37.612731', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:08:37.636069"], ["updated_at", "2019-04-12 21:08:37.636069"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:08:37 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:08:37.655869"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 12ms (ActiveRecord: 1.1ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:08:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.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 14:08:37 -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 161ms (Views: 158.6ms | 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-12 14:08: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 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:08:37.843041"], ["updated_at", "2019-04-12 21:08:37.843041"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:08:37 -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 (0.9ms) +Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (2.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-12 14:08:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:08:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:08:37.873141"], ["updated_at", "2019-04-12 21:08:37.873141"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:08:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.9ms) + Rendered tasks/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:08:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (1.2ms) 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-12 14:08:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:08:37.893449"], ["updated_at", "2019-04-12 21:08:37.893449"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (2.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:25:56.878236', '2019-04-12 21:25:56.878236', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:25:56.878236', '2019-04-12 21:25:56.878236', 'MyString', 'MyString') +  (0.4ms) 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.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:25:56.906563"], ["updated_at", "2019-04-12 21:25:56.906563"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 14:25:56 -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/_form.html.erb (34.2ms) + Rendered tasks/edit.html.erb within layouts/application (39.4ms) +Completed 200 OK in 272ms (Views: 261.8ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:25: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.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-12 14:25:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:25:57.208558"], ["updated_at", "2019-04-12 21:25:57.208558"], ["descriptions", "new task description"]] +  (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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 14:25:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.2ms) + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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-12 14:25:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:25:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:25: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.1ms) ROLLBACK +  (3.6ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:25:57.252577"], ["updated_at", "2019-04-12 21:25:57.252577"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:25:57 -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 (0.9ms) +Completed 200 OK in 7ms (Views: 2.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:25:57.265796"], ["updated_at", "2019-04-12 21:25:57.265796"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:25:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190966"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:25:57.272399"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:25:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:29:00.415178', '2019-04-12 21:29:00.415178', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:29:00.415178', '2019-04-12 21:29:00.415178', 'MyString', 'MyString') +  (0.4ms) 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::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 14:29:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:29:00.454298"], ["updated_at", "2019-04-12 21:29:00.454298"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 13ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 14:29:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 180ms (Views: 177.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:29:00.654654"], ["updated_at", "2019-04-12 21:29:00.654654"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (16.1ms) + Rendered tasks/edit.html.erb within layouts/application (18.7ms) +Completed 200 OK in 25ms (Views: 20.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:29:00.689227"], ["updated_at", "2019-04-12 21:29:00.689227"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:29:00 -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 (0.6ms) +Completed 200 OK in 5ms (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-12 14:29:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:29:00.702780"], ["updated_at", "2019-04-12 21:29:00.702780"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:29:00.706312"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 14:29:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + 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.1ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:29:15.464296', '2019-04-12 21:29:15.464296', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:29:15.464296', '2019-04-12 21:29:15.464296', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 0.4ms) +  (0.8ms) 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:29:15.508359"], ["updated_at", "2019-04-12 21:29:15.508359"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:29:15 -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.3ms) +Completed 200 OK in 180ms (Views: 177.2ms | ActiveRecord: 0.2ms) +  (0.2ms) 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.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:29:15.699290"], ["updated_at", "2019-04-12 21:29:15.699290"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:29:15 -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/_form.html.erb (15.2ms) + Rendered tasks/edit.html.erb within layouts/application (18.3ms) +Completed 200 OK in 23ms (Views: 19.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/-1" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 6ms (Views: 2.4ms | 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-12 14:29:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:29:15.757552"], ["updated_at", "2019-04-12 21:29:15.757552"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:29:15.762623"], ["updated_at", "2019-04-12 21:29:15.762623"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190966"} + Task Load (0.3ms) 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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:29:15.767612"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 1.1ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:29:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (1.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:38:10.486819', '2019-04-12 21:38:10.486819', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:38:10.486819', '2019-04-12 21:38:10.486819', 'MyString', 'MyString') +  (0.9ms) 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:38:10.516941"], ["updated_at", "2019-04-12 21:38:10.516941"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:38:10 -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.7ms) +Completed 200 OK in 184ms (Views: 174.0ms | 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-12 14:38:10 -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 +----------------------------- +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-12 14:38:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:38:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (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-12 14:38:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (15.4ms) + Rendered tasks/new.html.erb within layouts/application (17.8ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.9ms) SAVEPOINT active_record_1 + Task Create (1.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:38:10.766116"], ["updated_at", "2019-04-12 21:38:10.766116"]] +  (1.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:38:10 -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/_form.html.erb (1.3ms) + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 6ms (Views: 3.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/-1" for 127.0.0.1 at 2019-04-12 14:38:10 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.8ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:38:10.787781"], ["updated_at", "2019-04-12 21:38:10.787781"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:38:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:38:10.795904"], ["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) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:38:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-12 14:38:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:38:10.812044"], ["updated_at", "2019-04-12 21:38:10.812044"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:38:19.000103', '2019-04-12 21:38:19.000103', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:38:19.000103', '2019-04-12 21:38:19.000103', 'MyString', 'MyString') +  (1.8ms) 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 +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 0.4ms) +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:38:19.043709"], ["updated_at", "2019-04-12 21:38:19.043709"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.6ms) + Rendered tasks/edit.html.erb within layouts/application (8.2ms) +Completed 200 OK in 182ms (Views: 178.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:38:19.235947"], ["updated_at", "2019-04-12 21:38:19.235947"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:38:19 -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 (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 1.6ms) +  (0.1ms) 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 +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:38:19.265565"], ["updated_at", "2019-04-12 21:38:19.265565"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.7ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:38:19.272217"], ["id", 980190965]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (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-12 14:38:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:38:19.287453"], ["updated_at", "2019-04-12 21:38:19.287453"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 14:38:19 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/new.html.erb within layouts/application (1.4ms) +Completed 200 OK in 5ms (Views: 2.5ms | 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 (2.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:41:01.615828', '2019-04-12 21:41:01.615828', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:41:01.615828', '2019-04-12 21:41:01.615828', 'MyString', 'MyString') +  (1.0ms) COMMIT +  (0.2ms) 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 +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:01 -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.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:41:01.664049"], ["updated_at", "2019-04-12 21:41:01.664049"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 14:41:01 -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/_form.html.erb (22.5ms) + Rendered tasks/edit.html.erb within layouts/application (27.9ms) +Completed 200 OK in 221ms (Views: 216.6ms | ActiveRecord: 0.2ms) +  (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-12 14:41:01 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 3.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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:41:01.903265"], ["updated_at", "2019-04-12 21:41:01.903265"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:41:01 -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 (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:01 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:41:01.919578"], ["updated_at", "2019-04-12 21:41:01.919578"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:41:01 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:41:01.934656"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:41:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (1.9ms) ROLLBACK +  (1.4ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:41:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 5ms (Views: 2.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 14:41:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.9ms) +  (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-12 14:41:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:41:01.978461"], ["updated_at", "2019-04-12 21:41:01.978461"], ["descriptions", "new task description"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:41:23.300054', '2019-04-12 21:41:23.300054', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:41:23.300054', '2019-04-12 21:41:23.300054', 'MyString', 'MyString') +  (0.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::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 14:41:23 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:41:23.344119"], ["updated_at", "2019-04-12 21:41:23.344119"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 20ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:41:23.357412"], ["updated_at", "2019-04-12 21:41:23.357412"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:41:23.362159"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:41:23.380760"], ["updated_at", "2019-04-12 21:41:23.380760"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (17.1ms) + Rendered tasks/edit.html.erb within layouts/application (20.7ms) +Completed 200 OK in 219ms (Views: 215.4ms | 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:41:23.604421"], ["updated_at", "2019-04-12 21:41:23.604421"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:41:23 -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 (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:23 -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.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:41:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.2ms | 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-12 14:41:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.4ms) + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:41:42.595040', '2019-04-12 21:41:42.595040', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:41:42.595040', '2019-04-12 21:41:42.595040', 'MyString', 'MyString') +  (1.7ms) 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-12 14:41:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (8.5ms) +Completed 200 OK in 174ms (Views: 168.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.6ms) + Rendered tasks/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:41:42.823872"], ["updated_at", "2019-04-12 21:41:42.823872"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:41: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 (0.6ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:41:42.838516"], ["updated_at", "2019-04-12 21:41:42.838516"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:41:42.844048"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + 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::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-12 14:41:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:41:42.856332"], ["updated_at", "2019-04-12 21:41:42.856332"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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 +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:41:42 -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.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:41:42.867430"], ["updated_at", "2019-04-12 21:41:42.867430"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:41:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.2ms) + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:42:27.374559', '2019-04-12 21:42:27.374559', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:42:27.374559', '2019-04-12 21:42:27.374559', 'MyString', 'MyString') +  (0.4ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.1ms) +Completed 200 OK in 187ms (Views: 179.3ms | 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-12 14:42:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | 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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:42:27.596676"], ["updated_at", "2019-04-12 21:42:27.596676"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:42:27 -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 (0.8ms) +Completed 200 OK in 9ms (Views: 4.0ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:42:27.623711"], ["updated_at", "2019-04-12 21:42:27.623711"], ["descriptions", "new task description"]] +  (0.1ms) 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.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 14:42:27 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (18.6ms) + Rendered tasks/new.html.erb within layouts/application (21.1ms) +Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:42:27.666585"], ["updated_at", "2019-04-12 21:42:27.666585"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:42:27.677610"], ["updated_at", "2019-04-12 21:42:27.677610"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:42:27.681913"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:42:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:42:49.818580', '2019-04-12 21:42:49.818580', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:42:49.818580', '2019-04-12 21:42:49.818580', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:42:49.843386"], ["updated_at", "2019-04-12 21:42:49.843386"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:42:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:42:49.865112"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 10ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:42:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:42:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 146ms (Views: 144.2ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:42:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.8ms | 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.7ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:42:50.033053"], ["updated_at", "2019-04-12 21:42:50.033053"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:42:50 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.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-12 14:42:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:42:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:42:50.052665"], ["updated_at", "2019-04-12 21:42:50.052665"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:42:50 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.3ms) + Rendered tasks/edit.html.erb within layouts/application (8.7ms) +Completed 200 OK in 12ms (Views: 9.6ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 14:42:50 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:42:50.072010"], ["updated_at", "2019-04-12 21:42:50.072010"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 14:42:50 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:45:17.214315', '2019-04-12 21:45:17.214315', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:45:17.214315', '2019-04-12 21:45:17.214315', 'MyString', 'MyString') +  (0.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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:45:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (11.2ms) +Completed 200 OK in 180ms (Views: 172.4ms | 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-12 14:45:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:45:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:45:17.436378"], ["updated_at", "2019-04-12 21:45:17.436378"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:45:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:45:17.444761"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.8ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:45: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 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:45:17.459500"], ["updated_at", "2019-04-12 21:45:17.459500"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:45:17 -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 (0.6ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.3ms) 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-12 14:45:17 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:45:17.474981"], ["updated_at", "2019-04-12 21:45:17.474981"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 14:45:17 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (34.5ms) + Rendered tasks/new.html.erb within layouts/application (37.7ms) +Completed 200 OK in 43ms (Views: 38.9ms | 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:45:17.528592"], ["updated_at", "2019-04-12 21:45:17.528592"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:45:17 -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/_form.html.erb (1.7ms) + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 8ms (Views: 4.4ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:45:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:45:51.548421', '2019-04-12 21:45:51.548421', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:45:51.548421', '2019-04-12 21:45:51.548421', 'MyString', 'MyString') +  (0.5ms) 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-12 14:45:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.2ms) + Rendered tasks/new.html.erb within layouts/application (7.8ms) +Completed 200 OK in 168ms (Views: 155.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:45:51.756263"], ["updated_at", "2019-04-12 21:45:51.756263"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:45:51.762807"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:45:51.780038"], ["updated_at", "2019-04-12 21:45:51.780038"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 14:45:51 -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 (0.7ms) +Completed 200 OK in 5ms (Views: 2.8ms | 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-12 14:45:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:45:51.793016"], ["updated_at", "2019-04-12 21:45:51.793016"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:45:51.798134"], ["updated_at", "2019-04-12 21:45:51.798134"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:45:51 -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/_form.html.erb (2.3ms) + Rendered tasks/edit.html.erb within layouts/application (3.0ms) +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:45:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:46:32.228580', '2019-04-12 21:46:32.228580', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:46:32.228580', '2019-04-12 21:46:32.228580', 'MyString', 'MyString') +  (1.7ms) 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.5ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.8ms) + Rendered tasks/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 156ms (Views: 143.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:46:32.417681"], ["updated_at", "2019-04-12 21:46:32.417681"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 14:46:32 -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 (0.6ms) +Completed 200 OK in 8ms (Views: 1.7ms | ActiveRecord: 1.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-12 14:46:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:46:32.456003"], ["updated_at", "2019-04-12 21:46:32.456003"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.5ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:46:32.462665"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) + 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::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-12 14:46:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:46:32.472831"], ["updated_at", "2019-04-12 21:46:32.472831"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:46:32 -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.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:46:32.483744"], ["updated_at", "2019-04-12 21:46:32.483744"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:46:32 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/edit.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.2ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:47:22.161950', '2019-04-12 21:47:22.161950', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:47:22.161950', '2019-04-12 21:47:22.161950', 'MyString', 'MyString') +  (2.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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:47:22.186605"], ["updated_at", "2019-04-12 21:47:22.186605"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:47:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:47:22.201226"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:47:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-12 14:47:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (7.3ms) + Rendered tasks/new.html.erb within layouts/application (10.7ms) +Completed 200 OK in 142ms (Views: 140.3ms | ActiveRecord: 0.0ms) +  (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 (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:47:22.360282"], ["updated_at", "2019-04-12 21:47:22.360282"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:47:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.2ms) + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 8ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:47:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.6ms) 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 14:47:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:47:22.383599"], ["updated_at", "2019-04-12 21:47:22.383599"], ["descriptions", "new task description"]] +  (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"."task" = $1 LIMIT $2 [["task", "new task"], ["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-12 14:47:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 4ms (Views: 2.0ms | 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-12 14:47:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.2ms) +  (0.1ms) 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-12 14:47:22 -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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:47:22.408567"], ["updated_at", "2019-04-12 21:47:22.408567"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:47:22 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:47:59.640638', '2019-04-12 21:47:59.640638', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:47:59.640638', '2019-04-12 21:47:59.640638', 'MyString', 'MyString') +  (1.8ms) 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 +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:47:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 7ms (ActiveRecord: 0.5ms) +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:47:59.681761"], ["updated_at", "2019-04-12 21:47:59.681761"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 14:47: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/_form.html.erb (6.1ms) + Rendered tasks/edit.html.erb within layouts/application (8.6ms) +Completed 200 OK in 162ms (Views: 159.9ms | 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 14:47:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:47:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.2ms) +  (0.7ms) 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-12 14:47:59 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:47:59.873868"], ["updated_at", "2019-04-12 21:47:59.873868"], ["descriptions", "new task description"]] +  (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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:47:59.879336"], ["updated_at", "2019-04-12 21:47:59.879336"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:47:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:47:59.883719"], ["id", 980190965]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:47:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.4ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:47:59.897949"], ["updated_at", "2019-04-12 21:47:59.897949"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:47:59 -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 (0.5ms) +Completed 200 OK in 4ms (Views: 1.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-12 14:47:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (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 14:47:59 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:48:49.083663', '2019-04-12 21:48:49.083663', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:48:49.083663', '2019-04-12 21:48:49.083663', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.2ms) 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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (19.9ms) +Completed 200 OK in 164ms (Views: 157.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.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 14:48:49 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:48:49.290442"], ["updated_at", "2019-04-12 21:48:49.290442"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:48:49.297798"], ["updated_at", "2019-04-12 21:48:49.297798"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.8ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:48:49.305014"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 8ms (ActiveRecord: 1.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:48:49.316100"], ["updated_at", "2019-04-12 21:48:49.316100"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:48:49 -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 (0.8ms) +Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:48:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:48:49.332953"], ["updated_at", "2019-04-12 21:48:49.332953"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 14:48:49 -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/_form.html.erb (4.3ms) + Rendered tasks/edit.html.erb within layouts/application (6.4ms) +Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.3ms) +  (0.2ms) 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-12 14:48:49 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:49:24.003483', '2019-04-12 21:49:24.003483', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:49:24.003483', '2019-04-12 21:49:24.003483', 'MyString', 'MyString') +  (1.8ms) COMMIT +  (0.3ms) 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 +----------------------------- +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-12 14:49:24 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.0ms) + Rendered tasks/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 149ms (Views: 143.1ms | 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-12 14:49:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:49:24.198846"], ["updated_at", "2019-04-12 21:49:24.198846"], ["descriptions", "new task description"]] +  (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"."task" = $1 LIMIT $2 [["task", "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 +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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 +-------------------------------------------------------------- +  (1.0ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:49:24.211995"], ["updated_at", "2019-04-12 21:49:24.211995"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:49:24.219529"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + 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::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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:49:24.225908"], ["updated_at", "2019-04-12 21:49:24.225908"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.2ms) + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:49:24.239813"], ["updated_at", "2019-04-12 21:49:24.239813"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 14:49:24 -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 (0.7ms) +Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:49:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 1.7ms | 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-12 14:49:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.9ms) +  (0.2ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:50:41.391845', '2019-04-12 21:50:41.391845', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:50:41.391845', '2019-04-12 21:50:41.391845', 'MyString', 'MyString') +  (1.7ms) 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.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-12 14:50:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 162ms (Views: 156.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:50:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:50:41.587623"], ["updated_at", "2019-04-12 21:50:41.587623"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompletion_date%5D=today&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:50:41 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"today", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 21:50:41.594796"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:50:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 1.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:50:41.608693"], ["updated_at", "2019-04-12 21:50:41.608693"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 14:50:41 -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/_form.html.erb (4.9ms) + Rendered tasks/edit.html.erb within layouts/application (6.9ms) +Completed 200 OK in 12ms (Views: 10.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:50:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:50:41.631091"], ["updated_at", "2019-04-12 21:50:41.631091"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:50:41 -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.3ms) +Completed 200 OK in 5ms (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-12 14:50:41 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (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 14:50:41 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (0.9ms) + Rendered tasks/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.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-12 14:50:41 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:50:41.654744"], ["updated_at", "2019-04-12 21:50:41.654744"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 21:50:58.562876', '2019-04-12 21:50:58.562876', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 21:50:58.562876', '2019-04-12 21:50:58.562876', 'MyString', 'MyString') +  (1.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::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 14:50:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 156ms (Views: 149.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 14:50:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.9ms) 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 14:50:58 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.4ms) + Rendered tasks/new.html.erb within layouts/application (7.3ms) +Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 21:50:58.768318"], ["updated_at", "2019-04-12 21:50:58.768318"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 14:50:58 -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/_form.html.erb (1.1ms) + Rendered tasks/edit.html.erb within layouts/application (1.5ms) +Completed 200 OK in 6ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 14:50: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.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-12 14:50:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 21:50:58.792038"], ["updated_at", "2019-04-12 21:50:58.792038"], ["descriptions", "new task description"]] +  (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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 21:50:58.798408"], ["updated_at", "2019-04-12 21:50:58.798408"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 14:50:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (1.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 (0.5ms) +Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 1.2ms) +  (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 14:50: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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 21:50:58.812818"], ["updated_at", "2019-04-12 21:50:58.812818"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 14:50:58 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Cleaning"], ["descriptions", "My apartment"], ["completion_date", "tomorrow"], ["updated_at", "2019-04-12 21:50:58.816720"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started GET "/tasks/999" for 127.0.0.1 at 2019-04-12 14:50:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 22:06:38.347321', '2019-04-12 22:06:38.347321', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 22:06:38.347321', '2019-04-12 22:06:38.347321', 'MyString', 'MyString') +  (1.4ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 22:06:38.375358"], ["updated_at", "2019-04-12 22:06:38.375358"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 15:06:38 -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/_form.html.erb (23.8ms) + Rendered tasks/edit.html.erb within layouts/application (28.4ms) +Completed 200 OK in 195ms (Views: 183.5ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 15:06: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.3ms) ROLLBACK +  (0.7ms) 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-12 15:06:38 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 22:06:38.596824"], ["updated_at", "2019-04-12 22:06:38.596824"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 15:06:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 15:06:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 1.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" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 22:06:38.622802"], ["updated_at", "2019-04-12 22:06:38.622802"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-12 15:06:38 -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.3ms | ActiveRecord: 0.2ms) +  (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-12 15:06: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]] +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-12 15:06:38 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 22:06:38.648178"], ["updated_at", "2019-04-12 22:06:38.648178"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 15:06:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Cleaning"], ["descriptions", "My apartment"], ["completion_date", "tomorrow"], ["updated_at", "2019-04-12 22:06:38.655622"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["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.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 22:07:12.178805', '2019-04-12 22:07:12.178805', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 22:07:12.178805', '2019-04-12 22:07:12.178805', 'MyString', 'MyString') +  (2.4ms) 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::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 15:07:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 22:07:12.228638"], ["updated_at", "2019-04-12 22:07:12.228638"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 25ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 113ms (Views: 110.4ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (5.3ms) + Rendered tasks/new.html.erb within layouts/application (7.1ms) +Completed 200 OK in 11ms (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-12 15:07:12 -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 (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 22:07:12.380675"], ["updated_at", "2019-04-12 22:07:12.380675"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 15:07:12 -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 (0.7ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 22:07:12.388343"], ["updated_at", "2019-04-12 22:07:12.388343"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 15:07:12 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 22:07:12.401982"], ["updated_at", "2019-04-12 22:07:12.401982"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190966"} + Task Load (0.2ms) 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 "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Cleaning"], ["descriptions", "My apartment"], ["completion_date", "tomorrow"], ["updated_at", "2019-04-12 22:07:12.406859"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 15:07:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.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.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completion_date") VALUES (980190962, 'MyString', '2019-04-12 22:13:20.766443', '2019-04-12 22:13:20.766443', 'MyString', 'MyString'), (298486374, 'MyString', '2019-04-12 22:13:20.766443', '2019-04-12 22:13:20.766443', 'MyString', 'MyString') +  (1.6ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 0.4ms) +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 22:13:20.808366"], ["updated_at", "2019-04-12 22:13:20.808366"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 15:13:20 -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/_form.html.erb (5.4ms) + Rendered tasks/edit.html.erb within layouts/application (7.5ms) +Completed 200 OK in 143ms (Views: 140.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 22:13:20.957307"], ["updated_at", "2019-04-12 22:13:20.957307"], ["descriptions", "entire apartment"], ["completion_date", "today"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "completion_date" = $3, "updated_at" = $4 WHERE "tasks"."id" = $5 [["task", "Cleaning"], ["descriptions", "My apartment"], ["completion_date", "tomorrow"], ["updated_at", "2019-04-12 22:13:20.965764"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompletion_date%5D=tomorrow&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completion_date"=>"tomorrow", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 15:13:20 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 22:13:20.993398"], ["updated_at", "2019-04-12 22:13:20.993398"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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-12 15:13:21 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 2.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-12 15:13:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completion_date") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 22:13:21.030639"], ["updated_at", "2019-04-12 22:13:21.030639"], ["descriptions", "this is an example for a test"], ["completion_date", "date"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 15:13:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) 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 (0.7ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index ccd53fdc3..55930c06b 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -77,7 +77,7 @@ # Act-Assert expect { - post tasks_path, params: task_hash + post tasks_path(), params: task_hash }.must_change "Task.count", 1 new_task = Task.find_by(task: task_hash[:task][:task]) @@ -92,13 +92,20 @@ # Unskip and complete these tests for Wave 3 describe "edit" do it "can get the edit page for an existing task" do - skip - # Your code here + # skip + update_task = Task.create(task: "Hiking") + get edit_task_path(update_task) + must_respond_with :success end it "will respond with redirect when attempting to edit a nonexistant task" do - skip - # Your code here + # skip + # Act + get task_path(-1) + + # Assert + must_respond_with :redirect + end end @@ -107,13 +114,54 @@ # 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 + # skip + + # updated information + task_hash = { + task: { + task: "Cleaning", + descriptions: "My apartment", + completion_date: "tomorrow" + } + } + + task_to_be_updated = Task.create(task: "Clean", descriptions: "entire apartment", completion_date: "today") + patch task_path(task_to_be_updated.id, params: task_hash) + + # pulls task back from database + task_to_be_updated.reload + + + expect(task_to_be_updated.created_at).wont_equal task_to_be_updated.updated_at + + puts "VVVVV TASK VVVVVVVVV" + puts task_hash[:task][:task] + expect(task_to_be_updated.task).must_equal task_hash[:task][:task] + + puts "VVVV DESCRIPTION VVVVVVVVVV" + puts task_hash[:task][:descriptions] + expect(task_to_be_updated.descriptions).must_equal task_hash[:task][:descriptions] + + puts "VVVVVV COMPLETION_DATE VVVVVVVV" + puts task_hash[:task][:completion_date] + expect(task_to_be_updated.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 + # skip + task_hash = { + task: { + task: "Cleaning", + descriptions: "My apartment", + completion_date: "tomorrow" + } + } + + + invalid_id = 999 + patch task_path(invalid_id, params: task_hash) + must_redirect_to tasks_path end end From c55148fb258271b0cd3969035f496d3d0a07ea21 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Sat, 13 Apr 2019 09:08:59 -0700 Subject: [PATCH 06/14] Changed name of completion_date column to completed, changed data type of said column from String to Boolean, added toggle button, added some styles --- app/assets/stylesheets/application.css | 58 + app/controllers/tasks_controller.rb | 38 +- app/views/tasks/_form.html.erb | 8 +- app/views/tasks/index.html.erb | 23 +- app/views/tasks/show.html.erb | 15 +- config/routes.rb | 18 +- ...412234033_remove_completion_date_column.rb | 5 + .../20190412234219_add_completed_column.rb | 5 + ...2234356_add_completed_column_for_toggle.rb | 5 + db/schema.rb | 4 +- log/development.log | 2957 +++++++++++++++++ log/test.log | 767 +++++ test/controllers/tasks_controller_test.rb | 16 +- test/fixtures/tasks.yml | 4 +- 14 files changed, 3866 insertions(+), 57 deletions(-) create mode 100644 db/migrate/20190412234033_remove_completion_date_column.rb create mode 100644 db/migrate/20190412234219_add_completed_column.rb create mode 100644 db/migrate/20190412234356_add_completed_column_for_toggle.rb diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index d05ea0f51..c61a5896b 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -13,3 +13,61 @@ *= require_tree . *= require_self */ + +body { + background-color: bisque; + text-align: center; +} + +.index ul li { + list-style-type: none; +} + + +/* .complete-button { + color: green; +} */ + +.buttons { + display: flex; + justify-content: center; +} + +.complete-button { + background-color: green; + color: white; +} + +.incomplete-button { + background-color: blue; + color: white; +} + +.delete-button { + background-color: red; + color: white; +} + +.home-button { + background-color: cornflowerblue; + color: white; + font: 11px Arial; + text-decoration: none; + padding: 2px 3px 2px 3px; + border-top: 1px solid #CCCCCC; + border-right: 1px solid #333333; + border-bottom: 1px solid #333333; + border-left: 1px solid #CCCCCC; +} + +.edit-button { + color: white; + background-color: coral; + font: 11px Arial; + text-decoration: none; + padding: 2px 3px 2px 3px; + border-top: 1px solid #CCCCCC; + border-right: 1px solid #333333; + border-bottom: 1px solid #333333; + border-left: 1px solid #CCCCCC; +} \ No newline at end of file diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index e9e6b6ec3..31a944e99 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -1,11 +1,11 @@ class TasksController < ApplicationController def index - @tasks = Task.all; + @tasks = Task.all.order(:id) end def show - task_id = params[:id] + task_id = params[:id].to_i @task = Task.find_by(id: task_id) if @task.nil? @@ -15,26 +15,28 @@ def show def new @task = Task.new - @task.task = "I have to..." - @task.completion_date = "incomplete" + @task.task = "I have to... " + @task.completed = "Incomplete" end def create - new_task = Task.new(task_params) + new_task = Task.new(task_params) is_successful = new_task.save if is_successful redirect_to task_path(new_task.id) else - head :found + head :not_found end end - def edit + def edit @task = Task.find_by(id: params[:id]) - # task_id = params[:id].to_i - # @task = Task.find_by(id: task_id) + + if @task.nil? + redirect_to tasks_path + end end def update @@ -49,6 +51,16 @@ def update end end + def complete + task = Task.find_by(id: params[:id]) + + task.completed? + task.toggle(:completed) + task.save + + redirect_to tasks_path + end + def destroy task = Task.find( params[:id] ) if task.nil? @@ -60,11 +72,9 @@ def destroy end - private + private - def task_params - return params.require(:task).permit(:task, :descriptions, :completion_date) + def task_params + return params.require(:task).permit(:task, :descriptions, :completed) end - - end diff --git a/app/views/tasks/_form.html.erb b/app/views/tasks/_form.html.erb index a50809b4e..b65003998 100644 --- a/app/views/tasks/_form.html.erb +++ b/app/views/tasks/_form.html.erb @@ -1,11 +1,11 @@ <%= form_with model: @task, class: form_class do |f| %> - <%= f.label "Edit name of task:" %> + <%= f.label "Edit name:" %> <%= f.text_field :task %> - <%= f.label "Edit description of task:" %> + <%= f.label "Edit description:" %> <%= f.text_field :descriptions %> - <%= f.label "Change completion status:" %> - <%= f.text_field :completion_date %> + <%= f.label "Completion status:" %> + <%= f.text_field :completed %> <%= f.submit action_name, class: "form-submit-button" %> diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index b652e4184..db6e7f001 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -1,9 +1,16 @@ -
    - <% @tasks.each do |todo_item| %> -
  • - Task: <%= link_to todo_item.task, task_path(todo_item.id) %>, -
  • - <% end %> -
+
+
    + <% @tasks.each do |todo_item| %> +
  • + Completion status: <%= todo_item.completed %>
    + <%= link_to todo_item.task, task_path(todo_item.id) %>, + <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> + <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
    + +
  • + <% end %> +
-<%= link_to "New Task", new_task_path %> + <%= link_to "Add Task", new_task_path %> + +
diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index cb278624c..9ae1b9aca 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -5,9 +5,16 @@ Task: <%= @task.task %>, Description: <%= @task.descriptions %>

-Completion date: <%= @task.completion_date %> +Completion status: <%= @task.completed %>

-<%= link_to "Back to Tasks", tasks_path %> -<%= link_to "Edit Task", edit_task_path %> -<%= link_to "Delete #{@task.task}", task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"} %> \ No newline at end of file +
+ <%= link_to "Back to Tasks", tasks_path, class: "home-button" %>
+ + <%= button_to "Mark Complete", {action: "complete", id: @task.id}, method: :patch, class: "complete-button" %> + + <%= button_to "Mark Incomplete", {action: "complete", id: @task.id}, method: :patch, class: "incomplete-button" %>
+ + <%= link_to "Edit Task", edit_task_path, class: "edit-button" %>
+ <%= button_to "Delete #{@task.task}", task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"}, class: "delete-button" %> +
\ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 99f7bc7ac..183ad27c8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,18 +1,6 @@ Rails.application.routes.draw do - # get '/tasks', to: 'tasks#index', as: 'tasks' + root to: "tasks#index" - # 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" - - root to: "tasks#index" - - resources :tasks - - - # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + resources :tasks + patch "tasks/:id/complete", to: "tasks#complete", as: "mark_complete" end diff --git a/db/migrate/20190412234033_remove_completion_date_column.rb b/db/migrate/20190412234033_remove_completion_date_column.rb new file mode 100644 index 000000000..63b0902db --- /dev/null +++ b/db/migrate/20190412234033_remove_completion_date_column.rb @@ -0,0 +1,5 @@ +class RemoveCompletionDateColumn < ActiveRecord::Migration[5.2] + def change + remove_column :tasks, :completion_date + end +end diff --git a/db/migrate/20190412234219_add_completed_column.rb b/db/migrate/20190412234219_add_completed_column.rb new file mode 100644 index 000000000..d84d93f17 --- /dev/null +++ b/db/migrate/20190412234219_add_completed_column.rb @@ -0,0 +1,5 @@ +class AddCompletedColumn < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :completed, :boolean + end +end diff --git a/db/migrate/20190412234356_add_completed_column_for_toggle.rb b/db/migrate/20190412234356_add_completed_column_for_toggle.rb new file mode 100644 index 000000000..8f88e5da5 --- /dev/null +++ b/db/migrate/20190412234356_add_completed_column_for_toggle.rb @@ -0,0 +1,5 @@ +class AddCompletedColumnForToggle < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :completed, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 2376920ad..22adcef19 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_04_09_215910) do +ActiveRecord::Schema.define(version: 2019_04_12_234356) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -20,7 +20,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "descriptions" - t.string "completion_date" + t.boolean "completed" end end diff --git a/log/development.log b/log/development.log index 0346cf3ba..d62dd6c92 100644 --- a/log/development.log +++ b/log/development.log @@ -4622,3 +4622,2960 @@ Processing by TasksController#index as HTML Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.3ms) +Started GET "/tasks" for ::1 at 2019-04-12 15:49:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (250.7ms) +Completed 500 Internal Server Error in 285ms (ActiveRecord: 7.5ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fbd4f13ab28> +Did you mean? @tasks: + app/views/tasks/index.html.erb:4:in `block in _app_views_tasks_index_html_erb__2611339249004116018_70225482410160' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb__2611339249004116018_70225482410160' + +Started POST "/__better_errors/9a2b56eba0edcfa2/variables" for ::1 at 2019-04-12 15:49:56 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 15:50:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 45ms (Views: 39.5ms | ActiveRecord: 2.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:50:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 31ms (Views: 27.3ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:50:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 29ms (Views: 25.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 15:53:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 44ms (Views: 31.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/" for ::1 at 2019-04-12 15:53:59 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/"): + +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 PATCH "/" for ::1 at 2019-04-12 15:55:19 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/"): + +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 PATCH "/" for ::1 at 2019-04-12 15:55:35 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActionController::RoutingError (No route matches [PATCH] "/"): + +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' +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (2.0ms) 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 RemoveCompletionDateColumn (20190412234033) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (36.4ms) ALTER TABLE "tasks" DROP COLUMN "completion_date" + ↳ db/migrate/20190412234033_remove_completion_date_column.rb:3 + ActiveRecord::SchemaMigration Create (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190412234033"]] + ↳ bin/rails:9 +  (6.7ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (2.1ms) 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 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to AddCompletedColumn (20190412234219) +  (0.1ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190412234219"]] + ↳ bin/rails:9 +  (1.2ms) COMMIT + ↳ bin/rails:9 + 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]] + ↳ bin/rails:9 +  (0.1ms) 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 +  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ 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 AddCompletedColumnForToggle (20190412234356) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (10.8ms) ALTER TABLE "tasks" ADD "completed" boolean + ↳ db/migrate/20190412234356_add_completed_column_for_toggle.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190412234356"]] + ↳ bin/rails:9 +  (0.5ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (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.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/tasks" for ::1 at 2019-04-12 18:24:52 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (18.3ms) +Completed 200 OK in 284ms (Views: 267.4ms | ActiveRecord: 4.8ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 18:24:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 46ms (Views: 40.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/4/complete" for ::1 at 2019-04-12 18:25:02 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/4/complete"): + +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-12 18:29:54 -0700 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.0ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (261.5ms) +Completed 500 Internal Server Error in 282ms (ActiveRecord: 6.5ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fe2c2b0ad68> +Did you mean? @tasks: + app/views/tasks/index.html.erb:3:in `block in _app_views_tasks_index_html_erb__1479068113839962910_70305982995240' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb__1479068113839962910_70305982995240' + +Started POST "/__better_errors/5b7ac689baaf0c62/variables" for ::1 at 2019-04-12 18:29:55 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:31:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (452.8ms) +Completed 500 Internal Server Error in 471ms (ActiveRecord: 0.6ms) + + + +NameError - undefined local variable or method `task' for #<#:0x00007fe2c3556998> +Did you mean? @tasks: + app/views/tasks/index.html.erb:4:in `block in _app_views_tasks_index_html_erb__1479068113839962910_70305958300560' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb__1479068113839962910_70305958300560' + +Started POST "/__better_errors/f674e91becae345b/variables" for ::1 at 2019-04-12 18:31:30 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:32:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.7ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_complete", :controller=>"tasks", :id=>4}: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb__1479068113839962910_70305983075560' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb__1479068113839962910_70305983075560' + +Started POST "/__better_errors/c2a4610c3ca4d5ee/variables" for ::1 at 2019-04-12 18:32:04 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:37:59 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (26.0ms) +Completed 500 Internal Server Error in 47ms (ActiveRecord: 4.7ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"toggle_complete", :controller=>"tasks", :id=>4}: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb___3784691242588921172_70094982180920' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb___3784691242588921172_70094982180920' + +Started POST "/__better_errors/9199e42df42aff1b/variables" for ::1 at 2019-04-12 18:37:59 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:38:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (10.8ms) +Completed 200 OK in 259ms (Views: 253.4ms | ActiveRecord: 2.2ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-12 18:38:23 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"L9fXN1HUmMxfT3o8XHNVf4TDZyDo9oqIqVaUPB6e6sYcZjCRM/YMm3yGWEx8CRDw8AvTiyH5vKJ/JVyUwq0Ixg==", "id"=>"4"} + Task Load (4.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:38:23.432460"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 15ms (ActiveRecord: 6.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:38:31 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"0J8NZywf0P0fw9iNXSjhTIxRD+BovMv41Wu1DJtHY2njLurBTj1EqjwK+v19UqTD+Jm7S6Gz/dIDGH2kR3SBaQ==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:38:31.603385"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 28ms (Views: 21.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-12 18:38:33 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"gxxD+zwLFQHoeIZRgesnd+I/Po2R9jCvz4ui4/JmBSmwraRdXimBVsuxpCGhkWL4lveKJlj5BoUZ+GpLLlXnKQ==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:38:33.404570"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 41ms (Views: 37.2ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-12 18:38:35 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"4pEIyZ2ZtI65g2EIM93c4dCw1Xnue7cyrRFRjn3y63jRIO9v/7sg2ZpKQ3gTp5lupHhh0id0gRh7YpkmocEJeA==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:38:35.140189"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 34ms (Views: 28.0ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:38:36 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"3WZmrdPBrdJE7HetCpnwWpbefoVQxu4adwdUsNrog2vu14ELseM5hWclVd0q47XV4hbKLpnJ2DChdJwYBtthaw==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:38:36.862593"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (3.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 3.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 49ms (Views: 46.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:38:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (3.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 37ms (Views: 28.0ms | ActiveRecord: 3.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:38:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (9.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 45ms (Views: 31.9ms | ActiveRecord: 9.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:38:52 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 39ms (Views: 34.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-12 18:38:55 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ChYEX1ILRkijYIXs4yFnJzaENDq0G03Jlq/w+8KWdfE5p+P5MCnSH4Cpp5zDWyKoQkyAkX0Ue+NA3DhTHqWX8Q==", "id"=>"4"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:38:55.603392"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:38:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 40ms (Views: 33.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:39:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 47ms (Views: 40.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:39:03 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"JRAljrY02ey6pX2EbHA7OtuftW7nPRqnLUBTSzy9UgIWocIo1BZNu5lsX/RMCn61r1cBxS4yLI37M5vj4I6wAg==", "id"=>"1"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:39:03.499067"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:39:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 18:39:05 -0700 +Processing by TasksController#show 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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 34ms (Views: 29.3ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-12 18:39:08 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"w6MXCGsf7EbFg6hCTW0+KaQHIeIH1pfXm5RR1UfHWhbwEvCuCT14EeZKijJtF3um0M+VSc7Zof1N55l9m/S4Fg==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (2.1ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:39:08.447444"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:39:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 37ms (Views: 34.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-12 18:39:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 36ms (Views: 31.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-12 18:39:13 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Qhn8GV+eOcl2rmhfJ4VXjims10Xb2zV7gR3ZreI5G2txqBu/PbytnlVnSi8H/xIBXWRj7hLUA1FXbhEFPgr5aw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (1.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:39:13.278549"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:39:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:39:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (6.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 25.5ms | ActiveRecord: 6.7ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:39:17 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"QYqwI/ki2RO9Fc2Pp2nPjqFV+H9SzAtqbk9vaNCSqjVyO1eFmwBNRJ7c7/+HE4oB1Z1M1JvDPUC4PKfADKFINQ==", "id"=>"6"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:39:17.055498"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:39:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 28ms (Views: 25.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 18:39:18 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 38ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:39:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 37ms (Views: 31.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:39:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 34ms (Views: 30.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:40:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 38ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:40:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 18:40:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (11.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 41ms (Views: 24.5ms | ActiveRecord: 11.8ms) + + +Started GET "/tasks/4/complete" for ::1 at 2019-04-12 18:40:57 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks/4/complete"): + +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/4" for ::1 at 2019-04-12 18:40:59 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (4.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 31ms (Views: 23.6ms | ActiveRecord: 4.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-12 18:41:38 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (340.9ms) +Completed 500 Internal Server Error in 351ms (ActiveRecord: 0.5ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007f80825be618>: + app/views/tasks/show.html.erb:12:in `_app_views_tasks_show_html_erb__625155967549742303_70094959803700' + +Started POST "/__better_errors/7d05742cf134530f/variables" for ::1 at 2019-04-12 18:41:38 -0700 +Started GET "/tasks/4" for ::1 at 2019-04-12 18:41:58 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.4ms) +Completed 200 OK in 61ms (Views: 56.4ms | ActiveRecord: 0.4ms) + + +Started POST "/tasks" for ::1 at 2019-04-12 18:42:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"CiMQcT+4im3WanMTgbhgzWo1hjDeUs1Jy34XoCNtetk5kvfXXZoeOvWjUWOhwiVCHv0ymxdd+2MdDd8I/16Y2Q=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/1d766a757def4398/variables" for ::1 at 2019-04-12 18:42:04 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:42:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 40ms (Views: 33.0ms | ActiveRecord: 1.9ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-12 18:42:23 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"jnr+Z8h7ytik6NL4aP+CmAx117lM0DO1pNoAoRs5flcJWCozTA5j8koBcbcniDlViKQ3y2wVgseGFH3/hgYNJw==", "id"=>"4"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:42:23.514792"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:42:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-12 18:42:26 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"B4vrz0g7WyU6eZZ3yC76M0JhdElzSEwKeILo+FUWzdo0OgxpKhnPchmwtAfoVL+8NqnA4rpHeiCu8SBQiSUv2g==", "id"=>"4"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (1.0ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:42:26.806827"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 10ms (ActiveRecord: 4.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:42:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:43:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 35ms (Views: 29.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:43:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 41ms (Views: 34.2ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:43:15 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"7e/wBdEXBpuxg689tJuTsblyoYOtSfrXI8lGLnQGoqt8e8oEJR8Lis5kW40Xqqee7sW8LXLr67ywYP7XSAeyaA==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:43:15.536024"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:43:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:43: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:43: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 24ms (Views: 19.8ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:43:46 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"2JK6RsK5WoiwQ+iSTvDQdLbClmqh9lfk8q1ZA5cJVT7rI13goJvO35OKyuJuipX7wgoiwWj5Yc4k3pGrSzq3Pg==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:43:46.999021"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:43:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 30ms (Views: 25.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:43:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 39ms (Views: 34.1ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:43:52 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"5csAGwByDCzcpxrbdk6wRX3U7ukUrrc9WgWXRBBHAc50Xzoa9HoBPaNA7mvVf4RqKmPzR8sMplbJrC+9LEYRDQ==", "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:53 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:43:52.135723"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (2.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:43:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-12 18:44:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 42ms (Views: 36.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-12 18:44:04 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"lQbt/+0pEQ6OMdVHDFHXo5Pdgog6Caacw9y3tsIpsucEktf+GSEcH/HWIfevYOOMxGqfJuWrt/dQdQ9P/iiiJA==", "id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:44:04.186067"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (2.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:44:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:44:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.7ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.7ms) + + + +NoMethodError - undefined method `id' for nil:NilClass: + app/views/tasks/index.html.erb:6:in `block in _app_views_tasks_index_html_erb___3784691242588921172_70094953592600' + app/views/tasks/index.html.erb:2:in `_app_views_tasks_index_html_erb___3784691242588921172_70094953592600' + +Started POST "/__better_errors/00a880f0ddc5d018/variables" for ::1 at 2019-04-12 18:44:25 -0700 +Started GET "/tasks" for ::1 at 2019-04-12 18:44:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 43ms (Views: 39.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:44:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 35ms (Views: 29.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 40ms (Views: 33.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 42ms (Views: 35.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 41ms (Views: 36.4ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:49 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (7.6ms) +Completed 200 OK in 50ms (Views: 46.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:45:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 34ms (Views: 29.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 18:46:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.7ms) +Completed 200 OK in 36ms (Views: 30.7ms | ActiveRecord: 0.7ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:49:00 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"fwrm7v1XgVEFtGFMvlxkVNbiaJ4TzOl0Z8DIplhX/EZMuwFIn3UVBiZ9QzyeJiHboircNdrD316xswAOhGQeRg==", "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:53 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:49:00.811831"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (3.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 27ms (ActiveRecord: 8.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:49:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 217ms (Views: 213.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:49:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (6.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.2ms) +Completed 200 OK in 46ms (Views: 33.1ms | ActiveRecord: 6.0ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:49:09 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"hAzdv9TQliO4Ee0LSS9GgjnWHxTF+kMYrRnG12Q1wqGeqPU6wzIh6XD4JK7OEn420JN6HUgkjVCmYy5fCOg8eA==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:49:09.801026"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:49:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:49:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (6.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 40ms (Views: 28.2ms | ActiveRecord: 6.7ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:49:16 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"TDKash1eHTdpsB5DOWIV5q+LcJjC1Z9eYi0hgqurQWxWlrI3Cryq/aFZ1+a+Xy1SRs4VkU8LURZpV8kKx3a/tQ==", "id"=>"6"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 01:49:16.280516"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (3.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:49:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:49:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 38ms (Views: 29.4ms | ActiveRecord: 4.0ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-12 18:49:21 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Ptr2etS9oP+UE334RpNs2yWo9XfuZ1pUMbi9uqr2rNokft7/w18XNVz6tF3BrlRvzO2QfmO5lBw6wlUyxitSAw==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 01:49:21.927627"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:49:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-12 18:49:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (4.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 56ms (Views: 46.8ms | ActiveRecord: 4.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:50:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 28ms (Views: 24.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:50:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 32ms (Views: 26.6ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:51:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (25.9ms) +Completed 200 OK in 64ms (Views: 48.7ms | ActiveRecord: 6.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:51:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (9.6ms) +Completed 200 OK in 50ms (Views: 41.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:51:26 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:2 + Rendered tasks/index.html.erb within layouts/application (16.3ms) +Completed 200 OK in 233ms (Views: 222.2ms | ActiveRecord: 3.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:54:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (21.3ms) +Completed 200 OK in 270ms (Views: 256.5ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:54:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 36ms (Views: 32.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:54:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.6ms) +Completed 200 OK in 36ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:56:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 60ms (Views: 53.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:56:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 83ms (Views: 74.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:56:26 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 39ms (Views: 31.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:57:41 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (20.9ms) +Completed 200 OK in 285ms (Views: 263.3ms | ActiveRecord: 7.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:57:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:58:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 45ms (Views: 41.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:58:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 27ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:58:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 38ms (Views: 34.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:58:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 26ms (Views: 22.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:59:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 33ms (Views: 29.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 18:59:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 48ms (Views: 22.2ms | ActiveRecord: 2.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 18:59:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 77ms (Views: 71.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:00:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 43ms (Views: 40.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:00:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 34ms (Views: 27.6ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:00:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.5ms) +Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:00:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 30ms (Views: 24.0ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:00:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 47ms (Views: 41.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-12 19:00:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (3.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 40ms (Views: 31.6ms | ActiveRecord: 3.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 96ms (Views: 91.0ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 21.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (9.5ms) +Completed 200 OK in 35ms (Views: 31.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 34ms (Views: 30.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 41ms (Views: 37.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:03:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (10.0ms) +Completed 200 OK in 39ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:04:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 45ms (Views: 38.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:05:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 51ms (Views: 45.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:05:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 25ms (Views: 22.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:05:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (9.2ms) +Completed 200 OK in 34ms (Views: 30.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:05:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (8.1ms) +Completed 200 OK in 33ms (Views: 28.1ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:06:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '{', expecting ')' +...te", class: "complete-button" {action: "complete", id: todo_... +... ^ +/Users/faizahusain/Documents/Ada_Classwork/Ruby_on_Rails/TaskList/app/views/tasks/index.html.erb:7: syntax error, unexpected ',', expecting ')' +...te-button" {action: "complete", id: todo_item.id}, method: :... +... ^ +/Users/faizahusain/Documents/Ada_Classwork/Ruby_on_Rails/TaskList/app/views/tasks/index.html.erb:7: syntax error, unexpected '}', expecting ')' +...: "complete", id: todo_item.id}, method: :patch );@output_bu... +... ^: + app/views/tasks/index.html.erb:7:in `' + +Started POST "/__better_errors/fbd0f89e84ef2c9e/variables" for ::1 at 2019-04-12 19:06:47 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for ::1 at 2019-04-12 19:07:14 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 71ms (Views: 67.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:07:16 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 34ms (Views: 31.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:07:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 40ms (Views: 37.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:07:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 32ms (Views: 29.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:07:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 37ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:07:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (8.9ms) +Completed 200 OK in 30ms (Views: 26.1ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (9.2ms) +Completed 200 OK in 42ms (Views: 37.9ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 31ms (Views: 26.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 36ms (Views: 32.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 25ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:08:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 51ms (Views: 45.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:09:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 43ms (Views: 39.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:09:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 49ms (Views: 43.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:09:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 36ms (Views: 30.3ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:09:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 37ms (Views: 32.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:13:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (40.5ms) +Completed 200 OK in 184ms (Views: 161.3ms | ActiveRecord: 3.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:19:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (8.3ms) +Completed 200 OK in 49ms (Views: 43.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:19:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 63ms (Views: 59.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:19:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 47ms (Views: 43.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-12 19:20:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 52ms (Views: 48.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-13 08:33:53 -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:9 + Rendering tasks/show.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:4 + Rendered tasks/show.html.erb within layouts/application (676.7ms) +Completed 500 Internal Server Error in 758ms (ActiveRecord: 13.0ms) + + + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + CACHE Task Load (0.0ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/faizahusain/.rvm/rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/did_you_mean-1.2.0/lib/did_you_mean/core_ext/name_error.rb:8 + +NameError - undefined local variable or method `todo_item' for #<#:0x00007fd4b7bec1f0>: + app/views/tasks/show.html.erb:13:in `_app_views_tasks_show_html_erb__4382815085941753181_70275796264320' + +Started POST "/__better_errors/6a4caed35ea947b9/variables" for ::1 at 2019-04-13 08:33:54 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 08:34:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 52ms (Views: 45.2ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-13 08:34:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (5.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (425.6ms) +Completed 500 Internal Server Error in 441ms (ActiveRecord: 5.8ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007fd4b7c27f20>: + app/views/tasks/show.html.erb:13:in `_app_views_tasks_show_html_erb__4382815085941753181_70275796411460' + +Started POST "/__better_errors/c4fe28bf89d205e7/variables" for ::1 at 2019-04-13 08:34:52 -0700 +Started GET "/tasks/4" for ::1 at 2019-04-13 08:36:37 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.6ms) +Completed 200 OK in 40ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-13 08:36:41 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"NClNTzYHgwnJw8zQnIY5Bvfma53mMjUpPWm8mUsRFo0HmKrpVCUXXuoK7qC8/HyJgy7fNi89AwPrGnQxlyL0jQ==", "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:53 +  (1.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (49.9ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 15:36:41.123156"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (6.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 70ms (ActiveRecord: 58.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:36:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 24ms (Views: 21.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/4/complete" for ::1 at 2019-04-13 08:36:47 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"4Gc7JEEPwnyRiHFG87jXCkM3MGbv8WKjU4aDZFy25rjT1tyCIy1WK7JBUzbTwpKFN/+EzSb+VImF9UvMgIUEuA==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 15:36:47.824357"], ["id", 4]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:36:47 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 35ms (Views: 30.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:36:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 49ms (Views: 22.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:37: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 37ms (Views: 29.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:38: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 32ms (Views: 28.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:40: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 46ms (Views: 41.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:41:01 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.9ms) +Completed 200 OK in 61ms (Views: 55.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 53ms (Views: 48.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 48ms (Views: 43.5ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.2ms) +Completed 200 OK in 28ms (Views: 24.1ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 36ms (Views: 32.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 31ms (Views: 26.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:42: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 23ms (Views: 18.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:43:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:43:36 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 39ms (Views: 34.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:43: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 18.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:43:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 42.5ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:44:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"xdCCurJr6qpRpVWzhqkHfUYLggcpypNgUZbevvzDHrf2YWUc0El+/XJsd8Om00LyMsM2rODFpUqH5RYWIPD8tw=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/6ab84287a9b639ae/variables" for ::1 at 2019-04-13 08:44:01 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 08:45:46 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (29.7ms) +Completed 200 OK in 371ms (Views: 342.5ms | ActiveRecord: 16.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-13 08:45:49 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 42ms (Views: 23.6ms | ActiveRecord: 0.8ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:45:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"lGfqWBHGLNQ1koDlUkxs4A1CwHqJAA2uh+7Gspw7k0zu2lJDi/ltYjcBcS8Wm/r+BpytOGIDPZ7f89j8xeLQkg=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/5e6638347d1e0b24/variables" for ::1 at 2019-04-13 08:45:51 -0700 +Started POST "/tasks/3/edit" for ::1 at 2019-04-13 08:45:56 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/3/edit"): + +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 DELETE "/tasks/3" for ::1 at 2019-04-13 08:46:10 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"ID35WPTzDXpgZtybuCLg1WWBaPJD3FKfjHj/2OEToUYTjB7+ltGZLUOv/uuYWKVaEUncWYrTZLVaCzdwPSBDRg==", "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:63 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:67 + Task Destroy (2.1ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 3]] + ↳ app/controllers/tasks_controller.rb:67 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:67 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:46:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 37ms (Views: 33.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 08:46:13 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (23.9ms) + Rendered tasks/new.html.erb within layouts/application (27.2ms) +Completed 200 OK in 55ms (Views: 49.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:46:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2mTMBL4yBpchEL+ldL97ZVmBMVAaaMjoJtkhAb3D/fGg2XQfJA1HISODTm8waO17Ul9cEvFr+Nh+xD9P5Bq+Lw==", "task"=>{"task"=>"I have to... go hiking", "descriptions"=>"at Lake 22", "completion_date"=>"today"}, "commit"=>"Create Task"} +Unpermitted parameter: :completion_date +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (2.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "I have to... go hiking"], ["created_at", "2019-04-13 15:46:37.816409"], ["updated_at", "2019-04-13 15:46:37.816409"], ["descriptions", "at Lake 22"]] + ↳ app/controllers/tasks_controller.rb:25 +  (9.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 18ms (ActiveRecord: 12.2ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-13 08:46:37 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 32ms (Views: 26.1ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:46:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"VBUQGwEF7DUxkSvr6QrUmVvxWvfzsYbcm/lt8QcGAwVnpPe9Yyd4YhJYCZvJcJEWLznuXDq+sPZNiqVZ2zXhBQ=="} +Completed 400 Bad Request in 3ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/dd2e31046f2c7964/variables" for ::1 at 2019-04-13 08:46:40 -0700 +Started GET "/tasks/11" for ::1 at 2019-04-13 08:47:28 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 30ms (Views: 16.3ms | ActiveRecord: 3.6ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:47:32 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"NfsYX3FoAITz7qvKq71NYcQ+RQx25P5BNfdcFecqSrwGSv/5E0qU09AnibqLxwjusPbxp7/ryGvjhJS9OxmovA=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/afddde8afa2c961b/variables" for ::1 at 2019-04-13 08:47:32 -0700 +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-13 08:47:37 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"NfsYX3FoAITz7qvKq71NYcQ+RQx25P5BNfdcFecqSrwGSv/5E0qU09AnibqLxwjusPbxp7/ryGvjhJS9OxmovA==", "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:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 15:47:37.937013"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:47:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-13 08:47:41 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"1W2dW+fiNOogECPW5DvzAmlUtTKdp5S/6Kx64ARekbbm3Hr9hcCgvQPZAabEQbaNHZwBmVSoopU+37JI2G1ztg==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 15:47:41.272302"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:47:41 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 24ms (Views: 20.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-13 08:47:46 -0700 +Processing by TasksController#show 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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 41ms (Views: 31.2ms | ActiveRecord: 6.5ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:47:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"QtZMZTKhgTgPqBe+YE+/JpzpYPe//aW/U2pMTssq8yk4a/R+qJ7Ajg075nQkmCk4lzcNtVT+lY8Ld1IAkvOw9w=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/3776f8f88de784b8/variables" for ::1 at 2019-04-13 08:47:48 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 08:49:44 -0700 +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (19.4ms) +Completed 200 OK in 252ms (Views: 237.3ms | ActiveRecord: 5.0ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-13 08:49:46 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 31ms (Views: 20.0ms | ActiveRecord: 2.7ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:49:48 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"1nZ2D3RWJnaN0UR2YbkESu0txY8N3NtnDoNlGGBcEEOsy84U7mlnwI9CtbwlbpJU5vOozebf61dWnntWOYVTnQ=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:76:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/e56941941879dbab/variables" for ::1 at 2019-04-13 08:49:48 -0700 +Started POST "/tasks/2/edit" for ::1 at 2019-04-13 08:49:56 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-13 08:51: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 46ms (Views: 33.0ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:51:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 33ms (Views: 30.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:55:20 -0700 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (17.1ms) +Completed 200 OK in 251ms (Views: 235.2ms | ActiveRecord: 7.1ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:55:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"UgVsVQETHkNumRUtE9RyX8bRqDWwPvEfsKKXNW99UPlhtIvzYzGKFE1QN10zrjfQshkcnnkxxzVm0V+ds06y+Q=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:78:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/9c0dac80ef2b4103/variables" for ::1 at 2019-04-13 08:55:34 -0700 +Started POST "/__better_errors/9c0dac80ef2b4103/eval" for ::1 at 2019-04-13 08:56:00 -0700 +Started POST "/tasks/2/edit" for ::1 at 2019-04-13 08:56:35 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks/2/edit" for ::1 at 2019-04-13 08:58:39 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/2/edit"): + +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-13 08:58:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 51ms (Views: 30.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:58:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (12.1ms) +Completed 200 OK in 34ms (Views: 29.2ms | ActiveRecord: 2.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 08:58: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 28ms (Views: 23.3ms | ActiveRecord: 0.2ms) + + +Started POST "/tasks/1/edit" for ::1 at 2019-04-13 08:58:49 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/1/edit"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks" for ::1 at 2019-04-13 08:58:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"authenticity_token"=>"TKcgU7kzqqnDJee9A8rn5clkJ1YRausdpD1balppCDR/Fsf12xE+/uDsxc0jsKJqvayT/dhl3TdyTpPChlrqNA=="} +Completed 400 Bad Request in 1ms (ActiveRecord: 0.0ms) + + + +ActionController::ParameterMissing - param is missing or the value is empty: task: + app/controllers/tasks_controller.rb:78:in `task_params' + app/controllers/tasks_controller.rb:23:in `create' + +Started POST "/__better_errors/d19f79f05ab27fce/variables" for ::1 at 2019-04-13 08:58:58 -0700 +Started GET "/tasks" for ::1 at 2019-04-13 08:59: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 08:59:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (7.9ms) + Rendered tasks/new.html.erb within layouts/application (10.2ms) +Completed 200 OK in 32ms (Views: 27.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 08:59:23 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7w2dG8Zh6pbRJ5nkiXo+dO68dOjT7F70upNlAuKUHoeVsCUAXF6rINO0aC7Nrahq5WIZqjjvbsTijntMu01dWQ==", "task"=>{"task"=>"I have to... do stuff", "descriptions"=>"all the time", "completed"=>"everyday"}, "commit"=>"Create Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (2.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to... do stuff"], ["created_at", "2019-04-13 15:59:23.166195"], ["updated_at", "2019-04-13 15:59:23.166195"], ["descriptions", "all the time"], ["completed", true]] + ↳ app/controllers/tasks_controller.rb:25 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 8ms (ActiveRecord: 3.6ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-13 08:59:23 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 19.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:59: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 29ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 08:59:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.3ms) + + +Started POST "/tasks/new" for ::1 at 2019-04-13 08:59:55 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/new"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-13 09:00: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 24ms (Views: 20.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:00:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 36ms (Views: 27.9ms | ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:00: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.6ms) +Completed 200 OK in 33ms (Views: 27.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:00:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 21ms (Views: 17.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-13 09:00:54 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.1ms) + Rendered tasks/edit.html.erb within layouts/application (4.8ms) +Completed 200 OK in 30ms (Views: 22.8ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:01: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 32ms (Views: 25.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-13 09:01:46 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 77ms (Views: 66.7ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/12" for ::1 at 2019-04-13 09:01:49 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"GNwDbxt+mP4H1oWET7LQiEI0H2b4xZ72Lc1V9GMwTOy9ZXmywMs3BudAO0EyZu65RjRSoynbmeyhDUmqvwAUMg==", "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:65 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 12]] + ↳ app/controllers/tasks_controller.rb:69 +  (1.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:01: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:01:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 23ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:04:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 87ms (Views: 74.4ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:04:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 23ms (Views: 18.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:04:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 20ms (Views: 16.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:04:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 19ms (Views: 16.6ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:04: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 54ms (Views: 43.8ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:05:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 45ms (Views: 40.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:05: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 37ms (Views: 33.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:05:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 31.2ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:05:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-13 09:06:16 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 32ms (Views: 28.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-13 09:06:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.6ms) + Rendered tasks/edit.html.erb within layouts/application (5.6ms) +Completed 200 OK in 30ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:06:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 30ms (Views: 24.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-13 09:06:25 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 32ms (Views: 26.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/6/edit" for ::1 at 2019-04-13 09:06:26 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"6"} + Task Load (3.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 31ms (Views: 22.9ms | ActiveRecord: 3.3ms) + + +Started PATCH "/tasks/6" for ::1 at 2019-04-13 09:06:39 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9V8RZHU3IMDOlAHY6Z/Z1zZb2/pr5CNIqNyqmgR/GrJnB8bEon2kRrSmUm4P2gOnFWINsH1eWtrGmZWgTSCrWA==", "task"=>{"task"=>"I have to...eat breakfast", "descriptions"=>"oatmeal", "completed"=>"false"}, "commit"=>"Update Task", "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:43 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:47 + Task Update (0.5ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "I have to...eat breakfast"], ["descriptions", "oatmeal"], ["updated_at", "2019-04-13 16:06:39.582986"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:47 +  (2.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:47 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 8ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-13 09:06:39 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 28ms (Views: 25.4ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:06: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 28ms (Views: 22.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-13 09:06:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 33ms (Views: 25.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:07:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 34ms (Views: 29.1ms | ActiveRecord: 0.3ms) + + diff --git a/log/test.log b/log/test.log index c24679d28..4b57c4ec1 100644 --- a/log/test.log +++ b/log/test.log @@ -7998,3 +7998,770 @@ Processing by TasksController#show as HTML Rendered tasks/show.html.erb within layouts/application (0.7ms) Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK +  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (2.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (265.9ms) DROP DATABASE IF EXISTS "TaskList_test" +  (668.8ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.8ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (13.1ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "descriptions" character varying, "completed" boolean) +  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20190412234356) +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES +(20190412234033), +(20190409212755), +(20190412234219), +(20190409215910), +(20190409214432); + + +  (2.9ms) 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 (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-04-12 23:47:09.564667"], ["updated_at", "2019-04-12 23:47:09.564667"]] +  (0.4ms) COMMIT + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-12 23:47:10.062682', '2019-04-12 23:47:10.062682', 'MyString', TRUE), (298486374, 'MyString', '2019-04-12 23:47:10.062682', '2019-04-12 23:47:10.062682', 'MyString', TRUE) +  (0.4ms) 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.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (16.2ms) +Completed 200 OK in 167ms (Views: 161.0ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:47:10 -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.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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 23:47:10.274866"], ["updated_at", "2019-04-12 23:47:10.274866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (1.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/_form.html.erb (17.6ms) + Rendered tasks/edit.html.erb within layouts/application (21.1ms) +Completed 200 OK in 30ms (Views: 22.5ms | ActiveRecord: 1.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-12 16:47:10 -0700 +Processing by TasksController#new as HTML +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) +  (0.1ms) 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-12 16:47:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 23:47:10.343565"], ["updated_at", "2019-04-12 23:47:10.343565"], ["descriptions", "new task description"]] +  (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.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.6ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 23:47:10.355400"], ["updated_at", "2019-04-12 23:47:10.355400"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 23:47:10.359822"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + 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::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.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" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 23:47:10.373888"], ["updated_at", "2019-04-12 23:47:10.373888"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 16:47:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) 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 (15.5ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 0.1ms) +  (0.2ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-12 23:47:43.835191', '2019-04-12 23:47:43.835191', 'MyString', TRUE), (298486374, 'MyString', '2019-04-12 23:47:43.835191', '2019-04-12 23:47:43.835191', 'MyString', TRUE) +  (1.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.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 16:47:43 -0700 +Processing by TasksController#new as HTML +Completed 500 Internal Server Error in 33ms (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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 23:47:43.897323"], ["updated_at", "2019-04-12 23:47:43.897323"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-12 16:47:43 -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 128ms (Views: 123.7ms | 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-12 16:47: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.4ms) ROLLBACK +  (1.0ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.7ms) +  (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-12 16:47:44 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 23:47:44.066896"], ["updated_at", "2019-04-12 23:47:44.066896"], ["descriptions", "new task description"]] +  (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"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) 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 (1.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 23:47:44.073169"], ["updated_at", "2019-04-12 23:47:44.073169"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (7.8ms) + Rendered tasks/edit.html.erb within layouts/application (10.7ms) +Completed 200 OK in 16ms (Views: 12.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (2.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 23:47:44.110010"], ["updated_at", "2019-04-12 23:47:44.110010"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:47:44 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190966"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 23:47:44.117181"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 2.4ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.4ms) 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", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-12 23:48:22.544596', '2019-04-12 23:48:22.544596', 'MyString', TRUE), (298486374, 'MyString', '2019-04-12 23:48:22.544596', '2019-04-12 23:48:22.544596', 'MyString', TRUE) +  (1.8ms) 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 +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 23:48:22.586439"], ["updated_at", "2019-04-12 23:48:22.586439"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 23:48:22.602003"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 23:48:22.619015"], ["updated_at", "2019-04-12 23:48:22.619015"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 114ms (Views: 111.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-12 16:48:22 -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.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::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 16:48:22 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 23:48:22.764475"], ["updated_at", "2019-04-12 23:48:22.764475"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-12 16:48:22 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.4ms) + Rendered tasks/new.html.erb within layouts/application (6.1ms) +Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:48:22 -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.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 23:48:22.790112"], ["updated_at", "2019-04-12 23:48:22.790112"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-12 16:48:22 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.1ms) +  (0.2ms) ROLLBACK +  (0.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-12 23:50:25.098919', '2019-04-12 23:50:25.098919', 'MyString', TRUE), (298486374, 'MyString', '2019-04-12 23:50:25.098919', '2019-04-12 23:50:25.098919', 'MyString', TRUE) +  (1.6ms) 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-12 16:50:25 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.8ms) + Rendered tasks/new.html.erb within layouts/application (7.1ms) +Completed 200 OK in 134ms (Views: 123.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-12 16:50:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 23:50:25.266125"], ["updated_at", "2019-04-12 23:50:25.266125"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 1.7ms) +  (1.1ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 23:50:25.278200"], ["updated_at", "2019-04-12 23:50:25.278200"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-12 16:50: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/_form.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (3.1ms) +Completed 200 OK in 11ms (Views: 4.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:50: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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 23:50:25.298385"], ["updated_at", "2019-04-12 23:50:25.298385"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:50:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190965"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +Unpermitted parameter: :completed +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 23:50:25.302091"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:50:25 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 23:50:25.314028"], ["updated_at", "2019-04-12 23:50:25.314028"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 16:50:25 -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 (0.6ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.2ms) +  (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-12 16:50: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.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-12 16:50:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 2.3ms | 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-12 16:50:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-12 23:50:54.575122', '2019-04-12 23:50:54.575122', 'MyString', TRUE), (298486374, 'MyString', '2019-04-12 23:50:54.575122', '2019-04-12 23:50:54.575122', 'MyString', TRUE) +  (1.0ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.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-12 16:50:54 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (6.7ms) + Rendered tasks/new.html.erb within layouts/application (9.7ms) +Completed 200 OK in 180ms (Views: 172.8ms | 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-12 23:50:54.794209"], ["updated_at", "2019-04-12 23:50:54.794209"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-12 16:50:54 -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/_form.html.erb (1.1ms) + Rendered tasks/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-12 16:50: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.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-12 16:50:54 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-12 23:50:54.817876"], ["updated_at", "2019-04-12 23:50:54.817876"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-12 23:50:54.824891"], ["updated_at", "2019-04-12 23:50:54.824891"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:50:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190965"} + Task Load (0.2ms) 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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-12 23:50:54.829729"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-12 16:50:54 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-12 16:50:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-12 16:50:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.7ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-12 23:50:54.859256"], ["updated_at", "2019-04-12 23:50:54.859256"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-12 16:50:54 -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 (0.8ms) +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (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 16:50: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.2ms) ROLLBACK diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 55930c06b..2797fe598 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -5,7 +5,7 @@ # you may need to modify this. let (:task) { Task.create task: "sample task", descriptions: "this is an example for a test", - completion_date: "date" + completed: false } # Tests for Wave 1 @@ -82,7 +82,7 @@ new_task = Task.find_by(task: task_hash[:task][:task]) expect(new_task.descriptions).must_equal task_hash[:task][:descriptions] - expect(new_task.completion_date).must_equal task_hash[:task][:completion_date] + expect(new_task.completed).must_equal task_hash[:task][:completed] must_respond_with :redirect must_redirect_to task_path(new_task.id) @@ -121,11 +121,11 @@ task: { task: "Cleaning", descriptions: "My apartment", - completion_date: "tomorrow" + completed: false } } - task_to_be_updated = Task.create(task: "Clean", descriptions: "entire apartment", completion_date: "today") + task_to_be_updated = Task.create(task: "Clean", descriptions: "entire apartment", completed: false) patch task_path(task_to_be_updated.id, params: task_hash) # pulls task back from database @@ -142,9 +142,9 @@ puts task_hash[:task][:descriptions] expect(task_to_be_updated.descriptions).must_equal task_hash[:task][:descriptions] - puts "VVVVVV COMPLETION_DATE VVVVVVVV" - puts task_hash[:task][:completion_date] - expect(task_to_be_updated.completion_date).must_equal task_hash[:task][:completion_date] + puts "VVVVVV completed VVVVVVVV" + puts task_hash[:task][:completed] + expect(task_to_be_updated.completed).must_equal task_hash[:task][:completed] end @@ -154,7 +154,7 @@ task: { task: "Cleaning", descriptions: "My apartment", - completion_date: "tomorrow" + completed: false } } diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml index 267b905a4..b4b390ed0 100644 --- a/test/fixtures/tasks.yml +++ b/test/fixtures/tasks.yml @@ -3,9 +3,9 @@ one: task: MyString descriptions: MyString - completion_date: MyString + completed: Boolean two: task: MyString descriptions: MyString - completion_date: MyString + completed: Boolean From 273f897e18174aee6f3403d8e98b5a0b84380a5b Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Sat, 13 Apr 2019 09:22:30 -0700 Subject: [PATCH 07/14] Added tests --- app/assets/stylesheets/application.css | 12 + app/controllers/tasks_controller.rb | 6 +- app/views/tasks/index.html.erb | 2 +- log/development.log | 216 ++++ log/test.log | 1247 +++++++++++++++++++++ test/controllers/tasks_controller_test.rb | 25 +- 6 files changed, 1501 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index c61a5896b..ec5f77c85 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -70,4 +70,16 @@ body { border-right: 1px solid #333333; border-bottom: 1px solid #333333; border-left: 1px solid #CCCCCC; +} + +.add-task-button { + color: white; + background-color: plum; + font: 11px Arial; + text-decoration: none; + padding: 2px 3px 2px 3px; + border-top: 1px solid #CCCCCC; + border-right: 1px solid #333333; + border-bottom: 1px solid #333333; + border-left: 1px solid #CCCCCC; } \ No newline at end of file diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index 31a944e99..c34d1c1c1 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -50,7 +50,7 @@ def update redirect_to tasks_path end end - + def complete task = Task.find_by(id: params[:id]) @@ -60,9 +60,9 @@ def complete redirect_to tasks_path end - + def destroy - task = Task.find( params[:id] ) + task = Task.find(params[:id]) if task.nil? head :not_found else diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index db6e7f001..ffd6682c2 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -11,6 +11,6 @@ <% end %> - <%= link_to "Add Task", new_task_path %> + <%= link_to "Add Task", new_task_path, class: "add-task-button" %> diff --git a/log/development.log b/log/development.log index d62dd6c92..aaf906e87 100644 --- a/log/development.log +++ b/log/development.log @@ -7579,3 +7579,219 @@ Processing by TasksController#index as HTML Completed 200 OK in 34ms (Views: 29.1ms | ActiveRecord: 0.3ms) +Started GET "/tasks/4" for ::1 at 2019-04-13 09:09:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"4"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 90ms (Views: 78.7ms | ActiveRecord: 0.7ms) + + +Started DELETE "/tasks/4" for ::1 at 2019-04-13 09:09:23 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"7GwRy/jqSqcvfX1K4BesJFeLAxjhJjbI5JHC3vSbOGx420x0Uzqa6qvuNQAIJ0F4EJb2JwIY5TbSp3fUAirUsQ==", "id"=>"4"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 4], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:65 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 4]] + ↳ app/controllers/tasks_controller.rb:69 +  (2.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 3.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:09: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 22ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:10:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 58ms (Views: 53.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-13 09:21:39 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (4.4ms) + Rendered tasks/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 54ms (Views: 37.3ms | ActiveRecord: 5.3ms) + + +Started POST "/tasks" for ::1 at 2019-04-13 09:21:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tolNnASIDetZK4H/WwMCmJzd3dtFgtOV74O7Vpq5mJbMNPWHnrdMXVu4cDUf1JSGlwOwma6B46W3nqUYw2DbSA==", "task"=>{"task"=>"I have to... agwgweg", "descriptions"=>"wgegsgsg", "completed"=>"Incomplete"}, "commit"=>"Create Task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:25 + Task Create (0.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "I have to... agwgweg"], ["created_at", "2019-04-13 16:21:43.540556"], ["updated_at", "2019-04-13 16:21:43.540556"], ["descriptions", "wgegsgsg"], ["completed", true]] + ↳ app/controllers/tasks_controller.rb:25 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:25 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 10ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-13 09:21:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 34.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/13/edit" for ::1 at 2019-04-13 09:21:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"13"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:35 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (2.5ms) + Rendered tasks/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 35ms (Views: 29.7ms | ActiveRecord: 1.3ms) + + +Started PATCH "/tasks/13" for ::1 at 2019-04-13 09:21:50 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IIl9aB4sZxSAItlax4PT0dPaiiGQ3iOmizuX9An0YR9BNrT7YHJuA1/J7FKP0uNxkUqiKeNsRAb8VaHyDfWpaQ==", "task"=>{"task"=>"sdgsdgsghrwh", "descriptions"=>"wgegsgsg", "completed"=>"true"}, "commit"=>"Update Task", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:43 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:47 + Task Update (0.6ms) UPDATE "tasks" SET "task" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["task", "sdgsdgsghrwh"], ["updated_at", "2019-04-13 16:21:50.911726"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:47 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:47 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 8ms (ActiveRecord: 3.1ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-13 09:21:50 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started PATCH "/tasks/13/complete" for ::1 at 2019-04-13 09:21:54 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Dxl/23PtgXEdPMBinWmKtI33JBkeBlb3Pnavnzp6jnc8qJh9Ec8VJj714hK9E887+T+QstcJYN3oBWc35klsdw==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:55 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 16:21:54.597098"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:59 +  (0.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/13/complete" for ::1 at 2019-04-13 09:21:59 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"QarrY7SBy3cNp47dA1PgtlZMpb1BivJKsNYA6/eirPRyGwzF1qNfIC5urK0jKaU5IoQRFoiFxGBmpchDK5FO9A==", "id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:55 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 16:21:59.676655"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:59 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 8ms (ActiveRecord: 2.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:21: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 28ms (Views: 25.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/13/complete" for ::1 at 2019-04-13 09:22:01 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"yGQ1bYZsEdiFxToZYNiTyaTJZXaiY2E7FtJ8niELcNP71dLL5E6Fj6YMGGlAotZG0AHR3WtsVxHAobQ2/TiS0w==", "id"=>"13"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:55 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-13 16:22:01.355953"], ["id", 13]] + ↳ app/controllers/tasks_controller.rb:59 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 2.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:22:01 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 23ms (Views: 20.6ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-13 09:22:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"13"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 13], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 24.4ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/13" for ::1 at 2019-04-13 09:22:06 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"authenticity_token"=>"0gyDgBREBChBwVB937Sl7e90BtgaHIkBPs9a2aNDacFnqfSfrzr2n59eF1mfMN6sA/bOb4w/KhKCl+2tT35eWg==", "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:65 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Destroy (0.2ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 13]] + ↳ app/controllers/tasks_controller.rb:69 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-13 09:22: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 23.8ms | ActiveRecord: 0.3ms) + + diff --git a/log/test.log b/log/test.log index 4b57c4ec1..399bc3b73 100644 --- a/log/test.log +++ b/log/test.log @@ -8765,3 +8765,1250 @@ Processing by TasksController#show as HTML Redirected to http://www.example.com/tasks Completed 302 Found in 1ms (ActiveRecord: 0.2ms)  (0.2ms) ROLLBACK +  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (26.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", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:11:09.635331', '2019-04-13 16:11:09.635331', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:11:09.635331', '2019-04-13 16:11:09.635331', 'MyString', TRUE) +  (0.9ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:11: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 7ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:11:09.721755"], ["updated_at", "2019-04-13 16:11:09.721755"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-13 09:11:09 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (31.7ms) + Rendered tasks/edit.html.erb within layouts/application (35.5ms) +Completed 200 OK in 323ms (Views: 318.7ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:11:10.052949"], ["updated_at", "2019-04-13 16:11:10.052949"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:11:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:11:10.069373"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 6ms (ActiveRecord: 1.3ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:11:10 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:11:10.082287"], ["updated_at", "2019-04-13 16:11:10.082287"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-13 09:11:10 -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.8ms) +Completed 200 OK in 10ms (Views: 4.2ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:11:10 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.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-13 09:11:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 7ms (Views: 4.2ms | 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 09:11:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 1.9ms | 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-13 09:11:10 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.3ms) + Rendered tasks/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 09:11:10 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:11:10.135124"], ["updated_at", "2019-04-13 16:11:10.135124"], ["descriptions", "new task description"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:14:01.943392', '2019-04-13 16:14:01.943392', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:14:01.943392', '2019-04-13 16:14:01.943392', 'MyString', TRUE) +  (1.4ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:14:01.968868"], ["updated_at", "2019-04-13 16:14:01.968868"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 09:14:01 -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 (3.3ms) +Completed 200 OK in 238ms (Views: 227.0ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 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.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:14:02.225658"], ["updated_at", "2019-04-13 16:14:02.225658"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (22.7ms) + Rendered tasks/edit.html.erb within layouts/application (25.5ms) +Completed 200 OK in 30ms (Views: 26.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.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.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:14:02.266690"], ["updated_at", "2019-04-13 16:14:02.266690"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-04-13 09:14:02 -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.3ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:14:02.296266"], ["updated_at", "2019-04-13 16:14:02.296266"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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 09:14:02 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 09:14:02 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 10ms (Views: 6.4ms | 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-13 09:14:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:14:02.332872"], ["updated_at", "2019-04-13 16:14:02.332872"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:14:02.340434"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:14:02 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:15:18.212123', '2019-04-13 16:15:18.212123', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:15:18.212123', '2019-04-13 16:15:18.212123', 'MyString', TRUE) +  (0.9ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:15:18.236082"], ["updated_at", "2019-04-13 16:15:18.236082"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 09:15: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.7ms) +Completed 200 OK in 227ms (Views: 216.9ms | ActiveRecord: 0.3ms) +  (1.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:15: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 +  (2.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:15:18.488018"], ["updated_at", "2019-04-13 16:15:18.488018"], ["descriptions", "entire apartment"], ["completed", false]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:15:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:15:18.499399"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:15:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:15:18.512954"], ["updated_at", "2019-04-13 16:15:18.512954"]] +  (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-13 09:15:18 -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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-13 09:15:18 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) 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 09:15: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (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 09:15: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms) +  (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-13 09:15:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:15:18.548476"], ["updated_at", "2019-04-13 16:15:18.548476"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:15:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:15:18.558839"], ["updated_at", "2019-04-13 16:15:18.558839"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-13 09:15:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (17.7ms) + Rendered tasks/edit.html.erb within layouts/application (20.8ms) +Completed 200 OK in 26ms (Views: 22.1ms | ActiveRecord: 0.1ms) +  (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 09:15:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (1.3ms) 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.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:16:56.636673', '2019-04-13 16:16:56.636673', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:16:56.636673', '2019-04-13 16:16:56.636673', 'MyString', TRUE) +  (1.6ms) 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::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 09:16:56 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:16:56.677705"], ["updated_at", "2019-04-13 16:16:56.677705"], ["descriptions", "new task description"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 13ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:16:56.693176"], ["updated_at", "2019-04-13 16:16:56.693176"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 09:16:56 -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 (4.6ms) +Completed 200 OK in 198ms (Views: 192.7ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:16: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 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-13 09:16:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (13.2ms) + Rendered tasks/new.html.erb within layouts/application (17.0ms) +Completed 200 OK in 26ms (Views: 18.8ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 09:16:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 09:16: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"."id" ASC + 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::destroy: test_0002_responds with a not found error if task id is invalid +----------------------------------------------------------------------------------------- +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:16:56 -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]] +Completed 404 Not 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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:16:56.955494"], ["updated_at", "2019-04-13 16:16:56.955494"]] +  (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-13 09:16:56 -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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:16:56.962706"], ["updated_at", "2019-04-13 16:16:56.962706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-13 09:16:56 -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/_form.html.erb (1.2ms) + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (Views: 2.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/-1" for 127.0.0.1 at 2019-04-13 09:16: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 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:16:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:16:56.983422"], ["updated_at", "2019-04-13 16:16:56.983422"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:16:56 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190967"} + 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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:16:56.987491"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.5ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:17:18.654496', '2019-04-13 16:17:18.654496', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:17:18.654496', '2019-04-13 16:17:18.654496', 'MyString', TRUE) +  (0.5ms) 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 09:17:18 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (20.8ms) + Rendered tasks/new.html.erb within layouts/application (24.9ms) +Completed 200 OK in 206ms (Views: 192.9ms | 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 09:17:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:17:18.911849"], ["updated_at", "2019-04-13 16:17:18.911849"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 4ms (ActiveRecord: 0.6ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["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-13 09:17:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +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.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:17:18.927287"], ["updated_at", "2019-04-13 16:17:18.927287"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 09:17:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-13 09:17:18 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not 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.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:17:18.944068"], ["updated_at", "2019-04-13 16:17:18.944068"]] +  (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-13 09:17:18 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190965"} + Task Load (1.0ms) 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/tasks +Completed 302 Found in 3ms (ActiveRecord: 1.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:17:18.952621"], ["updated_at", "2019-04-13 16:17:18.952621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-13 09:17:18 -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/_form.html.erb (1.4ms) + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 7ms (Views: 3.9ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:17: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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:17:18.970477"], ["updated_at", "2019-04-13 16:17:18.970477"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:17:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:17:18.976074"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:17:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (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 09:17: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-13 09:17:18 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.4ms) 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.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:20:04.850481', '2019-04-13 16:20:04.850481', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:20:04.850481', '2019-04-13 16:20:04.850481', 'MyString', TRUE) +  (1.5ms) 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 09:20:04 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (27.3ms) + Rendered tasks/new.html.erb within layouts/application (31.5ms) +Completed 200 OK in 260ms (Views: 247.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:20:05.138586"], ["updated_at", "2019-04-13 16:20:05.138586"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:20:05.155258"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 1.1ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:20:05.166887"], ["updated_at", "2019-04-13 16:20:05.166887"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-13 09:20:05 -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 6ms (Views: 3.0ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:20:05.184264"], ["updated_at", "2019-04-13 16:20:05.184264"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-13 09:20: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.4ms) +  (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 09:20:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:20:05.213076"], ["updated_at", "2019-04-13 16:20:05.213076"]] +  (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-13 09:20:05 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) 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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:20:05.219652"], ["updated_at", "2019-04-13 16:20:05.219652"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.5ms) + Rendered tasks/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:20:05.235430"], ["updated_at", "2019-04-13 16:20:05.235430"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968/complete" for 127.0.0.1 at 2019-04-13 09:20:05 -0700 +Processing by TasksController#complete as HTML + Parameters: {"id"=>"980190968"} + 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.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 16:20:05.238528"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.4ms) 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.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-13 16:21:05.958160', '2019-04-13 16:21:05.958160', 'MyString', TRUE), (298486374, 'MyString', '2019-04-13 16:21:05.958160', '2019-04-13 16:21:05.958160', 'MyString', TRUE) +  (1.6ms) COMMIT +  (0.2ms) 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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:21:05.982865"], ["updated_at", "2019-04-13 16:21:05.982865"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-13 09:21:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 221ms (Views: 209.0ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:21:06.222204"], ["updated_at", "2019-04-13 16:21:06.222204"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964/complete" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#complete 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 Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 16:21:06.236985"], ["id", 980190964]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.5ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (1.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------------------------------------------------------- +TasksController::complete: test_0002_mark-incomplete button changes status of task from true to false +----------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-13 16:21:06.246705"], ["updated_at", "2019-04-13 16:21:06.246705"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965/complete" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#complete 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.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-13 16:21:06.249767"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + 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::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (2.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-13 16:21:06.263036"], ["updated_at", "2019-04-13 16:21:06.263036"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-13 09:21:06 -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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-13 09:21: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 7ms (Views: 3.6ms | 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 09:21:06 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.1ms) 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-13 09:21:06 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-13 16:21:06.292760"], ["updated_at", "2019-04-13 16:21:06.292760"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-13 16:21:06.299493"], ["updated_at", "2019-04-13 16:21:06.299493"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968/edit" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.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/_form.html.erb (22.4ms) + Rendered tasks/edit.html.erb within layouts/application (25.9ms) +Completed 200 OK in 31ms (Views: 27.4ms | ActiveRecord: 0.1ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-13 09:21:06 -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 09:21:06 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.6ms) + Rendered tasks/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-13 16:21:06.348887"], ["updated_at", "2019-04-13 16:21:06.348887"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190969?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-13 16:21:06.352543"], ["id", 980190969]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-13 09:21:06 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 2797fe598..63bf14dcb 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -167,12 +167,31 @@ # Complete these tests for Wave 4 describe "destroy" do - # Your tests go here + it "can delete a task" do + task = Task.create(task: "Exercise!") + + expect { + delete task_path(task.id) + }.must_change "Task.count", -1 + + must_respond_with :redirect + must_redirect_to tasks_path + end + it "returns an error for invalid id" do + invalid_id = 999 + delete task_path(invalid_id) + must_respond_with :not_found + end end # Complete for Wave 4 - describe "toggle_complete" do - # Your tests go here + describe "complete" do + it "mark-complete button changes status of task from false to true" do + patch mark_complete_path(task.id) + task.reload + expect(task.completed).must_equal true + must_redirect_to tasks_path + end end end \ No newline at end of file From 56dbd2bc554f9a0788037dc8434d8dbffb769af9 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Sun, 14 Apr 2019 12:07:07 -0700 Subject: [PATCH 08/14] Fixed error in destroy test --- app/controllers/tasks_controller.rb | 7 +- log/test.log | 771 ++++++++++++++++++++++++++++ 2 files changed, 775 insertions(+), 3 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index c34d1c1c1..b501216cf 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -61,10 +61,11 @@ def complete redirect_to tasks_path end - def destroy - task = Task.find(params[:id]) + def destroy + task = Task.find_by(id: params[:id]) + if task.nil? - head :not_found + head :not_found else task.destroy redirect_to tasks_path diff --git a/log/test.log b/log/test.log index 399bc3b73..db96959c6 100644 --- a/log/test.log +++ b/log/test.log @@ -10012,3 +10012,774 @@ Processing by TasksController#update as HTML Redirected to http://www.example.com/tasks Completed 302 Found in 2ms (ActiveRecord: 0.6ms)  (0.2ms) ROLLBACK +  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.5ms) BEGIN +  (23.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.1ms) BEGIN + Fixtures Load (1.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-14 18:59:55.884435', '2019-04-14 18:59:55.884435', 'MyString', TRUE), (298486374, 'MyString', '2019-04-14 18:59:55.884435', '2019-04-14 18:59:55.884435', 'MyString', TRUE) +  (0.7ms) 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 +-------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-14 18:59:55.943693"], ["updated_at", "2019-04-14 18:59:55.943693"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 11:59:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (3.4ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-14 18:59:55.971329"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 15ms (ActiveRecord: 4.1ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 11:59:55 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 11:59:55 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-14 18:59:55.992089"], ["updated_at", "2019-04-14 18:59:55.992089"], ["descriptions", "new task description"], ["completed", false]] +  (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.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-14 11:59:55 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-14 18:59:56.006108"], ["updated_at", "2019-04-14 18:59:56.006108"]] +  (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 11:59:56 -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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (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.4ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-14 18:59:56.016108"], ["updated_at", "2019-04-14 18:59:56.016108"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 11:59:56 -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/_form.html.erb (21.2ms) + Rendered tasks/edit.html.erb within layouts/application (26.5ms) +Completed 200 OK in 180ms (Views: 173.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/-1" for 127.0.0.1 at 2019-04-14 11:59: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 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-14 11:59:56 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.4ms) +  (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 11:59:56 -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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 1.5ms) +  (0.2ms) 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 11:59:56 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.7ms) + Rendered tasks/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.7ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 18:59:56.240269"], ["updated_at", "2019-04-14 18:59:56.240269"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 11:59:56 -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.1ms) +Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (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 11:59: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 1ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.7ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 18:59:56.257924"], ["updated_at", "2019-04-14 18:59:56.257924"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968/complete" for 127.0.0.1 at 2019-04-14 11:59:56 -0700 +Processing by TasksController#complete as HTML + Parameters: {"id"=>"980190968"} + 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.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 18:59:56.261404"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (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.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-14 19:03:08.316871', '2019-04-14 19:03:08.316871', 'MyString', TRUE), (298486374, 'MyString', '2019-04-14 19:03:08.316871', '2019-04-14 19:03:08.316871', 'MyString', TRUE) +  (0.8ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:03:08.338698"], ["updated_at", "2019-04-14 19:03:08.338698"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963/complete" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#complete as HTML + Parameters: {"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 "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 19:03:08.369801"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 15ms (ActiveRecord: 1.4ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-14 19:03:08.380411"], ["updated_at", "2019-04-14 19:03:08.380411"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 12:03:08 -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/_form.html.erb (19.3ms) + Rendered tasks/edit.html.erb within layouts/application (23.5ms) +Completed 200 OK in 166ms (Views: 162.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/-1" for 127.0.0.1 at 2019-04-14 12:03: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.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-14 19:03:08.556679"], ["updated_at", "2019-04-14 19:03:08.556679"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190965"} + Task Load (0.7ms) 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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-14 19:03:08.563055"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 5ms (ActiveRecord: 1.2ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (10.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-14 19:03:08.588271"], ["updated_at", "2019-04-14 19:03:08.588271"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-14 12:03: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 12:03: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:03:08.623872"], ["updated_at", "2019-04-14 19:03:08.623872"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 12:03:08 -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 (0.9ms) +Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (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 12:03:08 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-14 19:03:08.636422"], ["updated_at", "2019-04-14 19:03:08.636422"]] +  (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-14 12:03:08 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + 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 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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/-1" for 127.0.0.1 at 2019-04-14 12:03:08 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.5ms) +  (0.1ms) ROLLBACK +  (0.5ms) 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", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-14 19:03:57.091838', '2019-04-14 19:03:57.091838', 'MyString', TRUE), (298486374, 'MyString', '2019-04-14 19:03:57.091838', '2019-04-14 19:03:57.091838', 'MyString', TRUE) +  (1.0ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (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 12:03:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-14 19:03:57.127563"], ["updated_at", "2019-04-14 19:03:57.127563"], ["descriptions", "new task description"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 12ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-14 19:03:57.135828"], ["updated_at", "2019-04-14 19:03:57.135828"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 12:03:57 -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/_form.html.erb (6.7ms) + Rendered tasks/edit.html.erb within layouts/application (9.2ms) +Completed 200 OK in 133ms (Views: 130.8ms | ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 12:03: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 1ms (ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:03:57.278787"], ["updated_at", "2019-04-14 19:03:57.278787"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965/complete" for 127.0.0.1 at 2019-04-14 12:03:57 -0700 +Processing by TasksController#complete 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 "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 19:03:57.284192"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (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-14 12:03: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 12:03: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-14 12:03:57 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.2ms | 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.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:03:57.313856"], ["updated_at", "2019-04-14 19:03:57.313856"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 12:03:57 -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 (0.9ms) +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (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 12:03:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-14 19:03:57.326715"], ["updated_at", "2019-04-14 19:03:57.326715"]] +  (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-14 12:03:57 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", nil], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-14 12:03:57 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", nil], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-14 19:03:57.338962"], ["updated_at", "2019-04-14 19:03:57.338962"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:03:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190968"} + 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.2ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-14 19:03:57.342164"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:03:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.2ms) ROLLBACK +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.9ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-14 19:06:30.988792', '2019-04-14 19:06:30.988792', 'MyString', TRUE), (298486374, 'MyString', '2019-04-14 19:06:30.988792', '2019-04-14 19:06:30.988792', 'MyString', TRUE) +  (0.5ms) 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 +----------------------------- +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.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-14 19:06:31.024934"], ["updated_at", "2019-04-14 19:06:31.024934"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 12:06:31 -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/_form.html.erb (4.5ms) + Rendered tasks/edit.html.erb within layouts/application (7.8ms) +Completed 200 OK in 126ms (Views: 119.1ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 12:06: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::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-14 12:06:31 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not 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.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-14 19:06:31.174572"], ["updated_at", "2019-04-14 19:06:31.174572"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190964" for 127.0.0.1 at 2019-04-14 12:06:31 -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.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (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 12:06:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-14 19:06:31.189074"], ["updated_at", "2019-04-14 19:06:31.189074"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:06:31.194642"], ["updated_at", "2019-04-14 19:06:31.194642"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 12:06:31 -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.2ms) +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-14 12:06:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 12:06: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 12:06:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 2ms (Views: 1.8ms | 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-14 12:06:31 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-14 19:06:31.228016"], ["updated_at", "2019-04-14 19:06:31.228016"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967/complete" for 127.0.0.1 at 2019-04-14 12:06:31 -0700 +Processing by TasksController#complete 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 "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-14 19:06:31.232254"], ["id", 980190967]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-14 19:06:31.237491"], ["updated_at", "2019-04-14 19:06:31.237491"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:06:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190968"} + 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.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-14 19:06:31.240999"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 12:06:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (0.1ms) ROLLBACK From 8fdcbeb4d50bdbbecce428b62bfeb4354e8b02fd Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Sun, 14 Apr 2019 23:53:55 -0700 Subject: [PATCH 09/14] Some change --- log/test.log | 194 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 194 insertions(+) diff --git a/log/test.log b/log/test.log index db96959c6..eb838ca2b 100644 --- a/log/test.log +++ b/log/test.log @@ -10783,3 +10783,197 @@ Processing by TasksController#update as HTML Redirected to http://www.example.com/tasks Completed 302 Found in 1ms (ActiveRecord: 0.1ms)  (0.1ms) ROLLBACK +  (0.5ms) 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 (1.3ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-04-15 06:52:59.854233', '2019-04-15 06:52:59.854233', 'MyString', TRUE), (298486374, 'MyString', '2019-04-15 06:52:59.854233', '2019-04-15 06:52:59.854233', 'MyString', TRUE) +  (1.6ms) COMMIT +  (0.2ms) 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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-15 06:52:59.881243"], ["updated_at", "2019-04-15 06:52:59.881243"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963/complete" for 127.0.0.1 at 2019-04-14 23:52:59 -0700 +Processing by TasksController#complete as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) 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 "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 06:52:59.908332"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 13ms (ActiveRecord: 1.2ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-04-15 06:52:59.918371"], ["updated_at", "2019-04-15 06:52:59.918371"]] +  (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 23:52:59 -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.2ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-14 23:52:59 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "Clean"], ["created_at", "2019-04-15 06:52:59.931493"], ["updated_at", "2019-04-15 06:52:59.931493"], ["descriptions", "entire apartment"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 23:52:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-04-15 06:52:59.935692"], ["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-14 23:52:59 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-14 23:52:59 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 251ms (Views: 246.9ms | 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-14 23:53:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (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 (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-04-15 06:53:00.209797"], ["updated_at", "2019-04-15 06:53:00.209797"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 23:53:00 -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/_form.html.erb (19.0ms) + Rendered tasks/edit.html.erb within layouts/application (22.7ms) +Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 23:53:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.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 23:53:00 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.0ms) + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.6ms | 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" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "sample task"], ["created_at", "2019-04-15 06:53:00.255340"], ["updated_at", "2019-04-15 06:53:00.255340"], ["descriptions", "this is an example for a test"], ["completed", false]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 23:53:00 -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.1ms) +Completed 200 OK in 5ms (Views: 2.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 23:53:00 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) +  (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-14 23:53:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions", "completed") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["task", "new task"], ["created_at", "2019-04-15 06:53:00.271940"], ["updated_at", "2019-04-15 06:53:00.271940"], ["descriptions", "new task description"], ["completed", false]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK From 1bc6dfc4baeb9ed4ec1e58f21773455cc7d7ada7 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Tue, 16 Apr 2019 19:06:23 -0700 Subject: [PATCH 10/14] Added link buttons to point to each page. Created partial form for passengers and rendered it in New and Edit views --- app/views/tasks/show.html.erb | 4 +- log/development.log | 219 ++++++++++++++++++++++++++++++++++ 2 files changed, 220 insertions(+), 3 deletions(-) diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index 9ae1b9aca..e7df849b4 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -10,11 +10,9 @@ Completion status: <%= @task.completed %>
<%= link_to "Back to Tasks", tasks_path, class: "home-button" %>
- + <%= button_to "Mark Complete", {action: "complete", id: @task.id}, method: :patch, class: "complete-button" %> - <%= button_to "Mark Incomplete", {action: "complete", id: @task.id}, method: :patch, class: "incomplete-button" %>
- <%= link_to "Edit Task", edit_task_path, class: "edit-button" %>
<%= button_to "Delete #{@task.task}", task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"}, class: "delete-button" %>
\ No newline at end of file diff --git a/log/development.log b/log/development.log index aaf906e87..4ab3ef2a9 100644 --- a/log/development.log +++ b/log/development.log @@ -7795,3 +7795,222 @@ Processing by TasksController#index as HTML Completed 200 OK in 27ms (Views: 23.8ms | ActiveRecord: 0.3ms) +Started GET "/jobs" for ::1 at 2019-04-15 10:10:12 -0700 +  (4.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActionController::RoutingError (No route matches [GET] "/jobs"): + +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-15 10:10:13 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (18.5ms) +Completed 200 OK in 302ms (Views: 285.0ms | ActiveRecord: 6.5ms) + + +Started GET "/t" for ::1 at 2019-04-15 10:10:14 -0700 + +ActionController::RoutingError (No route matches [GET] "/t"): + +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 PATCH "/tasks/1/complete" for ::1 at 2019-04-15 10:10:23 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"AsEqDH2Ktb+vifaoGxOOtBnqOvtjFd9aQyi1uGHL1cgxcM2qH6gh6IxA1Ng7acs7bSKOUKoa6XCVW30Qvfg3yA==", "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:55 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (5.0ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 17:10:23.100575"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:59 +  (5.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 19ms (ActiveRecord: 11.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:10: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 31ms (Views: 28.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-15 10:10:27 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"B89x2ydX312Cjab8e3Q1nCbN3foBj0kzIFnOvjgBVZY0fpZ9RXVLCqFEhIxbDnATUgVpUciAfxn2KgYW5DK3lg==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:55 +  (2.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-15 17:10:27.688363"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:59 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 3.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:10: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 24ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-15 10:10:35 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"uNZB16BdigDjn9xExLZT8xls9/bbmT/UkE8uBZRq63SLZ6Zxwn8eV8BW/jTkzBZ8baRDXRKWCf5GPOatSFkJdA==", "id"=>"6"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:55 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 17:10:35.625736"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:59 +  (2.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 4.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:10: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 27ms (Views: 22.7ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-15 10:10:38 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"WxhnX5tYQY33Ay9f1kftWbooKL5ic2FpSM0SaH18vL1oqYD5+XrV2tTKDS/2PajWzuCcFat8V0OevtrAoU9evQ==", "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:55 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:59 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-15 17:10:38.530170"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:59 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:59 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 10:10: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 10:13:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 41ms (Views: 34.0ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 10:14:31 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 32ms (Views: 28.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 10:14:46 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 18.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 10:14:58 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-15 10:15:32 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + From be193762abace21e39e8b7d14e5d81ac876a0083 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Tue, 30 Apr 2019 10:46:33 -0700 Subject: [PATCH 11/14] Made changes to code to make it better and removed dead code --- app/controllers/tasks_controller.rb | 2 - app/views/tasks/index.html.erb | 7 +- log/development.log | 107 ++++++++++++++++++++++++++++ 3 files changed, 112 insertions(+), 4 deletions(-) diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index b501216cf..b836219ac 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -16,7 +16,6 @@ def show def new @task = Task.new @task.task = "I have to... " - @task.completed = "Incomplete" end def create @@ -54,7 +53,6 @@ def update def complete task = Task.find_by(id: params[:id]) - task.completed? task.toggle(:completed) task.save diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index ffd6682c2..37e402ebb 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -3,9 +3,12 @@ <% @tasks.each do |todo_item| %>
  • Completion status: <%= todo_item.completed %>
    + <% if todo_item.completed == false %> + <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> + <% else %> + <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
    + <% end %> <%= link_to todo_item.task, task_path(todo_item.id) %>, - <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> - <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
  • <% end %> diff --git a/log/development.log b/log/development.log index 4ab3ef2a9..1e5bd14d1 100644 --- a/log/development.log +++ b/log/development.log @@ -8014,3 +8014,110 @@ Processing by TasksController#show as HTML Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.2ms) +Started GET "/" for ::1 at 2019-04-30 10:42:58 -0700 +  (4.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (2.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (24.7ms) +Completed 200 OK in 296ms (Views: 262.6ms | ActiveRecord: 12.2ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-30 10:45:33 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Ql7Jzni2uMx1TXFuhewkrFu5vteeZT4fWXSBv/AwUbH+fAY04GAGBn7DqdGb3YmiL6zItzqQPd7lT/NyuJKwMA==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 17:45:33.655816"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (6.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 16ms (ActiveRecord: 7.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 10:45:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 51ms (Views: 48.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-30 10:45:38 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"IWc1nTFV2gs29ZtrlXmPgSVJeijzRS0BPaqKloNFdbCdRfpnqYNkwT17Q9SLSCKPUVwMSFewLsCBkfhby+eUMQ==", "id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (1.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-30 17:45:38.109223"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 10:45: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 24ms (Views: 20.4ms | ActiveRecord: 1.0ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-30 10:45:43 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"c6GH9nvdjrzswGUf0s4Uo5aP3ywFEFHqRAIBWS4ugETPg0gM4wswdudOvaDM/7mt4pqpTKHlUiv4OXOUZoxhxQ==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.7ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 17:45:43.257233"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:57 +  (1.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 3.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 10:45: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 24ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-30 10:45:46 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"zbKqVz5zwKx7itBW3AlGIZFPAR64CtwTE3CK6LEG56FxkGWtpqV+ZnAECOnCOOsv5Vp3fhz/39KvS/gl+aQGIA==", "id"=>"2"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:54 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-30 17:45:46.596744"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 1.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 10:45: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.4ms) + + From 52037076ff80b59d906376a53d147f6efec17b70 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Tue, 30 Apr 2019 10:50:51 -0700 Subject: [PATCH 12/14] Removed conditional from main page --- app/views/tasks/index.html.erb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 37e402ebb..9c901c56c 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -3,11 +3,8 @@ <% @tasks.each do |todo_item| %>
  • Completion status: <%= todo_item.completed %>
    - <% if todo_item.completed == false %> - <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> - <% else %> - <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
    - <% end %> + <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> + <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
    <%= link_to todo_item.task, task_path(todo_item.id) %>,
  • From a53ddb68c0469f9afca401c9cb52877018e6cb50 Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Tue, 30 Apr 2019 16:11:01 -0700 Subject: [PATCH 13/14] Added default value to completed column --- app/controllers/tasks_controller.rb | 9 +- app/views/tasks/index.html.erb | 10 +- app/views/tasks/show.html.erb | 23 +- config/routes.rb | 2 +- ...2234356_add_completed_column_for_toggle.rb | 2 +- ...add_completed_column_with_default_value.rb | 5 + db/schema.rb | 4 +- log/development.log | 590 ++++++++++++++++++ 8 files changed, 622 insertions(+), 23 deletions(-) create mode 100644 db/migrate/20190430223630_add_completed_column_with_default_value.rb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb index b836219ac..8160dbcdc 100644 --- a/app/controllers/tasks_controller.rb +++ b/app/controllers/tasks_controller.rb @@ -14,8 +14,7 @@ def show end def new - @task = Task.new - @task.task = "I have to... " + @task = Task.new(task: "I have to ") end def create @@ -50,13 +49,15 @@ def update end end - def complete + def mark_complete task = Task.find_by(id: params[:id]) task.toggle(:completed) task.save + task.touch - redirect_to tasks_path + # redirect_to tasks_path + redirect_back(fallback_location: tasks_path) end def destroy diff --git a/app/views/tasks/index.html.erb b/app/views/tasks/index.html.erb index 9c901c56c..afbebdf2d 100644 --- a/app/views/tasks/index.html.erb +++ b/app/views/tasks/index.html.erb @@ -2,10 +2,14 @@
      <% @tasks.each do |todo_item| %>
    • - Completion status: <%= todo_item.completed %>
      - <%= button_to "Mark Complete", {action: "complete", id: todo_item.id}, method: :patch, class: "complete-button" %> - <%= button_to "Mark Incomplete", {action: "complete", id: todo_item.id}, method: :patch, class: "incomplete-button" %>
      <%= link_to todo_item.task, task_path(todo_item.id) %>, + + Completion status: <%= todo_item.completed %>
      + <% if todo_item.completed == false %> + <%= button_to "Mark Complete", mark_complete_path(todo_item.id), method: :patch, class: "complete-button"%> + <% else %> + <%= button_to "Mark Incomplete", mark_complete_path(todo_item.id), method: :patch, class: "incomplete-button" %>
      + <% end %>
    • <% end %> diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb index e7df849b4..79d0a1b8c 100644 --- a/app/views/tasks/show.html.erb +++ b/app/views/tasks/show.html.erb @@ -1,18 +1,17 @@ -

      -Task: <%= @task.task %>, -

      -

      -Description: <%= @task.descriptions %> -

      -

      -Completion status: <%= @task.completed %> -

      +

      Task: <%= @task.task %>,

      +

      Description: <%= @task.descriptions %>

      + + <% if @task.completed == false %> + <%= button_to "Mark Complete", mark_complete_path(@task.id), method: :patch, class: "complete-button"%> + <% else %> +

      Completed on: <%= @task.updated_at %>

      + <%= button_to "Mark Incomplete", mark_complete_path(@task.id), method: :patch, class: "incomplete-button" %>
      + <% end %>
      <%= link_to "Back to Tasks", tasks_path, class: "home-button" %>
      - - <%= button_to "Mark Complete", {action: "complete", id: @task.id}, method: :patch, class: "complete-button" %> - <%= button_to "Mark Incomplete", {action: "complete", id: @task.id}, method: :patch, class: "incomplete-button" %>
      + <%= link_to "Edit Task", edit_task_path, class: "edit-button" %>
      + <%= button_to "Delete #{@task.task}", task_path(@task.id), method: :delete, data: {confirm: "Are you sure?"}, class: "delete-button" %>
      \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 183ad27c8..c47af72ce 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2,5 +2,5 @@ root to: "tasks#index" resources :tasks - patch "tasks/:id/complete", to: "tasks#complete", as: "mark_complete" + patch "tasks/:id/complete", to: "tasks#mark_complete", as: "mark_complete" end diff --git a/db/migrate/20190412234356_add_completed_column_for_toggle.rb b/db/migrate/20190412234356_add_completed_column_for_toggle.rb index 8f88e5da5..8c1b3c51f 100644 --- a/db/migrate/20190412234356_add_completed_column_for_toggle.rb +++ b/db/migrate/20190412234356_add_completed_column_for_toggle.rb @@ -1,5 +1,5 @@ class AddCompletedColumnForToggle < ActiveRecord::Migration[5.2] def change - add_column :tasks, :completed, :boolean + # add_column :tasks, :completed, :boolean, default: false end end diff --git a/db/migrate/20190430223630_add_completed_column_with_default_value.rb b/db/migrate/20190430223630_add_completed_column_with_default_value.rb new file mode 100644 index 000000000..0208fe0b8 --- /dev/null +++ b/db/migrate/20190430223630_add_completed_column_with_default_value.rb @@ -0,0 +1,5 @@ +class AddCompletedColumnWithDefaultValue < ActiveRecord::Migration[5.2] + def change + add_column :tasks, :completed, :boolean, default: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 22adcef19..5adca98f2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_04_12_234356) do +ActiveRecord::Schema.define(version: 2019_04_30_223630) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -20,7 +20,7 @@ t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "descriptions" - t.boolean "completed" + t.boolean "completed", default: false end end diff --git a/log/development.log b/log/development.log index 1e5bd14d1..179ab2bc1 100644 --- a/log/development.log +++ b/log/development.log @@ -8121,3 +8121,593 @@ Processing by TasksController#index as HTML Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.4ms) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (1.0ms) 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 RemoveCompletedColumn (20190430212412) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (8.5ms) ALTER TABLE "tasks" DROP COLUMN "completed" + ↳ db/migrate/20190430212412_remove_completed_column.rb:3 + ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190430212412"]] + ↳ bin/rails:9 +  (7.2ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (2.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) BEGIN + ↳ bin/rails:9 +  (0.7ms) 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.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ 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 AddCompletedColumnWithDefaultValue (20190430212625) +  (0.2ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190430212625"]] + ↳ bin/rails:9 +  (0.5ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (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.6ms) 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 +  (0.6ms) 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 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ 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 RemoveCompletedColumn (20190430223443) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (8.6ms) ALTER TABLE "tasks" DROP COLUMN "completed" + ↳ db/migrate/20190430223443_remove_completed_column.rb:3 +  (0.2ms) ROLLBACK + ↳ bin/rails:9 +  (0.2ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (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 AddCompletedColumnWithDefaultValue (20190430223630) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (26.4ms) ALTER TABLE "tasks" ADD "completed" boolean DEFAULT FALSE + ↳ db/migrate/20190430223630_add_completed_column_with_default_value.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190430223630"]] + ↳ bin/rails:9 +  (1.5ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.1ms) 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 +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Started GET "/" for ::1 at 2019-04-30 15:51:53 -0700 +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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 (20.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (38.9ms) +Completed 200 OK in 291ms (Views: 247.0ms | ActiveRecord: 27.8ms) + + +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-30 15:51:58 -0700 + +AbstractController::ActionNotFound - The action 'complete' could not be found for TasksController: + +Started POST "/__better_errors/8371c8a315c52acd/variables" for ::1 at 2019-04-30 15:51:58 -0700 +Started GET "/tasks/11" for ::1 at 2019-04-30 15:52:14 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (280.5ms) +Completed 500 Internal Server Error in 311ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007fe6d5a2f148>: + app/views/tasks/show.html.erb:14:in `_app_views_tasks_show_html_erb___710430646786917760_70314701716780' + +Started POST "/__better_errors/5186a7be42293736/variables" for ::1 at 2019-04-30 15:52:15 -0700 +Started GET "/tasks/11" for ::1 at 2019-04-30 15:53:25 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (453.8ms) +Completed 500 Internal Server Error in 466ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007fe6d64d9be8>: + app/views/tasks/show.html.erb:14:in `_app_views_tasks_show_html_erb___710430646786917760_70314707309200' + +Started POST "/__better_errors/4b00fd813580a1b0/variables" for ::1 at 2019-04-30 15:53:26 -0700 +Started GET "/" for ::1 at 2019-04-30 15:53:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 50ms (Views: 44.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-30 15:53:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (2.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (404.4ms) +Completed 500 Internal Server Error in 420ms (ActiveRecord: 2.5ms) + + + +NameError - undefined local variable or method `todo_item' for #<#:0x00007fe6d056e820>: + app/views/tasks/show.html.erb:14:in `_app_views_tasks_show_html_erb___710430646786917760_70314657283940' + +Started POST "/__better_errors/83316c718a8cf3c6/variables" for ::1 at 2019-04-30 15:53:32 -0700 +Started GET "/tasks/11" for ::1 at 2019-04-30 15:54:48 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 32ms (Views: 27.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 15:54:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 26ms (Views: 22.5ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-30 15:54:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (8.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 39ms (Views: 26.9ms | ActiveRecord: 8.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-30 15:55:02 -0700 + +AbstractController::ActionNotFound - The action 'complete' could not be found for TasksController: + +Started POST "/__better_errors/552678156497509d/variables" for ::1 at 2019-04-30 15:55:03 -0700 +Started GET "/tasks" for ::1 at 2019-04-30 15:55: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 35ms (Views: 31.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:00:57 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (22.3ms) +Completed 200 OK in 275ms (Views: 261.7ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-30 16:01:05 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (36.9ms) + Rendered tasks/new.html.erb within layouts/application (39.9ms) +Completed 200 OK in 64ms (Views: 59.9ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-30 16:01:11 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"9zaIE//9ExmgjCWWvggyTCjj7pd1Q0fP7bODXXQlljx3D05yVu76FtIlV2Y0YLS0MQ7dCO0Ry6+M44VZa3iNug==", "task"=>{"task"=>"I have to do stuff", "descriptions"=>"", "completed"=>"false"}, "commit"=>"Create Task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:23 + Task Create (5.6ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "I have to do stuff"], ["created_at", "2019-04-30 23:01:11.456325"], ["updated_at", "2019-04-30 23:01:11.456325"], ["descriptions", ""]] + ↳ app/controllers/tasks_controller.rb:23 +  (1.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:23 +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 12ms (ActiveRecord: 6.9ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-30 16:01:11 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 24ms (Views: 18.9ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/14/complete" for ::1 at 2019-04-30 16:01:15 -0700 + +AbstractController::ActionNotFound - The action 'complete' could not be found for TasksController: + +Started POST "/__better_errors/7a8bddbee50cfce3/variables" for ::1 at 2019-04-30 16:01:15 -0700 +Started GET "/" for ::1 at 2019-04-30 16:02:36 -0700 +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (15.9ms) +Completed 200 OK in 236ms (Views: 219.7ms | ActiveRecord: 4.7ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-30 16:02:40 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 40ms (Views: 23.4ms | ActiveRecord: 7.1ms) + + +Started PATCH "/tasks/14/complete" for ::1 at 2019-04-30 16:02:43 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"aWeo5xxpEnbo3NSlI3vXrCar0Ln2swinLcYYOsDcxvUYmJfN8Zl9HJNIjzlq209izj4V+WapuCIDNgGL1LD3lA==", "id"=>"14"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 23:02:43.868000"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:56 +  (0.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.9ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:02:43.873278"], ["id", 14]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 3.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:02: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 28ms (Views: 25.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-30 16:02:49 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"14"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 14], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 25ms (Views: 20.9ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:02:53 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 26ms (Views: 23.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-30 16:02:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"11"} + Task Load (12.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 41ms (Views: 24.9ms | ActiveRecord: 12.8ms) + + +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-30 16:03:00 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"EA0YWD1GPztYfHLlNTf6Lsd21ab+JaDwQO6Oiuj3fV7tyyssPeXrXASpPF8bTQla8JOlKGU3NOg8enjcdpnJoQ==", "id"=>"11"} + Task Load (2.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (0.5ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 23:03:00.060777"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:56 +  (3.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.5ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:03:00.067422"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 14ms (ActiveRecord: 7.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:03:00 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:05:31 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.5ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 230ms (Views: 216.6ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-30 16:05:37 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 31ms (Views: 23.7ms | ActiveRecord: 0.5ms) + + +Started PATCH "/tasks/6/complete" for ::1 at 2019-04-30 16:05:39 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"i9usYOFU8qZB0rNnZtSPog0ywcnzRRBl55gAYJYliAsFBx81HkMiKYqzmPSGl7NHsXZTbolZA3UwoURY5XxzVQ==", "id"=>"6"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 23:05:39.444327"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:56 +  (0.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:05:39.448410"], ["id", 6]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/6 +Completed 302 Found in 9ms (ActiveRecord: 2.7ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-30 16:05:39 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 21ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:07:05 -0700 +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/faizahusain/.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.6ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (15.8ms) +Completed 200 OK in 181ms (Views: 169.2ms | ActiveRecord: 3.7ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-30 16:07:06 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"/5OYEeX9t6x9fbfodgXmgPTkHZfCUB7f1EumDzA6Db/6BO9+kfPvH+IQhAZ8wVCdJA+CRitKd2kJb4HFuy8elw==", "id"=>"2"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (0.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 23:07:06.314263"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:56 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.3ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:07:06.319642"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 12ms (ActiveRecord: 3.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:07: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 23ms (Views: 19.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-30 16:07:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (9.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 37ms (Views: 22.6ms | ActiveRecord: 9.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:07: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 27ms (Views: 23.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-30 16:07:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (6.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 29ms (Views: 18.5ms | ActiveRecord: 6.3ms) + + +Started PATCH "/tasks/1/complete" for ::1 at 2019-04-30 16:07:16 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"ItVWZjM0xbJAeIYy8K2pXXkBWy+n8idj391kIQ1wnElJjydKJm/exwCg0+xXQqGmIQKlm05+sdjnR2dEJ7aHLg==", "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:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (0.6ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-04-30 23:07:16.925820"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:56 +  (1.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:07:16.930780"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 11ms (ActiveRecord: 4.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-30 16:07: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]] + ↳ app/controllers/tasks_controller.rb:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 19.9ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:07:20 -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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks/new" for ::1 at 2019-04-30 16:07:23 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (14.6ms) + Rendered tasks/new.html.erb within layouts/application (17.3ms) +Completed 200 OK in 43ms (Views: 40.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-30 16:07:29 -0700 +Processing by TasksController#show 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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 27ms (Views: 20.7ms | ActiveRecord: 1.5ms) + + +Started PATCH "/tasks/11/complete" for ::1 at 2019-04-30 16:07:31 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"authenticity_token"=>"nZ7lHHg9Nxefwqe83ee/UMkQ/RXpZutqoaJZtsUFuVFgWNZoeJ7jcMMX6QbznUwk/vWNm3J0f3LdNq/gW2sNrg==", "id"=>"11"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 11], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:53 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:56 + Task Update (1.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", false], ["updated_at", "2019-04-30 23:07:31.691174"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:56 +  (1.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:56 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:57 + Task Update (0.4ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-04-30 23:07:31.696721"], ["id", 11]] + ↳ app/controllers/tasks_controller.rb:57 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:57 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 12ms (ActiveRecord: 6.0ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-30 16:07:31 -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:9 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 38ms (Views: 35.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-30 16:07: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"."id" ASC + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 33ms (Views: 28.2ms | ActiveRecord: 0.3ms) + + From 505317de34f1bce706bf5b10beeaed3720064d3f Mon Sep 17 00:00:00 2001 From: Faiza Husain Date: Wed, 15 May 2019 10:49:45 -0700 Subject: [PATCH 14/14] Added .travis.yml --- .travis.yml | 4 + log/test.log | 623 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 627 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..865ea1054 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,4 @@ +language: ruby +rvm: + - 2.2 + - jruby \ No newline at end of file diff --git a/log/test.log b/log/test.log index eb838ca2b..ff6aa63b9 100644 --- a/log/test.log +++ b/log/test.log @@ -10977,3 +10977,626 @@ Completed 302 Found in 3ms (ActiveRecord: 1.0ms)  (0.2ms) SELECT COUNT(*) FROM "tasks" Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]]  (0.1ms) ROLLBACK +  (5.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.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.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]] +  (260.9ms) DROP DATABASE IF EXISTS "TaskList_test" +  (654.6ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.7ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (10.7ms) CREATE TABLE "tasks" ("id" bigserial primary key, "task" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "descriptions" character varying, "completed" boolean DEFAULT FALSE) +  (2.8ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES (20190430223630) +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES +(20190412234033), +(20190409212755), +(20190412234219), +(20190409215910), +(20190412234356), +(20190409214432); + + +  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) BEGIN + ActiveRecord::InternalMetadata Create (1.0ms) 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-05-01 05:14:50.789353"], ["updated_at", "2019-05-01 05:14:50.789353"]] +  (0.6ms) 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.2ms) BEGIN +  (0.2ms) COMMIT +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) 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.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-05-01 05:14:51.219127', '2019-05-01 05:14:51.219127', 'MyString', TRUE), (298486374, 'MyString', '2019-05-01 05:14:51.219127', '2019-05-01 05:14:51.219127', 'MyString', TRUE) +  (4.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_0001_can update an existing task +-------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "Clean"], ["created_at", "2019-05-01 05:14:51.256489"], ["updated_at", "2019-05-01 05:14:51.256489"], ["descriptions", "entire apartment"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 Update (0.3ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-05-01 05:14:51.273096"], ["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 9ms (ActiveRecord: 0.8ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-05-01 05:14:51.291220"], ["updated_at", "2019-05-01 05:14:51.291220"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (14.2ms) + Rendered tasks/edit.html.erb within layouts/application (19.7ms) +Completed 200 OK in 150ms (Views: 145.7ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-01 05:14:51.452808"], ["updated_at", "2019-05-01 05:14:51.452808"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-30 22:14:51 -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 6ms (Views: 2.1ms | ActiveRecord: 0.2ms) +  (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-30 22:14:51 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-05-01 05:14:51.479655"], ["updated_at", "2019-05-01 05:14:51.479655"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190966" for 127.0.0.1 at 2019-04-30 22:14: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.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 1.0ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-30 22:14: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.4ms) +  (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-30 22:14:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.7ms) +  (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-30 22:14:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-05-01 05:14:51.508903"], ["updated_at", "2019-05-01 05:14:51.508903"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-01 05:14:51.515127"], ["updated_at", "2019-05-01 05:14:51.515127"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968/complete" for 127.0.0.1 at 2019-04-30 22:14:51 -0700 +Processing by TasksController#mark_complete 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.4ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-05-01 05:14:51.519671"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-05-01 05:14:51.523561"], ["id", 980190968]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (1.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 (2.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-05-15 17:39:36.960758', '2019-05-15 17:39:36.960758', 'MyString', TRUE), (298486374, 'MyString', '2019-05-15 17:39:36.960758', '2019-05-15 17:39:36.960758', 'MyString', TRUE) +  (5.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 +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "Clean"], ["created_at", "2019-05-15 17:39:37.021601"], ["updated_at", "2019-05-15 17:39:37.021601"], ["descriptions", "entire apartment"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "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 (2.1ms) UPDATE "tasks" SET "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-05-15 17:39:37.051311"], ["id", 980190963]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 16ms (ActiveRecord: 3.0ms) + 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::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["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-05-15 10:39: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 191ms (Views: 186.8ms | 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-05-15 10:39:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" ORDER BY "tasks"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +Started GET "/tasks/new" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (29.2ms) + Rendered tasks/new.html.erb within layouts/application (32.9ms) +Completed 200 OK in 38ms (Views: 34.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-05-15 10:39:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-05-15 17:39:37.326687"], ["updated_at", "2019-05-15 17:39:37.326687"], ["descriptions", "new task description"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "new task"], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-15 17:39:37.335411"], ["updated_at", "2019-05-15 17:39:37.335411"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-05-15 10:39:37 -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.2ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-05-15 10:39: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 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-15 17:39:37.351573"], ["updated_at", "2019-05-15 17:39:37.351573"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966/complete" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#mark_complete 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 Update (0.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-05-15 17:39:37.354615"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.3ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-05-15 17:39:37.356643"], ["id", 980190966]] +  (4.6ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 5.5ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["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.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-05-15 17:39:37.368492"], ["updated_at", "2019-05-15 17:39:37.368492"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.4ms) + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 7ms (Views: 3.6ms | ActiveRecord: 0.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/-1" for 127.0.0.1 at 2019-05-15 10:39:37 -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::destroy: test_0001_can delete a task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-05-15 17:39:37.386047"], ["updated_at", "2019-05-15 17:39:37.386047"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190968" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"980190968"} + 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 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/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-05-15 10:39:37 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.9ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "task", "created_at", "updated_at", "descriptions", "completed") VALUES (980190962, 'MyString', '2019-05-15 17:44:51.855374', '2019-05-15 17:44:51.855374', 'MyString', TRUE), (298486374, 'MyString', '2019-05-15 17:44:51.855374', '2019-05-15 17:44:51.855374', 'MyString', TRUE) +  (0.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.3ms) 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" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Hiking"], ["created_at", "2019-05-15 17:44:51.883925"], ["updated_at", "2019-05-15 17:44:51.883925"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-05-15 10:44:51 -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/_form.html.erb (15.2ms) + Rendered tasks/edit.html.erb within layouts/application (18.3ms) +Completed 200 OK in 234ms (Views: 225.7ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-05-15 10:44:52 -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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "Clean"], ["created_at", "2019-05-15 17:44:52.137016"], ["updated_at", "2019-05-15 17:44:52.137016"], ["descriptions", "entire apartment"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"980190964"} + Task Load (0.4ms) 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 "task" = $1, "descriptions" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["task", "Cleaning"], ["descriptions", "My apartment"], ["updated_at", "2019-05-15 17:44:52.151759"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 1.0ms) + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started PATCH "/tasks/999?task%5Bcompleted%5D=false&task%5Bdescriptions%5D=My+apartment&task%5Btask%5D=Cleaning" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#update as HTML + Parameters: {"task"=>{"completed"=>"false", "descriptions"=>"My apartment", "task"=>"Cleaning"}, "id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------- +TasksController::destroy: test_0002_returns an error for invalid id +------------------------------------------------------------------- +Started DELETE "/tasks/999" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"id"=>"999"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 999], ["LIMIT", 1]] +Completed 404 Not 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.3ms) INSERT INTO "tasks" ("task", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["task", "Exercise!"], ["created_at", "2019-05-15 17:44:52.169092"], ["updated_at", "2019-05-15 17:44:52.169092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started DELETE "/tasks/980190965" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#destroy as HTML + Parameters: {"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 Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190965]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------------------------- +TasksController::complete: test_0001_mark-complete button changes status of task from false to true +--------------------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-15 17:44:52.179596"], ["updated_at", "2019-05-15 17:44:52.179596"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966/complete" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#mark_complete as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "completed" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completed", true], ["updated_at", "2019-05-15 17:44:52.182878"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.2ms) UPDATE "tasks" SET "updated_at" = $1 WHERE "tasks"."id" = $2 [["updated_at", "2019-05-15 17:44:52.185067"], ["id", 980190966]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"task"=>"new task", "descriptions"=>"new task description", "completed"=>"false"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.2ms) INSERT INTO "tasks" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "new task"], ["created_at", "2019-05-15 17:44:52.193936"], ["updated_at", "2019-05-15 17:44:52.193936"], ["descriptions", "new task description"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."task" = $1 LIMIT $2 [["task", "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-05-15 10:44:52 -0700 +Processing by TasksController#new as HTML + Rendering tasks/new.html.erb within layouts/application + Rendered tasks/_form.html.erb (1.1ms) + Rendered tasks/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-05-15 10:44: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-05-15 10:44: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"."id" ASC + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) 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" ("task", "created_at", "updated_at", "descriptions") VALUES ($1, $2, $3, $4) RETURNING "id" [["task", "sample task"], ["created_at", "2019-05-15 17:44:52.226337"], ["updated_at", "2019-05-15 17:44:52.226337"], ["descriptions", "this is an example for a test"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190968" for 127.0.0.1 at 2019-05-15 10:44:52 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.1ms) 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 (0.9ms) +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.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-05-15 10:44:52 -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