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..87eed6fb9 --- /dev/null +++ b/Gemfile @@ -0,0 +1,83 @@ +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 + +gem 'rb-readline' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 000000000..b7ec2d01b --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,276 @@ +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) + rb-readline (0.5.5) + 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) + rb-readline + 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.16.6 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/javascripts/tasks.js b/app/assets/javascripts/tasks.js new file mode 100644 index 000000000..dee720fac --- /dev/null +++ b/app/assets/javascripts/tasks.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css new file mode 100644 index 000000000..d05ea0f51 --- /dev/null +++ b/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's + * vendor/assets/stylesheets directory can be referenced here using a relative path. + * + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/app/assets/stylesheets/tasks.scss b/app/assets/stylesheets/tasks.scss new file mode 100644 index 000000000..c5e7712d4 --- /dev/null +++ b/app/assets/stylesheets/tasks.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Tasks controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/channels/application_cable/channel.rb b/app/channels/application_cable/channel.rb new file mode 100644 index 000000000..d67269728 --- /dev/null +++ b/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/app/channels/application_cable/connection.rb b/app/channels/application_cable/connection.rb new file mode 100644 index 000000000..0ff5442f4 --- /dev/null +++ b/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 000000000..09705d12a --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,2 @@ +class ApplicationController < ActionController::Base +end diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/controllers/tasks_controller.rb b/app/controllers/tasks_controller.rb new file mode 100644 index 000000000..b629af776 --- /dev/null +++ b/app/controllers/tasks_controller.rb @@ -0,0 +1,116 @@ +class TasksController < ApplicationController + def root + @message = 'Hello world!' + end + + def show + # This is the ruby try-catch. + # If Task.find throws an exception + # (e.g., can't find a task with that id) + # then we can catch the exception and + # redirect the user to the homepage with a message. + begin + @task = Task.find(params['id']) + rescue + flash[:error] = "Could not find task with id: #{params['id']}" #not printing??? why! + redirect_to tasks_path + return + end + end + + def index + @tasks = Task.all + end + + def create + unless params.key?(:task) + @task = Task.new + else + @task = Task.new( + name: params[:task][:name], + description: params[:task][:description] + ) + if @task.save + new_task = Task.find_by(name: @task.name) + redirect_to task_path(new_task.id) + else + render :new + end + end + end + + def edit + begin + @task = Task.find(params['id']) + rescue + flash[:error] = "Could not find task with id: #{params['id']}" + redirect_to tasks_path + return + end + end + + def update + begin + @task = Task.find(params[:id]) + rescue + flash[:error] = "Could not find task with id: #{params['id']}" + redirect_to tasks_path + return + end + + begin + if params[:task].key?(:completion_date) + @task.update( + name: params[:task][:name], + description: params[:task][:description], + completion_date: params[:task][:completion_date] + ) + else + @task.update( + name: params[:task][:name], + description: params[:task][:description] + ) + end + redirect_to task_path(params[:id]) + rescue + render :new + return + end + end + + def toggle_complete + begin + @task = Task.find(params[:id]) + rescue + flash[:error] = "Could not find task with id: #{params['id']}" + redirect_to tasks_path + return + end + + if @task.completion_date.nil? + @task.update( + completion_date: Date.today + ) + else + @task.update( + completion_date: nil + ) + end + + redirect_to tasks_path + end + + def delete + begin + @task = Task.find(params[:id]) + rescue + # make this into a method if i have time. to dry it up + flash[:error] = "Could not find task with id: #{params['id']}" + redirect_to tasks_path + return + end + + @task.destroy + redirect_to tasks_path + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 000000000..de6be7945 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/app/helpers/tasks_helper.rb b/app/helpers/tasks_helper.rb new file mode 100644 index 000000000..ce894d00c --- /dev/null +++ b/app/helpers/tasks_helper.rb @@ -0,0 +1,2 @@ +module TasksHelper +end diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb new file mode 100644 index 000000000..a009ace51 --- /dev/null +++ b/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb new file mode 100644 index 000000000..286b2239d --- /dev/null +++ b/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/app/models/application_record.rb b/app/models/application_record.rb new file mode 100644 index 000000000..10a4cba84 --- /dev/null +++ b/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/app/models/concerns/.keep b/app/models/concerns/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/app/models/task.rb b/app/models/task.rb new file mode 100644 index 000000000..3c2342421 --- /dev/null +++ b/app/models/task.rb @@ -0,0 +1,2 @@ +class Task < ApplicationRecord +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb new file mode 100644 index 000000000..b9ce64348 --- /dev/null +++ b/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + TaskList + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb new file mode 100644 index 000000000..cbd34d2e9 --- /dev/null +++ b/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb new file mode 100644 index 000000000..37f0bddbd --- /dev/null +++ b/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/app/views/tasks/create.html.erb b/app/views/tasks/create.html.erb new file mode 100644 index 000000000..c334f2e1d --- /dev/null +++ b/app/views/tasks/create.html.erb @@ -0,0 +1,9 @@ +

New Task

+<%= link_to 'Back to tasks', tasks_path %> +<%= form_with model: @task do |f| %> + +<%= f.submit "Save task" %> +<% end %> diff --git a/app/views/tasks/edit.html.erb b/app/views/tasks/edit.html.erb new file mode 100644 index 000000000..166007b99 --- /dev/null +++ b/app/views/tasks/edit.html.erb @@ -0,0 +1,10 @@ +

Form for editing an existing Task

+<%= link_to 'Back to all tasks', tasks_path %> +<%= form_with model: @task, class: 'edit-book' do |f| %> +

Please fill out this form to edit a task

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

Tasks

+<%= link_to 'Create task', create_task_path %> + diff --git a/app/views/tasks/root.html.erb b/app/views/tasks/root.html.erb new file mode 100644 index 000000000..7d97d11d1 --- /dev/null +++ b/app/views/tasks/root.html.erb @@ -0,0 +1,17 @@ +

Tasks

+<%= link_to 'Create task', create_task_path %> + diff --git a/app/views/tasks/show.html.erb b/app/views/tasks/show.html.erb new file mode 100644 index 000000000..5c586db01 --- /dev/null +++ b/app/views/tasks/show.html.erb @@ -0,0 +1,21 @@ +

Task <%= @task.id %>: + <% if @task.completion_date %> + <%# Checked %> + ☑ + <% else %> + <%# Unchecked %> + ☐ + <% end %> + <%= @task.name %> +

+ +<%= link_to "Edit", edit_task_path %> +
+<%= link_to "Back to all Tasks", tasks_path %> 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/.travis.yml b/config/.travis.yml new file mode 100644 index 000000000..c61ace2b7 --- /dev/null +++ b/config/.travis.yml @@ -0,0 +1,14 @@ +language: ruby + +rvm: + - 2.5.1 + +services: + - postgresql + +before_script: + - bin/rails db:create + - bin/rails db:migrate + +script: + - bin/rails test \ No newline at end of file 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..450fe2f4f --- /dev/null +++ b/config/credentials.yml.enc @@ -0,0 +1 @@ +Mw+GDKgL+VCp97r2Z80BCqDPYiKKc2zHjvpqbZ3JRYqT9nPnteH8nqctBt1BbY5dzZrhKZN4fFvmrWAo9WttpzxZsA8vbfV2/BTUnHm+weyRkEwj2H9B+6Xg6npUEWo/CiNd4eStIpIeUi0Zw+G0vff6QwpwHcYm/MPo3dCHM7Zf1dC3LDx0XdPsEs9M1XCjfyKKqhEMDT5kx5l4F+QANDcCPATkn9Rt5NDt1HEeK+HLKOaHiGaJ0yl2eZFr1RL62gvZlj8An0sDSWTDlugtHqyZRKhLOIRpq2dZTTWXGTSUOlxMomOsIMG5oDQYqgNmnujSfxGV0xRkUMxoBWKRisH+hOH32Sj6pFEAHpDifUR22MZoGtrBUGxJP/PWQVTIChSMdVZThw2KioykccsKcd6HKp+OH5e/9OAt--PCq+8R7p+fZ8di/V--/UVRWaQ0SBKEaHdM3x7XOA== \ 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..0d46f4c76 --- /dev/null +++ b/config/routes.rb @@ -0,0 +1,12 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root :to => 'tasks#show' #re-read ada lesson this looks weird + get '/tasks', to: 'tasks#index', as: 'tasks' + get '/tasks/create', to: 'tasks#create', as: 'create_task' + get '/tasks/:id', to: 'tasks#show', as: 'task' + post '/tasks', to: 'tasks#create' + get '/tasks/:id/edit', to: 'tasks#edit', as: 'edit_task' + patch '/tasks/:id', to: 'tasks#update', as: 'update_task' + delete '/tasks/:id/delete', to: 'tasks#delete', as: 'delete_task' + patch '/tasks/:id/toggle_complete', to: 'tasks#toggle_complete', as: 'toggle_complete_task' +end diff --git a/config/spring.rb b/config/spring.rb new file mode 100644 index 000000000..9fa7863f9 --- /dev/null +++ b/config/spring.rb @@ -0,0 +1,6 @@ +%w[ + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +].each { |path| Spring.watch(path) } diff --git a/config/storage.yml b/config/storage.yml new file mode 100644 index 000000000..d32f76e8f --- /dev/null +++ b/config/storage.yml @@ -0,0 +1,34 @@ +test: + service: Disk + root: <%= Rails.root.join("tmp/storage") %> + +local: + service: Disk + root: <%= Rails.root.join("storage") %> + +# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) +# amazon: +# service: S3 +# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> +# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %> +# region: us-east-1 +# bucket: your_own_bucket + +# Remember not to checkin your GCS keyfile to a repository +# google: +# service: GCS +# project: your_project +# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> +# bucket: your_own_bucket + +# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) +# microsoft: +# service: AzureStorage +# storage_account_name: your_account_name +# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> +# container: your_container_name + +# mirror: +# service: Mirror +# primary: local +# mirrors: [ amazon, google, microsoft ] diff --git a/db/migrate/20190410042427_create_tasks.rb b/db/migrate/20190410042427_create_tasks.rb new file mode 100644 index 000000000..a54f34c25 --- /dev/null +++ b/db/migrate/20190410042427_create_tasks.rb @@ -0,0 +1,11 @@ +class CreateTasks < ActiveRecord::Migration[5.2] + def change + create_table :tasks do |t| + t.string :name + t.string :description + t.date :completion_date + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 000000000..e23c28801 --- /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_10_042427) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "tasks", force: :cascade do |t| + t.string "name" + t.string "description" + t.date "completion_date" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/db/seeds.rb b/db/seeds.rb new file mode 100644 index 000000000..1beea2acc --- /dev/null +++ b/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/.keep b/log/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/log/development.log b/log/development.log new file mode 100644 index 000000000..fae3f881c --- /dev/null +++ b/log/development.log @@ -0,0 +1,3961 @@ +Started GET "/" for ::1 at 2019-04-08 22:11:07 -0700 +Processing by Rails::WelcomeController#index as HTML + Rendering /Users/chantal/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb + Rendered /Users/chantal/.rvm/gems/ruby-2.5.1/gems/railties-5.2.3/lib/rails/templates/rails/welcome/index.html.erb (10.0ms) +Completed 200 OK in 38ms (Views: 25.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 22:11:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 698ms (Views: 690.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 22:11:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 37ms (Views: 34.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 22:12:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 138ms (Views: 133.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 22:14:13 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 65ms (Views: 62.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-08 22:25:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 346ms (Views: 339.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-08 22:25:14 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 48ms (Views: 42.6ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 10:49:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 318ms (Views: 309.3ms | ActiveRecord: 0.0ms) + + +  (23.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) + ↳ bin/rails:9 +  (28.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ bin/rails:9 +  (1.3ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190409235134) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (52.1ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "complete" character varying, "completion_date" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190409235134_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190409235134"]] + ↳ bin/rails:9 +  (0.5ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]] + ↳ bin/rails:9 +  (0.2ms) BEGIN + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Create (1.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2019-04-09 23:51:56.574242"], ["updated_at", "2019-04-09 23:51:56.574242"]] + ↳ bin/rails:9 +  (0.3ms) 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 +Started GET "/tasks" for ::1 at 2019-04-09 20:51:34 -0700 +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.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 + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 82ms (Views: 74.3ms | ActiveRecord: 0.0ms) + + +  (0.2ms) SELECT pg_try_advisory_lock(4169262226251541860) + ↳ bin/rails:9 +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +Migrating to CreateTasks (20190410042427) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (49.3ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190410042427_create_tasks.rb:3 +  (0.1ms) ROLLBACK + ↳ bin/rails:9 +  (0.3ms) SELECT pg_advisory_unlock(4169262226251541860) + ↳ bin/rails:9 +  (42.3ms) 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 "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ bin/rails:9 +  (29.4ms) DROP TABLE "tasks" +  (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 +Migrating to CreateTasks (20190410042427) +  (0.2ms) BEGIN + ↳ bin/rails:9 +  (28.1ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ↳ db/migrate/20190410042427_create_tasks.rb:3 + ActiveRecord::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20190410042427"]] + ↳ bin/rails:9 +  (0.6ms) COMMIT + ↳ bin/rails:9 + ActiveRecord::InternalMetadata Load (41.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.2ms) BEGIN + Task Create (43.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Give Jesse a toy"], ["description", "Must be worth at least $100"], ["created_at", "2019-04-10 04:36:16.823663"], ["updated_at", "2019-04-10 04:36:16.823663"]] +  (40.8ms) COMMIT +  (0.2ms) BEGIN + Task Create (0.3ms) INSERT INTO "tasks" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["name", "Give Percy her flea pill"], ["created_at", "2019-04-10 04:38:54.792824"], ["updated_at", "2019-04-10 04:38:54.792824"]] +  (40.6ms) COMMIT +  (0.6ms) BEGIN + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "Go grocery shopping"], ["description", "Buy food"], ["completion_date", "2019-04-10"], ["created_at", "2019-04-10 04:42:42.781807"], ["updated_at", "2019-04-10 04:42:42.781807"]] +  (40.5ms) COMMIT +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 21:46:46 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (41.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (66.6ms) +Completed 200 OK in 398ms (Views: 335.4ms | ActiveRecord: 45.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 21:47:50 -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 31ms (Views: 26.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 21:56:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (30.2ms) +Completed 200 OK in 64ms (Views: 46.1ms | ActiveRecord: 14.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 21:57:49 -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:3 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 31ms (Views: 27.7ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 21:59: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 (1.6ms) +Completed 200 OK in 33ms (Views: 29.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 22:10:58 -0700 +  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.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 (22.9ms) +Completed 200 OK in 363ms (Views: 342.2ms | ActiveRecord: 6.5ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 22:11:20 -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 (2.9ms) +Completed 200 OK in 51ms (Views: 46.7ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 22:33:02 -0700 +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.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"=>"2"} +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms) + + + +ArgumentError - wrong number of arguments (given 0, expected 1): + app/controllers/tasks_controller.rb:19:in `show' + +Started POST "/__better_errors/91bd6b8f88080b49/variables" for 127.0.0.1 at 2019-04-09 22:33:02 -0700 +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 22:35:56 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 375ms (Views: 342.3ms | ActiveRecord: 7.3ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 22:36:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 28.6ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 22:59:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 114ms (Views: 108.4ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 23:00:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 42ms (Views: 33.4ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 23:01:38 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 43ms (Views: 38.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 23:02:17 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 39ms (Views: 34.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for 127.0.0.1 at 2019-04-09 23:02:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 48ms (Views: 42.3ms | ActiveRecord: 1.4ms) + + +Started GET "/tasks/1" for 127.0.0.1 at 2019-04-09 23:02:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 31ms (Views: 27.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3" for 127.0.0.1 at 2019-04-09 23:04:35 -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:20 + 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.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-09 23:04:55 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 35ms (Views: 24.9ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 14:04:52 -0700 +  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.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 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:28:in `' + +Started POST "/__better_errors/e3c54cb1a80231cd/variables" for 127.0.0.1 at 2019-04-10 14:04:52 -0700 + Task Load (1.6ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/" for 127.0.0.1 at 2019-04-10 14:04:57 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (3.7ms) +Completed 200 OK in 242ms (Views: 237.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2019-04-10 14:05:40 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 40ms (Views: 36.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 14:05:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '<' + --> +^ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:25: unknown regexp option - h +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:25: syntax error, unexpected tINTEGER, expecting keyword_end +#

Tasks

+ ^ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:39: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^~~~~~: + app/views/tasks/index.html.erb:23:in `' + +Started POST "/__better_errors/5480b9e5403fd3a4/variables" for 127.0.0.1 at 2019-04-10 14:05:50 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks/1" for 127.0.0.1 at 2019-04-10 14:24:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 110ms (Views: 91.9ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for 127.0.0.1 at 2019-04-10 14:24:32 -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:20 + 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.3ms) + + +Started GET "/tasks/3" for 127.0.0.1 at 2019-04-10 14:24:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 46ms (Views: 38.4ms | ActiveRecord: 1.7ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 14:25:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '<' + +^ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:23: unknown regexp option - h +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:23: syntax error, unexpected tINTEGER, expecting keyword_end +

Tasks

+ ^ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:25: syntax error, unexpected keyword_do_block, expecting keyword_end + <% @tasks.each do |task| + ^~ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:37: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^~~~~~: + app/views/tasks/index.html.erb:21:in `' + +Started POST "/__better_errors/54cd3dc2fc3a7e95/variables" for 127.0.0.1 at 2019-04-10 14:25:38 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 14:28: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:3 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 14:33: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 (2.6ms) +Completed 200 OK in 59ms (Views: 53.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks2" for ::1 at 2019-04-10 14:33:29 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/2" for ::1 at 2019-04-10 14:33:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 47ms (Views: 37.7ms | ActiveRecord: 3.0ms) + + +Started GET "/tasks2" for ::1 at 2019-04-10 14:33:40 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks2"): + +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/3" for ::1 at 2019-04-10 14:41:14 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 56ms (Views: 49.0ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 14:41:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (2.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 72ms (Views: 64.8ms | ActiveRecord: 2.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 14:41: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:3 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 39ms (Views: 33.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 14:41:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 50ms (Views: 46.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 14:41:47 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 43ms (Views: 37.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 14:41: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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 36ms (Views: 32.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 14:42:24 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 35ms (Views: 31.3ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-10 14:42:29 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.8ms) +Completed 200 OK in 35ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + +Started GET "/task" for ::1 at 2019-04-10 14:42:33 -0700 + +ActionController::RoutingError (No route matches [GET] "/task"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks" for ::1 at 2019-04-10 14:42:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 38ms (Views: 35.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 15:54:22 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 112ms (Views: 94.8ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 15:54:28 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 137ms (Views: 130.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 15:54:36 -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 50ms (Views: 46.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks2" for ::1 at 2019-04-10 16:11:22 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks2"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/2" for ::1 at 2019-04-10 16:11:27 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 57ms (Views: 48.6ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks1" for ::1 at 2019-04-10 16:13:19 -0700 + +ActionController::RoutingError (No route matches [GET] "/tasks1"): + +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-10 16:13:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 50ms (Views: 38.4ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:34:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.2ms) +Completed 200 OK in 144ms (Views: 58.5ms | ActiveRecord: 51.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:34: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:3 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 48ms (Views: 41.5ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:34:58 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 41ms (Views: 36.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 16:35:08 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 37ms (Views: 32.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:38:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 82ms (Views: 73.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:41: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 (17.4ms) +Completed 500 Internal Server Error in 29ms (ActiveRecord: 0.3ms) + + + +NoMethodError - undefined method `task' for #: + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264479180' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264479180' + +Started POST "/__better_errors/c3fcb15a5d7dbbc5/variables" for ::1 at 2019-04-10 16:41:15 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:41:39 -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.2ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.4ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259263978960' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259263978960' + +Started POST "/__better_errors/c843b0c5ccc2673a/variables" for ::1 at 2019-04-10 16:41:39 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:41:51 -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.4ms) +Completed 500 Internal Server Error in 24ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259244129500' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259244129500' + +Started POST "/__better_errors/598192b0fa757f3b/variables" for ::1 at 2019-04-10 16:41:51 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:42:05 -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:3 + Rendered tasks/index.html.erb within layouts/application (14.5ms) +Completed 500 Internal Server Error in 27ms (ActiveRecord: 1.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259263369820' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259263369820' + +Started POST "/__better_errors/3fd8fc7c4de7a847/variables" for ::1 at 2019-04-10 16:42:05 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:42:21 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.8ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259219696040' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259219696040' + +Started POST "/__better_errors/d36b8daf7447e075/variables" for ::1 at 2019-04-10 16:42:21 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:43:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264011880' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264011880' + +Started POST "/__better_errors/813596ef2bfc1548/variables" for ::1 at 2019-04-10 16:43:37 -0700 +Started GET "/tasks/1" for ::1 at 2019-04-10 16:43:44 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 66ms (Views: 61.0ms | ActiveRecord: 0.5ms) + + +Started POST "/__better_errors/813596ef2bfc1548/variables" for ::1 at 2019-04-10 16:43:51 -0700 +Started GET "/" for ::1 at 2019-04-10 16:43:53 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 58ms (Views: 53.0ms | ActiveRecord: 0.0ms) + + +Started POST "/__better_errors/813596ef2bfc1548/variables" for ::1 at 2019-04-10 16:43:55 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:44:18 -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.4ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264223540' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264223540' + +Started POST "/__better_errors/9a798df7b7fcabd6/variables" for ::1 at 2019-04-10 16:44:18 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:44:40 -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 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259265130560' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259265130560' + +Started POST "/__better_errors/ca90c17a13584abf/variables" for ::1 at 2019-04-10 16:44:40 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:46:13 -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 (4.2ms) +Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.5ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259217525960' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259217525960' + +Started POST "/__better_errors/60085b61a74a1581/variables" for ::1 at 2019-04-10 16:46:13 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:46:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (18.5ms) +Completed 500 Internal Server Error in 38ms (ActiveRecord: 5.1ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259265772920' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259265772920' + +Started POST "/__better_errors/49527d2a8edde1a9/variables" for ::1 at 2019-04-10 16:46:21 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:47: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 (4.3ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +ActionController::UrlGenerationError - No route matches {:action=>"show", :controller=>"tasks"}, missing required keys: [:id]: + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264040420' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264040420' + +Started POST "/__better_errors/cb62ece4cd2c1a14/variables" for ::1 at 2019-04-10 16:47:42 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:47:51 -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.4ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:5:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264025760' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264025760' + +Started POST "/__better_errors/b2a6a351832760fd/variables" for ::1 at 2019-04-10 16:47:51 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:50:10 -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.2ms) +Completed 200 OK in 75ms (Views: 69.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:50:35 -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.7ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.7ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259227144980' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259227144980' + +Started POST "/__better_errors/f022590ea099b07e/variables" for ::1 at 2019-04-10 16:50:35 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:51: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:3 + Rendered tasks/index.html.erb within layouts/application (8.0ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.4ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259227998600' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259227998600' + +Started POST "/__better_errors/addcb6c9c671b9b1/variables" for ::1 at 2019-04-10 16:51:52 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:52: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:3 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 56ms (Views: 50.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:53: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.2ms) +Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259264108280' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259264108280' + +Started POST "/__better_errors/c7376d77b6f08dc9/variables" for ::1 at 2019-04-10 16:53:14 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:54:05 -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 (395.4ms) +Completed 500 Internal Server Error in 406ms (ActiveRecord: 0.4ms) + + + +NameError - undefined local variable or method `id' for #<#:0x00007fcd04c24ee8>: + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259262436040' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259262436040' + +Started POST "/__better_errors/cb852167e01bca95/variables" for ::1 at 2019-04-10 16:54:06 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16: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 (3.4ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.3ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259229326600' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259229326600' + +Started POST "/__better_errors/b201e4c87d71c06e/variables" for ::1 at 2019-04-10 16:54:25 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:54: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:3 + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.4ms) + + + +ArgumentError - wrong number of arguments (given 1, expected 0): + app/views/tasks/index.html.erb:9:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259219158620' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259219158620' + +Started POST "/__better_errors/7234e363ac5dbbd4/variables" for ::1 at 2019-04-10 16:54:52 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 16:56:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 63ms (Views: 58.9ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:57:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 45ms (Views: 31.8ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:57:54 -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 (1.7ms) +Completed 200 OK in 30ms (Views: 26.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 16:58:39 -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 (5.7ms) +Completed 200 OK in 57ms (Views: 53.8ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 17:03:15 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 56ms (Views: 51.1ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 17:03:21 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 30ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 17:03:25 -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 (2.5ms) +Completed 200 OK in 40ms (Views: 34.7ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-10 20:42:31 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (4.7ms) +Completed 200 OK in 91ms (Views: 74.8ms | ActiveRecord: 1.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 20:42: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 (6.5ms) +Completed 200 OK in 57ms (Views: 53.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-10 20:42:34 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 37ms (Views: 33.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 20:42:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 46ms (Views: 43.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-10 20:42:36 -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:20 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 74ms (Views: 65.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 20:42:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (5.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (11.8ms) +Completed 200 OK in 46ms (Views: 35.0ms | ActiveRecord: 5.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 20:43: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:3 + Rendered tasks/index.html.erb within layouts/application (243.9ms) +Completed 500 Internal Server Error in 258ms (ActiveRecord: 0.4ms) + + + +NoMethodError - undefined method `get' for #<#:0x00007fcd00ac7b08> +Did you mean? gets + gem: + app/views/tasks/index.html.erb:8:in `block in _app_views_tasks_index_html_erb___3074383663909452668_70259228172980' + app/views/tasks/index.html.erb:3:in `_app_views_tasks_index_html_erb___3074383663909452668_70259228172980' + +Started POST "/__better_errors/76aebdf13dd51710/variables" for ::1 at 2019-04-10 20:43:50 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 20:45:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:3 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 100ms (Views: 97.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 20:47: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:3 + Rendered tasks/index.html.erb within layouts/application (87.7ms) +Completed 200 OK in 123ms (Views: 60.2ms | ActiveRecord: 55.1ms) + + +Started GET "/create_task" for ::1 at 2019-04-10 21:04:05 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.3ms) +Completed 200 OK in 53ms (Views: 31.2ms | ActiveRecord: 10.5ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:06:00 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.0ms) +Completed 200 OK in 43ms (Views: 28.5ms | ActiveRecord: 3.2ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:06:03 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.2ms) +Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:08:53 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.3ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:10:13 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.7ms) +Completed 200 OK in 29ms (Views: 26.9ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:11:33 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:12:21 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started POST "/tasks" for ::1 at 2019-04-10 21:25:56 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"JLUwFdzXolJ09dI66z2r5z8J+E+MbVwHzY6THR1MebWy54EzRAqUM8+0UKHz5iJz0PAbtBUQGCmGDqYUUYqpOw==", "task"=>{"name"=>"Hangout with friends", "description"=>" go see sister"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:19 + Task Create (40.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Hangout with friends"], ["description", " go see sister"], ["created_at", "2019-04-11 04:25:56.975016"], ["updated_at", "2019-04-11 04:25:56.975016"]] + ↳ app/controllers/tasks_controller.rb:19 +  (2.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:19 +Redirected to http://localhost:3000/ +Completed 302 Found in 64ms (ActiveRecord: 50.8ms) + + +Started GET "/" for ::1 at 2019-04-10 21:25:57 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-10 21:29:46 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 38ms (Views: 35.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:29:55 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected '<', expecting keyword_end +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:4: syntax error, unexpected keyword_do_block, expecting keyword_end + <% @tasks.each do |task| @output_buffer.safe_a... + ^~ +/Users/chantal/Google Drive/ada/projects/TaskList/app/views/tasks/index.html.erb:16: syntax error, unexpected keyword_ensure, expecting end-of-input + ensure + ^~~~~~: + app/views/tasks/index.html.erb:3:in `' + +Started POST "/__better_errors/4d2af93ae82a8100/variables" for ::1 at 2019-04-10 21:29:55 -0700 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/chantal/.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-10 21:32:02 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 31ms (Views: 26.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:32:04 -0700 +Processing by TasksController#create as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:16:in `create' + +Started POST "/__better_errors/7af22522b78cb067/variables" for ::1 at 2019-04-10 21:32:04 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 21:32:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:32:18 -0700 +Processing by TasksController#create as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:16:in `create' + +Started POST "/__better_errors/635114f1b3c97f1f/variables" for ::1 at 2019-04-10 21:32:18 -0700 +Started GET "/tasks" for ::1 at 2019-04-10 21:32:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 43ms (Views: 40.1ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:32:25 -0700 +Processing by TasksController#create as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:16:in `create' + +Started POST "/__better_errors/bd68537ea7f5b5ee/variables" for ::1 at 2019-04-10 21:32:25 -0700 +Started GET "/tasks/create" for ::1 at 2019-04-10 21:32:49 -0700 +Processing by TasksController#create as HTML +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:16:in `create' + +Started POST "/__better_errors/4840522c79303043/variables" for ::1 at 2019-04-10 21:32:49 -0700 +Started GET "/tasks/create" for ::1 at 2019-04-10 21:36:50 -0700 +Processing by TasksController#create as HTML +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + + + +NoMethodError - undefined method `[]' for nil:NilClass: + app/controllers/tasks_controller.rb:19:in `create' + +Started POST "/__better_errors/c676ed12f3d9a967/variables" for ::1 at 2019-04-10 21:36:51 -0700 +Started GET "/tasks/create" for ::1 at 2019-04-10 21:37:17 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.1ms) +Completed 200 OK in 51ms (Views: 48.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:39:38 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (3.7ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:40:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (13.7ms) +Completed 200 OK in 53ms (Views: 29.0ms | ActiveRecord: 6.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:40: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:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 39ms (Views: 35.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-10 21:40:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 30ms (Views: 25.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:40: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:4 + Rendered tasks/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 34ms (Views: 29.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:40:40 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.2ms) +Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks/create" for ::1 at 2019-04-10 21:41:18 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks/create"): + +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/create" for ::1 at 2019-04-10 21:41:47 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (8.8ms) +Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks/create" for ::1 at 2019-04-10 21:41:52 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"uYVmBzlBa/WmKbpliMzUjGZcNBOwd/UxgmUAzkLbn+4v19choZxdlB1oOP6QF10YiaXX6CkKsR/J5TXHDh1PYA==", "name"=>"go to diva espresso", "description"=>"try new spring drinks", "commit"=>"Save task"} + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.5ms) +Completed 200 OK in 35ms (Views: 32.3ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:43:03 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.7ms) +Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:43:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (9.0ms) +Completed 200 OK in 49ms (Views: 30.4ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:43:08 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (3.3ms) +Completed 200 OK in 40ms (Views: 38.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:44:28 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.8ms) +Completed 200 OK in 59ms (Views: 36.0ms | ActiveRecord: 10.5ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:44:45 -0700 + +ActionController::RoutingError (No route matches [POST] "/tasks"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/create" for ::1 at 2019-04-10 21:45:32 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.3ms) +Completed 200 OK in 37ms (Views: 27.5ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:45:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kS2W6jZHgAsf+IHCTfG3kdk4Z6FCIJzJztb/awJ+ay4HfyfMrpq2aqS5A1lVKj4FNsGEWttd2OeFVspiTri7oA==", "task"=>{"name"=>"Go to diva espresso", "description"=>"try new spring drinks"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:24 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Go to diva espresso"], ["description", "try new spring drinks"], ["created_at", "2019-04-11 04:45:34.308060"], ["updated_at", "2019-04-11 04:45:34.308060"]] + ↳ app/controllers/tasks_controller.rb:24 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:24 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 44ms (ActiveRecord: 41.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:45:34 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:46: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:4 + Rendered tasks/index.html.erb within layouts/application (15.8ms) +Completed 200 OK in 46ms (Views: 37.9ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:46:34 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.0ms) +Completed 200 OK in 41ms (Views: 38.4ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:46:51 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zfFdkztHUB66pvmc0Hflh4juXo+KXi4e93XBU4VD/vy2SwtfTYvWxJOQVsEtwFwahB3a3dt28MooXIgK7Me70A==", "task"=>{"name"=>"Buy Percy a new treat bag", "description"=>"Lighter and more compact"}, "commit"=>"Save task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Buy Percy a new treat bag"], ["description", "Lighter and more compact"], ["created_at", "2019-04-11 04:46:51.189087"], ["updated_at", "2019-04-11 04:46:51.189087"]] + ↳ app/controllers/tasks_controller.rb:22 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:46:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-10 21:46:54 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 36ms (Views: 29.3ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:47: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:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 48ms (Views: 41.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/6" for ::1 at 2019-04-10 21:47:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"6"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 6], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 47ms (Views: 44.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:53:04 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (30.6ms) +Completed 200 OK in 75ms (Views: 54.9ms | ActiveRecord: 14.4ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-10 21:53:05 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.5ms) +Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:53:34 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nuFiKho8iAIj0FalMmAoid5a3o+d4AE7xrXhmJZQ0T/lWzTmbPAO2Arm+fjP15EU0qla3czI3+8ZnKjB/9SUEw==", "task"=>{"name"=>"Delete this task", "description"=>"With a vengeance"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (41.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "With a vengeance"], ["created_at", "2019-04-11 04:53:34.328759"], ["updated_at", "2019-04-11 04:53:34.328759"]] + ↳ app/controllers/tasks_controller.rb:22 +  (1.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 +Completed 500 Internal Server Error in 49ms (ActiveRecord: 42.8ms) + + + +NoMethodError - undefined method `id' for true:TrueClass: + app/controllers/tasks_controller.rb:24:in `create' + +Started POST "/__better_errors/89c8de877264a085/variables" for ::1 at 2019-04-10 21:53:34 -0700 +Started GET "/tasks/create" for ::1 at 2019-04-10 21:55:57 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.7ms) +Completed 200 OK in 71ms (Views: 43.3ms | ActiveRecord: 9.7ms) + + +Started POST "/tasks" for ::1 at 2019-04-10 21:56:02 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BWPc66OBffXeDPy7RNjvouughgphDby9Kx0ta5S0vz6TMW3NO1xLlGVNfiBcA2Y2BFll8fhw+JNgnRhi2HJvsA==", "task"=>{"name"=>"Delete this task", "description"=>"With a vengeance"}, "commit"=>"Save task"} +  (3.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:22 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "With a vengeance"], ["created_at", "2019-04-11 04:56:02.850720"], ["updated_at", "2019-04-11 04:56:02.850720"]] + ↳ app/controllers/tasks_controller.rb:22 +  (7.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:22 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Delete this task"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:23 +Redirected to http://localhost:3000/tasks/7 +Completed 302 Found in 19ms (ActiveRecord: 11.8ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-10 21:56:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 27ms (Views: 23.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-10 21:57:32 -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:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 33ms (Views: 29.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:57:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 40ms (Views: 35.7ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/8" for ::1 at 2019-04-10 21:57:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"8"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 27ms (Views: 23.5ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:57: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:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 51ms (Views: 46.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/7" for ::1 at 2019-04-10 21:57:44 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"7"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 7], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 29ms (Views: 25.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-10 21:57:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 33ms (Views: 30.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:05:08 -0700 +  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end: + app/controllers/tasks_controller.rb:36:in `' + +Started POST "/__better_errors/a2edf35dcd886818/variables" for 127.0.0.1 at 2019-04-10 22:05:08 -0700 +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:05:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.5ms) +Completed 200 OK in 266ms (Views: 252.1ms | ActiveRecord: 4.1ms) + + +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:05:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:7 +Completed 404 Not Found in 7ms (ActiveRecord: 0.8ms) + + + +ActiveRecord::RecordNotFound - Couldn't find Task with 'id'=-1: + app/controllers/tasks_controller.rb:7:in `show' + +Started POST "/__better_errors/41bc28ace6e11b3a/variables" for 127.0.0.1 at 2019-04-10 22:05:30 -0700 +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:06:53 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:8 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 7.1ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:06: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:4 + Rendered tasks/index.html.erb within layouts/application (10.2ms) +Completed 200 OK in 54ms (Views: 48.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:09:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 7ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:09: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:4 + Rendered tasks/index.html.erb within layouts/application (9.1ms) +Completed 200 OK in 59ms (Views: 54.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:11:57 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (14.4ms) +Completed 200 OK in 75ms (Views: 64.4ms | ActiveRecord: 4.3ms) + + +Started GET "/task/-1" for 127.0.0.1 at 2019-04-10 22:12:01 -0700 + +ActionController::RoutingError (No route matches [GET] "/task/-1"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:12:08 -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:13 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:12: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:4 + Rendered tasks/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 40ms (Views: 36.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:12: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:4 + Rendered tasks/index.html.erb within layouts/application (22.3ms) +Completed 200 OK in 62ms (Views: 54.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:12: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:13 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:12:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.7ms) + + +Started GET "/new" for ::1 at 2019-04-12 15:32:26 -0700 +  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 + +ActionController::RoutingError (No route matches [GET] "/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 "/new" for ::1 at 2019-04-12 15:41:05 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/tasks/edit' to: 'tasks#edit' #?? + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/51046ce0b101e1be/variables" for ::1 at 2019-04-12 15:41:05 -0700 +Started GET "/new" for ::1 at 2019-04-12 15:42:46 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/tasks/edit' to: 'tasks#edit', as: 'edited_t... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/08f1362f444b4a05/variables" for ::1 at 2019-04-12 15:42:46 -0700 +Started GET "/" for ::1 at 2019-04-12 15:42:52 -0700 + +ActionController::RoutingError (No route matches [GET] "/"): + +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 "/task" for ::1 at 2019-04-12 15:43:05 -0700 + +ActionController::RoutingError (No route matches [GET] "/task"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/task" for ::1 at 2019-04-12 15:44:28 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + post '/tasks/edit' to: 'tasks#edit', as: 'edited_t... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/9af8ac152b9c595c/variables" for ::1 at 2019-04-12 15:44:29 -0700 +Started GET "/task" for ::1 at 2019-04-12 15:45:01 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + post '/tasks/edit' to: 'tasks#edit', as: 'edited_t... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/0ec526b369db95e4/variables" for ::1 at 2019-04-12 15:45:01 -0700 +Started POST "/__better_errors/08f1362f444b4a05/variables" for ::1 at 2019-04-12 15:45:23 -0700 +Started POST "/__better_errors/08f1362f444b4a05/variables" for ::1 at 2019-04-12 15:45:27 -0700 +Started GET "/" for ::1 at 2019-04-12 15:45:37 -0700 + +ActionController::RoutingError (No route matches [GET] "/"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/" for ::1 at 2019-04-12 15:45:52 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/tasks/edit' to: 'tasks#edit', as: 'edited_t... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/83823ad653f86833/variables" for ::1 at 2019-04-12 15:45:53 -0700 +Started GET "/" for ::1 at 2019-04-12 15:46:16 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/tasks/edit' to: 'tasks#edit', as: 'edited_t... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/8a49c1b2130d7534/variables" for ::1 at 2019-04-12 15:46:16 -0700 +Started GET "/" for ::1 at 2019-04-12 15:46:47 -0700 + +SyntaxError - syntax error, unexpected tIDENTIFIER, expecting keyword_end + get '/tasks/edit' to: 'tasks#edit', as: 'edit_tas... + ^~: + config/routes.rb:8:in `' + +Started POST "/__better_errors/4ed25695c2c4ba06/variables" for ::1 at 2019-04-12 15:46:47 -0700 +Started GET "/" for ::1 at 2019-04-12 15:55:50 -0700 + +ActionController::RoutingError (No route matches [GET] "/"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started GET "/" for ::1 at 2019-04-14 16:33:28 -0700 +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.4ms) +Completed 200 OK in 379ms (Views: 363.2ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:33:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (41.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (61.9ms) +Completed 200 OK in 97ms (Views: 43.2ms | ActiveRecord: 47.4ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 16:33:38 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 79ms (Views: 31.1ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 16:34: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]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 61ms (Views: 41.6ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/1/edit" for ::1 at 2019-04-14 16:34:14 -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:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.1ms) +Completed 200 OK in 38ms (Views: 32.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/1" for ::1 at 2019-04-14 16:34:33 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/1"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started PATCH "/tasks/1" for ::1 at 2019-04-14 16:35:17 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/1"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started PATCH "/tasks/1" for ::1 at 2019-04-14 16:35:48 -0700 + +ActionController::RoutingError (No route matches [PATCH] "/tasks/1"): + +actionpack (5.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:65:in `call' +web-console (3.7.0) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.7.0) lib/web_console/middleware.rb:30:in `block in call' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `catch' +web-console (3.7.0) lib/web_console/middleware.rb:20:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/show_exceptions.rb:33:in `call' +railties (5.2.3) lib/rails/rack/logger.rb:38:in `call_app' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `block in call' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `block in tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:28:in `tagged' +activesupport (5.2.3) lib/active_support/tagged_logging.rb:71:in `tagged' +railties (5.2.3) lib/rails/rack/logger.rb:26:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/remote_ip.rb:81:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/request_id.rb:27:in `call' +rack (2.0.7) lib/rack/method_override.rb:22:in `call' +rack (2.0.7) lib/rack/runtime.rb:22:in `call' +activesupport (5.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/executor.rb:14:in `call' +actionpack (5.2.3) lib/action_dispatch/middleware/static.rb:127:in `call' +rack (2.0.7) lib/rack/sendfile.rb:111:in `call' +railties (5.2.3) lib/rails/engine.rb:524:in `call' +puma (3.12.1) lib/puma/configuration.rb:227:in `call' +puma (3.12.1) lib/puma/server.rb:660:in `handle_request' +puma (3.12.1) lib/puma/server.rb:474:in `process_client' +puma (3.12.1) lib/puma/server.rb:334:in `block in run' +puma (3.12.1) lib/puma/thread_pool.rb:135:in `block in spawn_thread' +Started PATCH "/tasks/1" for ::1 at 2019-04-14 16:36:45 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fWF5lC+csOP9IjyzTyzDyxf3aZBT6Iif92tTWcQLasjrM8iyt0GGgkZjvihX90pf+A6Ka8qVzLG862ZQiM26Rg==", "task"=>{"name"=>"Give Jesse a toy", "description"=>"Must be worth at least $200"}, "commit"=>"Save Task", "id"=>"1"} +Completed 404 Not Found in 6ms (ActiveRecord: 2.8ms) + + + +ActiveRecord::RecordNotFound - Couldn't find Task without an ID: + app/controllers/tasks_controller.rb:46:in `update' + +Started POST "/__better_errors/ee3ef1abaf0c5d23/variables" for ::1 at 2019-04-14 16:36:45 -0700 +Started PATCH "/tasks/1" for ::1 at 2019-04-14 16:46:23 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fWF5lC+csOP9IjyzTyzDyxf3aZBT6Iif92tTWcQLasjrM8iyt0GGgkZjvihX90pf+A6Ka8qVzLG862ZQiM26Rg==", "task"=>{"name"=>"Give Jesse a toy", "description"=>"Must be worth at least $200"}, "commit"=>"Save Task", "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:46 +  (41.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Update (4.9ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Must be worth at least $200"], ["updated_at", "2019-04-14 23:46:24.179717"], ["id", 1]] + ↳ app/controllers/tasks_controller.rb:48 +  (1.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/tasks/1 +Completed 302 Found in 77ms (ActiveRecord: 54.9ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 16:46:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 51ms (Views: 47.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:46:32 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 69ms (Views: 62.0ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 16:46: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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 49ms (Views: 42.9ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:46:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 53ms (Views: 48.9ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:46:58 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 39ms (Views: 35.9ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:48:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 48ms (Views: 43.8ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:48:37 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 46ms (Views: 40.9ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:48:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.8ms) +Completed 200 OK in 43ms (Views: 32.8ms | ActiveRecord: 1.3ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:49:02 -0700 +Processing by TasksController#edit 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:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 50ms (Views: 44.7ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:49:10 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 41ms (Views: 35.0ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:49:13 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 50ms (Views: 41.3ms | ActiveRecord: 1.5ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:49:14 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 44ms (Views: 34.8ms | ActiveRecord: 2.9ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:49:51 -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:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 42ms (Views: 38.7ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:49: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:4 + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 38ms (Views: 35.3ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:50:29 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 39ms (Views: 25.8ms | ActiveRecord: 1.8ms) + + +Started GET "/tasks/2/edit" for ::1 at 2019-04-14 16:50:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"2"} + Task Load (2.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:42 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 62ms (Views: 51.6ms | ActiveRecord: 2.9ms) + + +Started PATCH "/tasks/2" for ::1 at 2019-04-14 16:50:42 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wq6cR4GtKjyeyT3hLMYPPvVX5f0zWqIw7JePWXhq32w0Ve1CJGgTuJAKAQyozK2NjtRd+04e3UsCaaUU/vjnyg==", "task"=>{"name"=>"Give Percy her flea pill", "description"=>"uh oh we forgot"}, "commit"=>"Save Task", "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:46 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:48 + Task Update (41.5ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "uh oh we forgot"], ["updated_at", "2019-04-14 23:50:42.458660"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:48 +  (2.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:48 +Redirected to http://localhost:3000/tasks/2 +Completed 302 Found in 49ms (ActiveRecord: 44.2ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:50:42 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 30ms (Views: 25.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:52:34 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 31ms (Views: 27.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 16:52:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"2"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks/-2/edit" for ::1 at 2019-04-14 16:54:02 -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:42 +Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms) + + + +ActiveRecord::RecordNotFound - Couldn't find Task with 'id'=-2: + app/controllers/tasks_controller.rb:42:in `edit' + +Started POST "/__better_errors/16258af6623714d9/variables" for ::1 at 2019-04-14 16:54:03 -0700 +Started POST "/__better_errors/16258af6623714d9/variables" for ::1 at 2019-04-14 16:56:23 -0700 +Started GET "/tasks/-2/edit" for ::1 at 2019-04-14 16:56:24 -0700 +Processing by TasksController#edit 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:43 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 32ms (ActiveRecord: 15.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 16:56:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (15.2ms) +Completed 200 OK in 79ms (Views: 73.4ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/2" for ::1 at 2019-04-14 17:29:31 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 88ms (Views: 47.7ms | ActiveRecord: 14.6ms) + + +Started GET "/tasks/1" for ::1 at 2019-04-14 17:29:34 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 73ms (Views: 65.8ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 17:40:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (28.0ms) +Completed 200 OK in 100ms (Views: 82.5ms | ActiveRecord: 6.6ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-14 17:40:23 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 47ms (Views: 36.1ms | ActiveRecord: 1.2ms) + + +Started GET "/tasks/3/edit" for ::1 at 2019-04-14 17:40:24 -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:44 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.3ms) +Completed 200 OK in 68ms (Views: 62.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-14 17:40:36 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"sqT6p5GRWxx/R84lX24Ph9HmO7X+cdYyzTYRyOBwbvCZDuSAEwQJAyp9gaoAvhv2bHFVVRwsCbdrTlzH9KUYdg==", "task"=>{"name"=>"Go grocery shopping", "description"=>"Buy food and cupcakes"}, "commit"=>"Save 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:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:62 +  (0.2ms) ROLLBACK + ↳ app/controllers/tasks_controller.rb:62 +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.7ms) + + + +ActiveModel::ForbiddenAttributesError - ActiveModel::ForbiddenAttributesError: + app/controllers/tasks_controller.rb:62:in `update' + +Started POST "/__better_errors/2f96fb505a7b6b01/variables" for ::1 at 2019-04-14 17:40:37 -0700 +Started GET "/tasks/3/edit" for ::1 at 2019-04-14 17:42:19 -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:44 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 75ms (Views: 50.9ms | ActiveRecord: 6.6ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-14 17:42:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BztTyHwiLmGZqSgdi0JGUIcGL9ES7L8MU6PVJ9Qr6s6RaeLu5P8YACLoqoaTmc/EaP/MKouR+yIYI+AumO06QA==", "task"=>{"name"=>"Go grocery shopping", "description"=>"Buy food and cupcakes"}, "commit"=>"Save 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:54 +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.5ms) + + + +ActionController::UnfilteredParameters - unable to convert unpermitted parameters to hash: + app/controllers/tasks_controller.rb:65:in `update' + +Started POST "/__better_errors/33a9f47eb0ff01bd/variables" for ::1 at 2019-04-14 17:42:24 -0700 +Started GET "/tasks/3/edit" for ::1 at 2019-04-14 17:47:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"3"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:44 + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 60ms (Views: 37.8ms | ActiveRecord: 5.9ms) + + +Started PATCH "/tasks/3" for ::1 at 2019-04-14 17:47:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"CNHkaPBhNUzi/60Q+ehYjwjOMwWHFamTOjBD9UPnQhGeg1VOaLwDLVm+L4vhM9Eb5zfQ/h5o7b1xsHb8DyGSnw==", "task"=>{"name"=>"Go grocery shopping", "description"=>"Buy food and cupcakes"}, "commit"=>"Save 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:54 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:69 + Task Update (0.4ms) UPDATE "tasks" SET "description" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["description", "Buy food and cupcakes"], ["updated_at", "2019-04-15 00:47:20.229890"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:69 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:69 +Redirected to http://localhost:3000/tasks/3 +Completed 302 Found in 49ms (ActiveRecord: 42.0ms) + + +Started GET "/tasks/3" for ::1 at 2019-04-14 17:47:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"3"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 31ms (Views: 25.6ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:27:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (18.0ms) +Completed 200 OK in 58ms (Views: 44.7ms | ActiveRecord: 8.5ms) + + +Started GET "/tasks/4/complete" for ::1 at 2019-04-14 18:28: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-14 18:31: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:4 + Rendered tasks/index.html.erb within layouts/application (17.6ms) +Completed 200 OK in 58ms (Views: 47.4ms | ActiveRecord: 3.7ms) + + +Started DELETE "/tasks/8/delete" for ::1 at 2019-04-14 18:31:58 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"aejk9+hC2+6OnN7vZKCedAY/nCn99h490oHtwMjEMKj/ulXRcJ/tjzXdXHR8exfg6cZ/0mSLWhOZAdjJhALgJg==", "id"=>"8"} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 8], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:105 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (6.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 8]] + ↳ app/controllers/tasks_controller.rb:113 +  (0.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Completed 500 Internal Server Error in 32ms (ActiveRecord: 11.0ms) + + + +ActionView::MissingTemplate - Missing template tasks/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/chantal/Google Drive/ada/projects/TaskList/app/views" +: + app/controllers/tasks_controller.rb:114:in `delete' + +Started POST "/__better_errors/291fa40ce58418eb/variables" for ::1 at 2019-04-14 18:31:58 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 18:32:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.9ms) +Completed 200 OK in 38ms (Views: 35.2ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:32:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 33ms (Views: 30.2ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/7/delete" for ::1 at 2019-04-14 18:32:33 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"OJ74/Aax4Kb0pz38+HgXrfIOTOovQsD5DiPZwUFhlAiuzEnanmzWx0/mv2fgo545HfevEbY/hNdFo+zIDadEhg==", "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:105 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.8ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 7]] + ↳ app/controllers/tasks_controller.rb:113 +  (39.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Completed 500 Internal Server Error in 56ms (ActiveRecord: 45.8ms) + + + +ActionView::MissingTemplate - Missing template tasks/new, application/new with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :jbuilder]}. Searched in: + * "/Users/chantal/Google Drive/ada/projects/TaskList/app/views" +: + app/controllers/tasks_controller.rb:114:in `delete' + +Started POST "/__better_errors/35a3be4f06846204/variables" for ::1 at 2019-04-14 18:32:33 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 18:33:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (28.5ms) +Completed 200 OK in 110ms (Views: 90.2ms | ActiveRecord: 12.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:33:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 62ms (Views: 57.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 18:33:49 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.2ms) +Completed 200 OK in 61ms (Views: 57.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 18:33:57 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"XTpMjMw4FNy8JonLvESi37fC2ehVW+b372V6K+lGJLQmgBpAuvSSBpUQJpZB8xtCuzFdugRzOCMwTDNygMJhmA==", "task"=>{"name"=>"delete me", "description"=>"foeva"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (42.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "delete me"], ["description", "foeva"], ["created_at", "2019-04-15 01:33:57.410491"], ["updated_at", "2019-04-15 01:33:57.410491"]] + ↳ app/controllers/tasks_controller.rb:33 +  (2.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (1.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "delete me"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/9 +Completed 302 Found in 56ms (ActiveRecord: 46.5ms) + + +Started GET "/tasks/9" for ::1 at 2019-04-14 18:33:57 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"9"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 48ms (Views: 42.3ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:33: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:4 + Rendered tasks/index.html.erb within layouts/application (4.5ms) +Completed 200 OK in 63ms (Views: 58.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/9/delete" for ::1 at 2019-04-14 18:34:05 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"l1nO/xVObKwIaIiEZdoQCHEOpMJuvsqRmk6gnf44+A8BC3/ZjZNazbMpCh99AZmcnvdHOffDjr/RzpWUsv4ogQ==", "id"=>"9"} + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 9], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:105 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 9]] + ↳ app/controllers/tasks_controller.rb:113 +  (40.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to +Completed 500 Internal Server Error in 371ms (ActiveRecord: 44.9ms) + + + +NoMethodError - undefined method `back_url' for #: + app/controllers/tasks_controller.rb:114:in `delete' + +Started POST "/__better_errors/62821f40a447a962/variables" for ::1 at 2019-04-14 18:34:05 -0700 +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 63ms (Views: 57.6ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 36ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 18:35:05 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 28.0ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 18:35:09 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"451zFC2mCFbJf9Uj6Eq1SNclQIX5hqt/fjD/NioHYieYJyXYW2qOjOBJen4V/QzV29bE16iudauhGbZvQ4MnCw==", "task"=>{"name"=>"delet", "description"=>"me"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (2.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "delet"], ["description", "me"], ["created_at", "2019-04-15 01:35:09.671617"], ["updated_at", "2019-04-15 01:35:09.671617"]] + ↳ app/controllers/tasks_controller.rb:33 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "delet"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/10 +Completed 302 Found in 50ms (ActiveRecord: 43.3ms) + + +Started GET "/tasks/10" for ::1 at 2019-04-14 18:35:09 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"10"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 10], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 49ms (Views: 43.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 40ms (Views: 36.5ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/10/delete" for ::1 at 2019-04-14 18:35:13 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"yOxuAJ7thDzdvc4+JOKRfR15LDD9OIcNjJjXTb5B8D5evt8mBjCyXWb8TKU8ORjp8oDPy2RFwyPHGOJE8ocgsA==", "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:105 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 10]] + ↳ app/controllers/tasks_controller.rb:113 +  (0.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 35ms (Views: 31.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:19 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"DLJNM20LG8Rva/nacDFO29+gYBNhl1rc2TBDc61Mpd2a4PwV9dYtpdQqe0Fo6sdPMFmD6PjqHvKSsHZ64Yp1Uw==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:35:19.130965"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 49ms (ActiveRecord: 41.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35:19 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 33ms (Views: 30.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:21 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ekp2yXYZq7xUydK+c+MjQUDVGPa2GYmHDOEcWXyUPIjsGMfv7sSd3e+IUCVrOKrVryz7DS9kzalHYSlQMFLsBg==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:35:21.017498"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:91 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 32ms (Views: 29.6ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:26 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"idcrEYn5l1P4lEwM9fZKDVl0AOoEPGIbCfVTZrdrTYEfhZo3ESShMkPVzpftLcOZto3jEZ1BJjVCdWZv+62dDw==", "id"=>"3"} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 3], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:35:26.604953"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (41.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 52ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 36ms (Views: 32.6ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:27 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"nkhn8vaH/4P7cG9W4xDldrlxQEi88UKYdl8BYDnS68cIGtbUblrJ4kAx7c37y2ziVoijsyWMBrY93zRpdRQ7SQ==", "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:83 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:35:27.828584"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:91 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 45ms (ActiveRecord: 41.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 38ms (Views: 33.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:29 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"Q9wws7G0R+kN4diOnHCOqLlQmk6qUAS3brLsM00HNDnVjoGVKWlxiLagWhWEqwc8Vql5tTMtQJklMtk6AcHktw==", "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:83 +  (0.4ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:35:29.235679"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (39.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 40.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 34ms (Views: 31.3ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:35:30 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"eGG/ABtBEJxHJqdSlvIsL9i+zKXFk5Rzs1oMz/wlZn7uMw4mg5wm/fxnJcmOKaW7N0cvXlzu0F342jnGsOO28A==", "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:83 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:35:30.063443"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:91 +  (40.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 44ms (ActiveRecord: 40.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:35: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:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 49ms (Views: 43.8ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks/4" for ::1 at 2019-04-14 18:36:50 -0700 +Processing by TasksController#show as HTML + Parameters: {"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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 55ms (Views: 50.0ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:37: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:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 34ms (Views: 31.2ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:41:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 50ms (Views: 46.4ms | ActiveRecord: 1.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:42:51 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 65ms (Views: 62.2ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:43: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:4 + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 47ms (Views: 44.5ms | ActiveRecord: 0.4ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:43:52 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"5JXTJhSMy7v+RXV1KqtNbJXZ7nLe5DXE5W2aIEoeHdtyx2IAjFH92kUE9+4ycMT4eiANiUeZcequ7a8pBtjNVQ==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (1.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:43:52.120401"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (40.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:43:52 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 35ms (Views: 32.1ms | ActiveRecord: 0.6ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:43:53 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"O86+4InFGt6uSqapQjokuZcyIPWNyWH3CIrKImRWXBKtnA/GERgsvxULJDJa4a0teMvDDhS0JdlDCv8rKJCMnA==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.5ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:43:53.782905"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:91 +  (17.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 24ms (ActiveRecord: 18.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:43: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:4 + Rendered tasks/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 33ms (Views: 30.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:44:36 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"InITyjRur5vJIWM5TLO888EcDnqFeBZCnWMBFVMe1vy0IKLsrLOZ+nJg4aJUaDVnLuXtgRwFUmzW4zQcH9gGcg==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:44:36.546158"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44:36 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 33ms (Views: 28.9ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:44:38 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"ieVcPYIY+c9OGsYScZaOFVR5oCtBYtJayQWNnM9bBTYft+0bGsXPrvVbRIlpTQeBu4BD0NgflnSChbiVg53VuA==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.6ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:44:38.119575"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:91 +  (40.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 48ms (ActiveRecord: 41.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44:38 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (5.2ms) +Completed 200 OK in 34ms (Views: 29.9ms | ActiveRecord: 1.7ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-14 18:44:41 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"v2gtKpRPKdRo2hXnNDOh2t01EHltVhwqXd7OnLir11wpOpwMDJIftdObl3ws6ChOMszzgvQrWAQWXvuV9G0H0g==", "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:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:44:41.172956"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:91 +  (39.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 44ms (ActiveRecord: 40.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44: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:4 + Rendered tasks/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 34ms (Views: 30.2ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/2/complete" for ::1 at 2019-04-14 18:44:45 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"EAh0TusU/R0UEKwoA31dcDG5+p7ionsBvAYDYFUo/sqGWsVoc8nLfK9RLrMbptTk3kAZZXvfPy/3hjZpGe4uRA==", "id"=>"2"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 2], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:83 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:44:45.044750"], ["id", 2]] + ↳ app/controllers/tasks_controller.rb:95 +  (5.9ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 13ms (ActiveRecord: 7.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (6.1ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.8ms) +Completed 200 OK in 82ms (Views: 72.6ms | ActiveRecord: 6.1ms) + + +Started PATCH "/tasks/3/complete" for ::1 at 2019-04-14 18:44:48 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"48kVjeIFvhNB0ZD51lDmDxaLWwJ5SR6yUSHJtDmbQgF1m6SretiIcvqQEmLOi2+b+XK4+eA0Wpwaofy9dV2Sjw==", "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:83 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:44:48.378978"], ["id", 3]] + ↳ app/controllers/tasks_controller.rb:95 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 41.1ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 38ms (Views: 34.7ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/5/complete" for ::1 at 2019-04-14 18:44:54 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"DsiUZlOxlbPBETTjjyTWh3wRGczod3JOVn851RQ6JCOYmiVAy2yj0npQtniX/18Tk+j6N3EKNmAd/wzcWPz0rQ==", "id"=>"5"} + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:83 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:91 + Task Update (0.3ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", "2019-04-14"], ["updated_at", "2019-04-15 01:44:54.229309"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:91 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:91 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 41.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44:54 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 31ms (Views: 26.4ms | ActiveRecord: 0.3ms) + + +Started PATCH "/tasks/5/complete" for ::1 at 2019-04-14 18:44:56 -0700 +Processing by TasksController#complete as HTML + Parameters: {"authenticity_token"=>"QrEKAyebtn5/6ZSEfeUXAiKkl+tRX8QRxnW/rf66le3U47slv0aAH8SoFh9lPp6WzV10EMgigD+N9YqksnxFYw==", "id"=>"5"} + Task Load (2.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 5], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:83 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:95 + Task Update (0.4ms) UPDATE "tasks" SET "completion_date" = $1, "updated_at" = $2 WHERE "tasks"."id" = $3 [["completion_date", nil], ["updated_at", "2019-04-15 01:44:56.390747"], ["id", 5]] + ↳ app/controllers/tasks_controller.rb:95 +  (40.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:95 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 43.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:44: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:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 41ms (Views: 35.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 18:58:42 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.6ms) +Completed 200 OK in 48ms (Views: 28.6ms | ActiveRecord: 8.2ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 18:58:47 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"KsL3d9Z608Lr60ARIbR/S3nQJvjkyf20iom8J11sQI5ReKG7oLZVGMLd70zcA8bWdSOiqrXhI2BVoPV+NOgFog==", "task"=>{"name"=>"Delete this task", "description"=>"foeva"}, "commit"=>"Save task"} +  (0.7ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (8.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "foeva"], ["created_at", "2019-04-15 01:58:47.097183"], ["updated_at", "2019-04-15 01:58:47.097183"]] + ↳ app/controllers/tasks_controller.rb:33 +  (82.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Delete this task"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/11 +Completed 302 Found in 100ms (ActiveRecord: 92.0ms) + + +Started GET "/tasks/11" for ::1 at 2019-04-14 18:58:47 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 34ms (Views: 27.6ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:58:48 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 41ms (Views: 36.5ms | ActiveRecord: 0.5ms) + + +Started DELETE "/tasks/11/delete" for ::1 at 2019-04-14 18:58:50 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"tGUXcXldiul2NLuRcOQATzGSUEc7etlp6wN/IE9Nmb4iN6ZX4YC8iM11OQpoP4nb3muzvKIHnUegg0opA4tJMA==", "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:105 +  (0.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 11]] + ↳ app/controllers/tasks_controller.rb:113 +  (39.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 43ms (ActiveRecord: 40.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:58:50 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 34ms (Views: 31.6ms | ActiveRecord: 0.8ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 18:59:50 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 37ms (Views: 34.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 18:59:53 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MO5qH/W4yj5BXfWmSWd5SErm3p2VQFBPU57D4Ol8oqpLVDzTg3RM5GhrWvu00MDVRhVaz8RojpuMt4q5gPjnhg==", "task"=>{"name"=>"Delete this task", "description"=>"foeva"}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "foeva"], ["created_at", "2019-04-15 01:59:53.513983"], ["updated_at", "2019-04-15 01:59:53.513983"]] + ↳ app/controllers/tasks_controller.rb:33 +  (16.2ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Delete this task"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/12 +Completed 302 Found in 24ms (ActiveRecord: 17.4ms) + + +Started GET "/tasks/12" for ::1 at 2019-04-14 18:59:53 -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:13 + 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.1ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:59: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:4 + Rendered tasks/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 31ms (Views: 29.0ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/12/delete" for ::1 at 2019-04-14 18:59:57 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"0jSw21EZzcytBocJR/1Ufdpbiwsybz29UZ7IAH+AdgxEZgH9ycT7rRZHBZJfJt3pNaJo8KsSeZMaHv0JM0amgg==", "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:105 +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (3.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 12]] + ↳ app/controllers/tasks_controller.rb:113 +  (41.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 50ms (ActiveRecord: 45.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 18:59: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:4 + Rendered tasks/index.html.erb within layouts/application (9.8ms) +Completed 200 OK in 74ms (Views: 67.3ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:07:29 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (8.5ms) +Completed 200 OK in 71ms (Views: 64.6ms | ActiveRecord: 3.6ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 19:07:30 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.5ms) +Completed 200 OK in 37ms (Views: 34.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:07:33 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cXOhF36CHlzuiu+AUgydRKmAU1/VcMhrkDv54ynXDW8KyffbCE6Yhse8QN2vuyTZpXPXDYRYFr9PErC6QFNIQw==", "task"=>{"name"=>"Delete this task", "description"=>"Must be worth at least $200"}, "commit"=>"Save task"} +  (0.3ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (2.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "Must be worth at least $200"], ["created_at", "2019-04-15 02:07:33.716021"], ["updated_at", "2019-04-15 02:07:33.716021"]] + ↳ app/controllers/tasks_controller.rb:33 +  (42.4ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Delete this task"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/13 +Completed 302 Found in 56ms (ActiveRecord: 45.6ms) + + +Started GET "/tasks/13" for ::1 at 2019-04-14 19:07:33 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 32ms (Views: 28.7ms | ActiveRecord: 0.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:07: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:4 + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 39ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started DELETE "/tasks/13/delete" for ::1 at 2019-04-14 19:07:37 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"ps9IR2wifnVwtJcZEYV26ndXtWUgdt4iq3ppvdtMNBUwnflh9P9IFMv1FYIJXv9+mK5WnrkLmgzg+ly0l4rkmw==", "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:105 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 13]] + ↳ app/controllers/tasks_controller.rb:113 +  (40.0ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 46ms (ActiveRecord: 40.8ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:07:37 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 34ms (Views: 31.1ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:08:08 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 46ms (Views: 40.7ms | ActiveRecord: 0.6ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 19:08:09 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.4ms) +Completed 200 OK in 45ms (Views: 41.6ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:08:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oLRszPU8uRuIuJNs4hj+YD89ymScZwG51ZHNWHBbHwDbDjoAg/A/waGOPDEfr0f9M85ONs1P320KuIQBGd9aLA==", "task"=>{"name"=>"Delete this task", "description"=>"foeva"}, "commit"=>"Save task"} +  (1.0ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Delete this task"], ["description", "foeva"], ["created_at", "2019-04-15 02:08:12.922608"], ["updated_at", "2019-04-15 02:08:12.922608"]] + ↳ app/controllers/tasks_controller.rb:33 +  (40.1ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Delete this task"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/14 +Completed 302 Found in 54ms (ActiveRecord: 43.0ms) + + +Started GET "/tasks/14" for ::1 at 2019-04-14 19:08:12 -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:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 32ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:08: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:4 + Rendered tasks/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 35ms (Views: 31.0ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/14/delete" for ::1 at 2019-04-14 19:08:15 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"EdrQB28GDjNcYLL+/fKPFAcFk/Ilnf0Qw907+NkjGfGHiGEh99s4UuchMGXlKQaA6PxwCbzguT6IXQ7xleXJfw==", "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:105 +  (2.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 14]] + ↳ app/controllers/tasks_controller.rb:113 +  (42.8ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 51ms (ActiveRecord: 46.2ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:08:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (17.2ms) +Completed 200 OK in 117ms (Views: 111.4ms | ActiveRecord: 0.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:10:33 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.6ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (10.0ms) +Completed 200 OK in 70ms (Views: 61.1ms | ActiveRecord: 4.6ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-14 19:10:35 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.3ms) +Completed 200 OK in 53ms (Views: 49.7ms | ActiveRecord: 0.0ms) + + +Started POST "/tasks" for ::1 at 2019-04-14 19:10:38 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aWVTn1pXhP0HJUYJGvPMpJCT5kP/qNCCiDkDUUc00mBCbMgZB6bc6I6/nytei1eF7l5HYfIbDWiQBiqyVHKD2w==", "task"=>{"name"=>"thnh", "description"=>""}, "commit"=>"Save task"} +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:33 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "thnh"], ["description", ""], ["created_at", "2019-04-15 02:10:38.667494"], ["updated_at", "2019-04-15 02:10:38.667494"]] + ↳ app/controllers/tasks_controller.rb:33 +  (40.6ms) COMMIT + ↳ app/controllers/tasks_controller.rb:33 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "thnh"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:34 +Redirected to http://localhost:3000/tasks/15 +Completed 302 Found in 48ms (ActiveRecord: 41.7ms) + + +Started GET "/tasks/15" for ::1 at 2019-04-14 19:10:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"15"} + Task Load (1.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 56ms (Views: 43.9ms | ActiveRecord: 1.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:10:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (6.0ms) +Completed 200 OK in 56ms (Views: 51.5ms | ActiveRecord: 1.0ms) + + +Started DELETE "/tasks/15/delete" for ::1 at 2019-04-14 19:10:42 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"y5i6Yz63di9SXOQ5gqw+GAu6qRwbZOsm7mYPQaHvF7Jp79V/f+NTIbHF8UDXJUnzK8bDjnmeUICRrb/G00gHLA==", "id"=>"15"} + Task Load (1.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 15], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:105 +  (0.2ms) BEGIN + ↳ app/controllers/tasks_controller.rb:113 + Task Destroy (0.5ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 15]] + ↳ app/controllers/tasks_controller.rb:113 +  (40.7ms) COMMIT + ↳ app/controllers/tasks_controller.rb:113 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 47ms (ActiveRecord: 42.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-14 19:10: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:4 + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 32ms (Views: 29.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for ::1 at 2019-04-15 16:45:29 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (5.2ms) +Completed 200 OK in 310ms (Views: 297.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 16:46:01 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (2.0ms) +Completed 200 OK in 79ms (Views: 73.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 20:58:14 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (4.3ms) +Completed 200 OK in 131ms (Views: 120.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 20:59:18 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.4ms) +Completed 200 OK in 54ms (Views: 51.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 21:01:04 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.7ms) +Completed 200 OK in 71ms (Views: 64.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 21:01:05 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.9ms) +Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 21:01:11 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.2ms) +Completed 200 OK in 48ms (Views: 45.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for ::1 at 2019-04-15 21:03:38 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 47ms (Views: 44.5ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-15 21:04:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (42.4ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (50.5ms) +Completed 200 OK in 93ms (Views: 43.4ms | ActiveRecord: 42.4ms) + + +Started GET "/" for ::1 at 2019-04-17 15:01:33 -0700 +  (3.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC + ↳ /Users/chantal/.rvm/gems/ruby-2.5.1/gems/activerecord-5.2.3/lib/active_record/log_subscriber.rb:98 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.1ms) +Completed 200 OK in 364ms (Views: 350.8ms | ActiveRecord: 0.0ms) + + +Started GET "/tasks" for ::1 at 2019-04-17 15:01:42 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.8ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (46.5ms) +Completed 200 OK in 125ms (Views: 84.4ms | ActiveRecord: 20.1ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-17 15:01:49 -0700 +Processing by TasksController#create as HTML +  (41.9ms) SELECT COUNT(*) FROM "tasks" + ↳ app/controllers/tasks_controller.rb:27 + CACHE (0.0ms) SELECT COUNT(*) FROM "tasks" + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (11.4ms) +Completed 200 OK in 105ms (Views: 53.0ms | ActiveRecord: 41.9ms) + + +Started POST "/tasks" for ::1 at 2019-04-17 15:02:01 -0700 +Processing by TasksController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aUrXd8eveOCb3OxH7OkNpc2mivgRI3m8sVuoZE3WKg4S8IG7sWP+OrLqQxoRXrQ4wVUOqkALp2hucuE9JFJvIg==", "task"=>{"name"=>"Word", "description"=>"bird"}, "commit"=>"Save task"} +  (0.5ms) BEGIN + ↳ app/controllers/tasks_controller.rb:35 + Task Create (45.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "Word"], ["description", "bird"], ["created_at", "2019-04-17 22:02:01.976346"], ["updated_at", "2019-04-17 22:02:01.976346"]] + ↳ app/controllers/tasks_controller.rb:35 +  (1.3ms) COMMIT + ↳ app/controllers/tasks_controller.rb:35 + Task Load (1.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "Word"], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:36 +Redirected to http://localhost:3000/tasks/16 +Completed 302 Found in 99ms (ActiveRecord: 49.2ms) + + +Started GET "/tasks/16" for ::1 at 2019-04-17 15:02:02 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"16"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:13 + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 48ms (Views: 39.6ms | ActiveRecord: 0.7ms) + + +Started GET "/tasks" for ::1 at 2019-04-17 15:02:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (4.0ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (20.3ms) +Completed 200 OK in 76ms (Views: 68.8ms | ActiveRecord: 4.0ms) + + +Started GET "/tasks/create" for ::1 at 2019-04-17 15:02:07 -0700 +Processing by TasksController#create as HTML +  (0.4ms) SELECT COUNT(*) FROM "tasks" + ↳ app/controllers/tasks_controller.rb:27 + CACHE (0.0ms) SELECT COUNT(*) FROM "tasks" + ↳ app/controllers/tasks_controller.rb:29 + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.8ms) +Completed 200 OK in 50ms (Views: 46.4ms | ActiveRecord: 0.4ms) + + +Started GET "/tasks" for ::1 at 2019-04-17 15:02: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:4 + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 67ms (Views: 52.1ms | ActiveRecord: 0.3ms) + + +Started DELETE "/tasks/16/delete" for ::1 at 2019-04-17 15:02:20 -0700 +Processing by TasksController#delete as HTML + Parameters: {"authenticity_token"=>"xLRdd2xGrQqlczw8wSH46Mmy7Wd1wKpcpy9htZpXkDlS5uxR9Jubax4yvqfZ+nF8JksOnOy97nLsr1S81pFAtw==", "id"=>"16"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 16], ["LIMIT", 1]] + ↳ app/controllers/tasks_controller.rb:107 +  (1.1ms) BEGIN + ↳ app/controllers/tasks_controller.rb:115 + Task Destroy (128.6ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 16]] + ↳ app/controllers/tasks_controller.rb:115 +  (1.5ms) COMMIT + ↳ app/controllers/tasks_controller.rb:115 +Redirected to http://localhost:3000/tasks +Completed 302 Found in 138ms (ActiveRecord: 131.5ms) + + +Started GET "/tasks" for ::1 at 2019-04-17 15:02:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 69ms (Views: 64.2ms | ActiveRecord: 0.9ms) + + +Started GET "/tasks" for ::1 at 2019-04-17 15:03:09 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms) + + + +SyntaxError - syntax error, unexpected end-of-input, expecting keyword_end + end + ^: + app/views/tasks/index.html.erb:22:in `' + +Started POST "/__better_errors/72ba37ac53f8ca59/variables" for ::1 at 2019-04-17 15:03:09 -0700 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" LIMIT $1 [["LIMIT", 11]] + ↳ /Users/chantal/.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-17 15:03:23 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" + ↳ app/views/tasks/index.html.erb:4 + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 78ms (Views: 74.5ms | ActiveRecord: 0.7ms) + + diff --git a/log/test.log b/log/test.log new file mode 100644 index 000000000..73e6f2ef1 --- /dev/null +++ b/log/test.log @@ -0,0 +1,6397 @@ +  (194.1ms) DROP DATABASE IF EXISTS "TaskList_test" +  (405.0ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-08 22:15:05 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 465ms (Views: 438.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) ROLLBACK +  (200.1ms) DROP DATABASE IF EXISTS "TaskList_test" +  (510.3ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-08 22:21:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 153ms (Views: 146.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (210.5ms) DROP DATABASE IF EXISTS "TaskList_test" +  (380.6ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-08 22:22:30 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (0.9ms) +Completed 200 OK in 204ms (Views: 197.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (143.2ms) DROP DATABASE IF EXISTS "TaskList_test" +  (556.2ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.7ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-08 22:23:11 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Rendered tasks/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 173ms (Views: 166.5ms | ActiveRecord: 0.0ms) +  (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-08 22:23:12 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (233.8ms) DROP DATABASE IF EXISTS "TaskList_test" +  (533.3ms) CREATE DATABASE "TaskList_test" ENCODING = 'unicode' + SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (0.2ms) DROP TABLE IF EXISTS "tasks" CASCADE +  (24.7ms) CREATE TABLE "tasks" ("id" bigserial primary key, "name" character varying, "description" character varying, "completion_date" date, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY) +  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES (20190410042427) +  (25.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) + ActiveRecord::InternalMetadata Load (0.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 05:02:50.630705"], ["updated_at", "2019-04-10 05:02:50.630705"]] +  (17.6ms) 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.2ms) COMMIT +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (45.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-10 05:02:50.936786', '2019-04-10 05:02:50.936786'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-10 05:02:50.936786', '2019-04-10 05:02:50.936786') +  (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.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-09 22:02: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 (3.2ms) +Completed 200 OK in 258ms (Views: 250.6ms | 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-09 22:02:51 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-10 06:06:13.705243', '2019-04-10 06:06:13.705243'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-10 06:06:13.705243', '2019-04-10 06:06:13.705243') +  (42.4ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------- +TasksController::new: test_0001_can get the new task page +--------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0001_can create a new task +-------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.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-09 23:06:13 -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.5ms) +Completed 200 OK in 244ms (Views: 236.5ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-09 23:06:14 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 6ms (Views: 2.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 04:58:23.626208', '2019-04-11 04:58:23.626208'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 04:58:23.626208', '2019-04-11 04:58:23.626208') +  (40.5ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 21:58: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 (11.5ms) +Completed 200 OK in 279ms (Views: 269.2ms | ActiveRecord: 0.5ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 21:58:23 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (13.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (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-10 21:58:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Completed 404 Not Found in 5ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 04:58:24.050813"], ["updated_at", "2019-04-11 04:58:24.050813"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 21:58:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 9ms (Views: 4.5ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.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.9ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:03.672518', '2019-04-11 05:13:03.672518'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:03.672518', '2019-04-11 05:13:03.672518') +  (40.6ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:13:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 219ms (Views: 210.9ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:13:03 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 7ms (Views: 3.7ms | ActiveRecord: 0.0ms) +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +  (2.0ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:13:03.999362"], ["updated_at", "2019-04-11 05:13:03.999362"]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:13:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.7ms) 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 11ms (Views: 2.4ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:13:04 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:27.489453', '2019-04-11 05:13:27.489453'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:27.489453', '2019-04-11 05:13:27.489453') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:13:27 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.0ms) +Completed 200 OK in 218ms (Views: 210.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:13:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 12ms (Views: 8.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:13: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 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:13:27.762837"], ["updated_at", "2019-04-11 05:13:27.762837"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:13: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.9ms) +Completed 200 OK in 6ms (Views: 3.1ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:58.181166', '2019-04-11 05:13:58.181166'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:13:58.181166', '2019-04-11 05:13:58.181166') +  (0.6ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:13:58 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (6.5ms) +Completed 200 OK in 273ms (Views: 266.1ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (84.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:13:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:13:58.589618"], ["updated_at", "2019-04-11 05:13:58.589618"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:13:58 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:13: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.4ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:13:58.627858"], ["updated_at", "2019-04-11 05:13:58.627858"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 22:13:58 -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 6ms (Views: 1.8ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:13: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.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:16:26.933662', '2019-04-11 05:16:26.933662'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:16:26.933662', '2019-04-11 05:16:26.933662') +  (40.7ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:16:27.001924"], ["updated_at", "2019-04-11 05:16:27.001924"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:16: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 (2.2ms) +Completed 200 OK in 231ms (Views: 220.6ms | 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-10 22:16: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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.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_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:16:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>nil}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:16:27.265444"], ["updated_at", "2019-04-11 05:16:27.265444"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:16:27 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.3ms) +Completed 200 OK in 10ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:16: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 (2.1ms) +Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:16:27 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:18:00.590194', '2019-04-11 05:18:00.590194'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:18:00.590194', '2019-04-11 05:18:00.590194') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:18:00.631421"], ["updated_at", "2019-04-11 05:18:00.631421"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:18: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.9ms) +Completed 200 OK in 196ms (Views: 187.0ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:18: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.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:18:00 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.4ms) +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:18:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>"2025-09-13"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:18:00.865133"], ["updated_at", "2019-04-11 05:18:00.865133"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:18: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 (2.3ms) +Completed 200 OK in 7ms (Views: 4.1ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:18:00 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:19:38.726062', '2019-04-11 05:19:38.726062'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:19:38.726062', '2019-04-11 05:19:38.726062') +  (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::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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:19:38.753387"], ["updated_at", "2019-04-11 05:19:38.753387"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:19:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 210ms (Views: 200.0ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:19:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:19:38 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.4ms) +Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:19:39 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>"2025-09-13"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:19:39.004784"], ["updated_at", "2019-04-11 05:19:39.004784"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:19: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 (2.0ms) +Completed 200 OK in 6ms (Views: 3.4ms | 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 22:19:39 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:20:05.530719', '2019-04-11 05:20:05.530719'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:20:05.530719', '2019-04-11 05:20:05.530719') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:20:05.554742"], ["updated_at", "2019-04-11 05:20:05.554742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:20:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 235ms (Views: 226.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 22:20:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:20: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.7ms) +Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:20:05 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 3ms (Views: 1.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:20:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description", "completion_date"=>"2025-09-13"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:20:05.846917"], ["updated_at", "2019-04-11 05:20:05.846917"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:20:05 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.0ms) +Completed 200 OK in 9ms (Views: 6.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.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:22:00.271110', '2019-04-11 05:22:00.271110'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:22:00.271110', '2019-04-11 05:22:00.271110') +  (1.1ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:22: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 (3.6ms) +Completed 200 OK in 240ms (Views: 232.7ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:22:00 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:22:00 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (6.2ms) +Completed 200 OK in 11ms (Views: 7.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:22:00 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:22:00.589601"], ["updated_at", "2019-04-11 05:22:00.589601"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:22:00.603979"], ["updated_at", "2019-04-11 05:22:00.603979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 22:22:00 -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 5ms (Views: 2.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:22: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]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:22:35.045420', '2019-04-11 05:22:35.045420'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:22:35.045420', '2019-04-11 05:22:35.045420') +  (1.3ms) 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 +----------------------------- +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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:22:35.072733"], ["updated_at", "2019-04-11 05:22:35.072733"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-10 22:22:35 -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 234ms (Views: 224.9ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-10 22:22:35 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.7ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:22:35 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-10 22:22:35 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:22:35 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (8.1ms) +Completed 200 OK in 17ms (Views: 12.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:22:35 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:22:35.405652"], ["updated_at", "2019-04-11 05:22:35.405652"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 0.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:23:27.948198', '2019-04-11 05:23:27.948198'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-11 05:23:27.948198', '2019-04-11 05:23:27.948198') +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-10 22:23:27 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.4ms) +Completed 200 OK in 220ms (Views: 208.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-10 22:23:28 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-11 05:23:28.203661"], ["updated_at", "2019-04-11 05:23:28.203661"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-10 22:23:28 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 5ms (Views: 2.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-10 22:23:28 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (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 22:23:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-15"], ["created_at", "2019-04-11 05:23:28.244446"], ["updated_at", "2019-04-11 05:23:28.244446"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-10 22:23:28 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 6ms (Views: 2.5ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (44.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 (2.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:53:05.486189', '2019-04-14 23:53:05.486189'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:53:05.486189', '2019-04-14 23:53:05.486189') +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (41.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:53:05.564573"], ["updated_at", "2019-04-14 23:53:05.564573"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:53:05.612706"], ["updated_at", "2019-04-14 23:53:05.612706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:53:05.619432"], ["updated_at", "2019-04-14 23:53:05.619432"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 16:53:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (7.7ms) +Completed 200 OK in 235ms (Views: 223.8ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 16:53:05 -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]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 16:53: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.4ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 16:53:05 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 8ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 16:53:05 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 16:53:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 23:53:05.915626"], ["updated_at", "2019-04-14 23:53:05.915626"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (42.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 47ms (ActiveRecord: 42.7ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:53:05.969327"], ["updated_at", "2019-04-14 23:53:05.969327"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 16:53:05 -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 (2.0ms) +Completed 200 OK in 6ms (Views: 3.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-04-14 16:53:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.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.4ms) COMMIT +  (0.3ms) BEGIN + Fixtures Load (1.1ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:56:31.191061', '2019-04-14 23:56:31.191061'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:56:31.191061', '2019-04-14 23:56:31.191061') +  (38.6ms) COMMIT +  (0.1ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.4ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (8.2ms) +Completed 200 OK in 272ms (Views: 255.9ms | ActiveRecord: 0.0ms) +  (9.7ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 23:56:31.559534"], ["updated_at", "2019-04-14 23:56:31.559534"]] +  (3.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (6.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 28ms (ActiveRecord: 13.3ms) +  (12.9ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:56:31.610957"], ["updated_at", "2019-04-14 23:56:31.610957"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 11ms (Views: 4.0ms | ActiveRecord: 0.8ms) +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:56:31.684461"], ["updated_at", "2019-04-14 23:56:31.684461"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:56:31.701055"], ["updated_at", "2019-04-14 23:56:31.701055"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (8.1ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:56:31.712546"], ["updated_at", "2019-04-14 23:56:31.712546"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 11ms (Views: 4.5ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 16:56:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 6ms (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-14 16:56:31 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 5ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:57:06.966186', '2019-04-14 23:57:06.966186'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-14 23:57:06.966186', '2019-04-14 23:57:06.966186') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:57:06.993497"], ["updated_at", "2019-04-14 23:57:06.993497"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:57:07.000340"], ["updated_at", "2019-04-14 23:57:07.000340"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:57:07.007147"], ["updated_at", "2019-04-14 23:57:07.007147"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 16:57:07 -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 (1.5ms) +Completed 200 OK in 213ms (Views: 202.0ms | ActiveRecord: 1.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 16:57:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 16:57:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (1.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.7ms) +  (2.9ms) ROLLBACK +  (0.6ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (4.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-14 23:57:07.267071"], ["updated_at", "2019-04-14 23:57:07.267071"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 16:57:07 -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 (7.0ms) +Completed 200 OK in 15ms (Views: 9.1ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 16:57:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-14 23:57:07.300809"], ["updated_at", "2019-04-14 23:57:07.300809"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.9ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 16:57:07 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.4ms) +Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (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-14 16:57:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.3ms) +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 16:57:07 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.7ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:00:45.416026', '2019-04-15 00:00:45.416026'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:00:45.416026', '2019-04-15 00:00:45.416026') +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:00:45.440343"], ["updated_at", "2019-04-15 00:00:45.440343"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:00:45.447976"], ["updated_at", "2019-04-15 00:00:45.447976"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:00: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 (3.0ms) +Completed 200 OK in 225ms (Views: 217.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-14 17:00:45 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:00:45.711586"], ["updated_at", "2019-04-15 00:00:45.711586"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 8ms (Views: 3.9ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:00:45.736187"], ["updated_at", "2019-04-15 00:00:45.736187"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 1.3ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.1ms) +Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:00:45.762980"], ["updated_at", "2019-04-15 00:00:45.762980"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.1ms) +Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:00:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:09:24.717960', '2019-04-15 00:09:24.717960'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:09:24.717960', '2019-04-15 00:09:24.717960') +  (42.3ms) COMMIT +  (0.3ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:09:24 -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 (4.1ms) +Completed 200 OK in 234ms (Views: 227.1ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:09:25 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.3ms) 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" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:09:25.040099"], ["updated_at", "2019-04-15 00:09:25.040099"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 17:09:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.6ms) +Completed 200 OK in 21ms (Views: 8.9ms | ActiveRecord: 4.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:09:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (1.0ms) SELECT COUNT(*) FROM "tasks" +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:09:25.090669"], ["updated_at", "2019-04-15 00:09:25.090669"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:09:25.095197"], ["updated_at", "2019-04-15 00:09:25.095197"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:09:25 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.3ms) +Completed 200 OK in 7ms (Views: 2.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:09:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:09:25.117748"], ["updated_at", "2019-04-15 00:09:25.117748"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:09:25.126268"], ["updated_at", "2019-04-15 00:09:25.126268"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 17:09:25 -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.0ms) +Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:09: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.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.5ms) BEGIN +  (2.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 (1.4ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:11:42.841387', '2019-04-15 00:11:42.841387'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:11:42.841387', '2019-04-15 00:11:42.841387') +  (6.3ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:11:42.903365"], ["updated_at", "2019-04-15 00:11:42.903365"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:11:42 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 269ms (Views: 256.0ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (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-14 17:11:43 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.0ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.8ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:11:43.232691"], ["updated_at", "2019-04-15 00:11:43.232691"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (2.1ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:11:43.246019"], ["updated_at", "2019-04-15 00:11:43.246019"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (7.7ms) +Completed 200 OK in 12ms (Views: 9.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (2.7ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:11:43.301609"], ["updated_at", "2019-04-15 00:11:43.301609"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:11:43.313506"], ["updated_at", "2019-04-15 00:11:43.313506"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:11:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:12:18.645282', '2019-04-15 00:12:18.645282'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:12:18.645282', '2019-04-15 00:12:18.645282') +  (40.5ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:12:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:18.733683"], ["updated_at", "2019-04-15 00:12:18.733683"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:12:18 -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.2ms) +Completed 200 OK in 241ms (Views: 236.2ms | ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:12: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 (3.0ms) +Completed 200 OK in 8ms (Views: 4.8ms | 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-14 17:12:18 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 7ms (Views: 2.9ms | ActiveRecord: 0.0ms) +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:19.016162"], ["updated_at", "2019-04-15 00:12:19.016162"]] +  (5.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 17:12:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (1.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.0ms) +Completed 200 OK in 16ms (Views: 10.1ms | ActiveRecord: 1.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/edit" for 127.0.0.1 at 2019-04-14 17:12:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:12:19 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.9ms) +Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (2.0ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:12:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:12:19.082445"], ["updated_at", "2019-04-15 00:12:19.082445"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:19.099063"], ["updated_at", "2019-04-15 00:12:19.099063"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:12:45.093806', '2019-04-15 00:12:45.093806'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:12:45.093806', '2019-04-15 00:12:45.093806') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:12:45 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (6.5ms) +Completed 200 OK in 221ms (Views: 207.4ms | ActiveRecord: 0.0ms) +  (1.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:12:45 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:12:45.360927"], ["updated_at", "2019-04-15 00:12:45.360927"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 12ms (ActiveRecord: 2.4ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:45.382134"], ["updated_at", "2019-04-15 00:12:45.382134"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 17:12:45 -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.8ms) +Completed 200 OK in 7ms (Views: 3.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-14 17:12:45 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.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 17:12:45 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:12:45 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:45.422615"], ["updated_at", "2019-04-15 00:12:45.422615"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 17:12:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:12:45 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (1.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:12:45.460085"], ["updated_at", "2019-04-15 00:12:45.460085"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:17:42.127703', '2019-04-15 00:17:42.127703'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:17:42.127703', '2019-04-15 00:17:42.127703') +  (51.3ms) COMMIT +  (0.3ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:17: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 9ms (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 (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:17:42.225336"], ["updated_at", "2019-04-15 00:17:42.225336"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:17:42 -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.7ms) +Completed 200 OK in 207ms (Views: 202.9ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:17: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.6ms) +Completed 200 OK in 6ms (Views: 2.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-14 17:17:42 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:17:42.464242"], ["updated_at", "2019-04-15 00:17:42.464242"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:17:42.470113"], ["updated_at", "2019-04-15 00:17:42.470113"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:17:42 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (2.2ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:17:42.482143"], ["updated_at", "2019-04-15 00:17:42.482143"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 8ms (ActiveRecord: 3.1ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:17:42 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (6.5ms) +Completed 200 OK in 10ms (Views: 8.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:17:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:17:42.521349"], ["updated_at", "2019-04-15 00:17:42.521349"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:17:42 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:18:19.071807', '2019-04-15 00:18:19.071807'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:18:19.071807', '2019-04-15 00:18:19.071807') +  (39.7ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:18:19 -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.1ms) +Completed 200 OK in 226ms (Views: 216.7ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:18:19.425074"], ["updated_at", "2019-04-15 00:18:19.425074"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 12ms (Views: 4.1ms | ActiveRecord: 1.2ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.4ms) +Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:18:19.488306"], ["updated_at", "2019-04-15 00:18:19.488306"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:18:19.508119"], ["updated_at", "2019-04-15 00:18:19.508119"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 17:18:19 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 8ms (Views: 4.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:18:19.524087"], ["updated_at", "2019-04-15 00:18:19.524087"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:18:19.531305"], ["updated_at", "2019-04-15 00:18:19.531305"]] +  (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 +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:19:14.997081', '2019-04-15 00:19:14.997081'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:19:14.997081', '2019-04-15 00:19:14.997081') +  (1.2ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:19:15.022782"], ["updated_at", "2019-04-15 00:19:15.022782"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:19:15.028865"], ["updated_at", "2019-04-15 00:19:15.028865"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.5ms) +Completed 200 OK in 237ms (Views: 230.1ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (80.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:19:15.297733"], ["updated_at", "2019-04-15 00:19:15.297733"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 89ms (ActiveRecord: 81.6ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 4ms (Views: 2.1ms | 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-14 17:19:15 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.4ms) +  (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.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:19:15.417207"], ["updated_at", "2019-04-15 00:19:15.417207"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 9ms (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/edit" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:19:15.449536"], ["updated_at", "2019-04-15 00:19:15.449536"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 17:19:15 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (1.4ms) 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.7ms) +Completed 200 OK in 11ms (Views: 4.2ms | ActiveRecord: 1.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:20:24.768168', '2019-04-15 00:20:24.768168'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:20:24.768168', '2019-04-15 00:20:24.768168') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:20:24.794220"], ["updated_at", "2019-04-15 00:20:24.794220"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:20:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 232ms (Views: 223.0ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.7ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:20:25.051803"], ["updated_at", "2019-04-15 00:20:25.051803"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (2.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.5ms) SAVEPOINT active_record_1 + Task Create (6.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:20:25.067749"], ["updated_at", "2019-04-15 00:20:25.067749"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.7ms) +Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:20:25.127465"], ["updated_at", "2019-04-15 00:20:25.127465"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.8ms) +Completed 200 OK in 9ms (Views: 7.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:20:25.153316"], ["updated_at", "2019-04-15 00:20:25.153316"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:20:25 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:22:30.614592', '2019-04-15 00:22:30.614592'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:22:30.614592', '2019-04-15 00:22:30.614592') +  (1.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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:22:30.638723"], ["updated_at", "2019-04-15 00:22:30.638723"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 17:22:30 -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.2ms) +Completed 200 OK in 213ms (Views: 204.9ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:22:30 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:22:30.881052"], ["updated_at", "2019-04-15 00:22:30.881052"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 17:22:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:22:30 -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.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:22: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 (2.2ms) +Completed 200 OK in 8ms (Views: 3.4ms | 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-14 17:22:30 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:22:30 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:22:30 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:22:30.944168"], ["updated_at", "2019-04-15 00:22:30.944168"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 4ms (ActiveRecord: 0.8ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:22:30.953187"], ["updated_at", "2019-04-15 00:22:30.953187"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:22:30.957317"], ["updated_at", "2019-04-15 00:22:30.957317"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:25:17.709445', '2019-04-15 00:25:17.709445'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:25:17.709445', '2019-04-15 00:25:17.709445') +  (40.3ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:25:17 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:25:17.794240"], ["updated_at", "2019-04-15 00:25:17.794240"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 29ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:25:17 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (8.7ms) +Completed 200 OK in 205ms (Views: 202.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:25:18 -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.7ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:25:18 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (1.2ms) +Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:25:18.062428"], ["updated_at", "2019-04-15 00:25:18.062428"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:25:18.073269"], ["updated_at", "2019-04-15 00:25:18.073269"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.5ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:25:18.084910"], ["updated_at", "2019-04-15 00:25:18.084910"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 17:25:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.7ms) 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 7ms (Views: 2.0ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:25:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:25: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]] +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.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:25:18.111290"], ["updated_at", "2019-04-15 00:25:18.111290"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:25:18 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.0ms) +Completed 200 OK in 7ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:28:03.652273', '2019-04-15 00:28:03.652273'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:28:03.652273', '2019-04-15 00:28:03.652273') +  (15.8ms) COMMIT +  (0.1ms) BEGIN +  (0.9ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:03.693239"], ["updated_at", "2019-04-15 00:28:03.693239"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/1" for 127.0.0.1 at 2019-04-14 17:28:03 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]] +Completed 404 Not Found in 7ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:03.718976"], ["updated_at", "2019-04-15 00:28:03.718976"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:28:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:03.734393"], ["updated_at", "2019-04-15 00:28:03.734393"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:28:03 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 205ms (Views: 201.0ms | ActiveRecord: 0.3ms) +  (0.6ms) 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 17:28:03 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 5ms (Views: 2.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-14 17:28:03 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:03.967350"], ["updated_at", "2019-04-15 00:28:03.967350"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 17:28:03 -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 (33.1ms) +Completed 200 OK in 38ms (Views: 34.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:28:04 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:28:04 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (0.8ms) +Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:28:04 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:28:04.032930"], ["updated_at", "2019-04-15 00:28:04.032930"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.7ms) 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.2ms) BEGIN + Fixtures Load (0.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:28:24.097969', '2019-04-15 00:28:24.097969'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:28:24.097969', '2019-04-15 00:28:24.097969') +  (13.9ms) 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::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (3.1ms) +Completed 200 OK in 237ms (Views: 226.9ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:24.401011"], ["updated_at", "2019-04-15 00:28:24.401011"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.4ms) +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.3ms) +Completed 200 OK in 9ms (Views: 7.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:28:24.449362"], ["updated_at", "2019-04-15 00:28:24.449362"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:24.459219"], ["updated_at", "2019-04-15 00:28:24.459219"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 17:28: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/edit.html.erb within layouts/application (1.0ms) +Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:24.482030"], ["updated_at", "2019-04-15 00:28:24.482030"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 17:28:24 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (1.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:28:24.486432"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 2.0ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:28:24.498184"], ["updated_at", "2019-04-15 00:28:24.498184"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:30:17.898211', '2019-04-15 00:30:17.898211'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:30:17.898211', '2019-04-15 00:30:17.898211') +  (40.6ms) COMMIT +  (0.4ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:30:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:17.985971"], ["updated_at", "2019-04-15 00:30:17.985971"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 17:30:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (8.2ms) +Completed 200 OK in 196ms (Views: 192.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:18.190650"], ["updated_at", "2019-04-15 00:30:18.190650"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 7ms (Views: 2.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:30:18.231326"], ["updated_at", "2019-04-15 00:30:18.231326"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (3.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 5.2ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:18.250889"], ["updated_at", "2019-04-15 00:30:18.250889"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:18.257775"], ["updated_at", "2019-04-15 00:30:18.257775"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190967", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 (1.0ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:30:18.263753"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 7ms (ActiveRecord: 1.7ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:30: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.5ms) +Completed 200 OK in 6ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:30:18 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.3ms) BEGIN +  (1.1ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.7ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (2.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:30:42.752796', '2019-04-15 00:30:42.752796'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:30:42.752796', '2019-04-15 00:30:42.752796') +  (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::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:42.790453"], ["updated_at", "2019-04-15 00:30:42.790453"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 17:30:42 -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 (5.9ms) +Completed 200 OK in 204ms (Views: 194.7ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:43.024602"], ["updated_at", "2019-04-15 00:30:43.024602"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (3.2ms) SAVEPOINT active_record_1 + Task Create (2.1ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:43.051305"], ["updated_at", "2019-04-15 00:30:43.051305"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190965", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:30:43.061003"], ["id", 980190965]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 2.0ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:43.076032"], ["updated_at", "2019-04-15 00:30:43.076032"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:30:43 -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.1ms) +Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.7ms) +  (1.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 17:30:43 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 8ms (Views: 3.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:30:43.120368"], ["updated_at", "2019-04-15 00:30:43.120368"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 7ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:30:43.146729"], ["updated_at", "2019-04-15 00:30:43.146729"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:30:43 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:32:04.739369', '2019-04-15 00:32:04.739369'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:32:04.739369', '2019-04-15 00:32:04.739369') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:32:04 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.1ms) +Completed 200 OK in 231ms (Views: 218.0ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:32:05.010369"], ["updated_at", "2019-04-15 00:32:05.010369"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.0ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:32:05.027538"], ["updated_at", "2019-04-15 00:32:05.027538"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 17:32:05 -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 11ms (Views: 5.7ms | ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:32:05.057328"], ["updated_at", "2019-04-15 00:32:05.057328"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.5ms) 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 5ms (Views: 2.0ms | ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 5ms (Views: 1.6ms | 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-14 17:32: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.9ms) +Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:32:05.099729"], ["updated_at", "2019-04-15 00:32:05.099729"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:32:05.106087"], ["updated_at", "2019-04-15 00:32:05.106087"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190967", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:32:05.111347"], ["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.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:32:05.117994"], ["updated_at", "2019-04-15 00:32:05.117994"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:32:05 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:33:30.951377', '2019-04-15 00:33:30.951377'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:33:30.951377', '2019-04-15 00:33:30.951377') +  (1.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:33:30 -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::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:33:30.995027"], ["updated_at", "2019-04-15 00:33:30.995027"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:33:30 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 195ms (Views: 190.5ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:33:31.207094"], ["updated_at", "2019-04-15 00:33:31.207094"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 10ms (Views: 6.9ms | 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/edit" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.6ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 7ms (Views: 1.9ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.3ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:33:31.277525"], ["updated_at", "2019-04-15 00:33:31.277525"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 6ms (ActiveRecord: 1.1ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:33:31.290425"], ["updated_at", "2019-04-15 00:33:31.290425"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:33:31.301310"], ["updated_at", "2019-04-15 00:33:31.301310"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:33:31.307455"], ["updated_at", "2019-04-15 00:33:31.307455"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190968" for 127.0.0.1 at 2019-04-14 17:33:31 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190968", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:33:31.313151"], ["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 7ms (ActiveRecord: 1.1ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:16.798508', '2019-04-15 00:35:16.798508'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:16.798508', '2019-04-15 00:35:16.798508') +  (40.8ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:35:16 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:35:16.884160"], ["updated_at", "2019-04-15 00:35:16.884160"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 18ms (ActiveRecord: 1.2ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:35:16 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (7.3ms) +Completed 200 OK in 208ms (Views: 205.8ms | ActiveRecord: 0.0ms) +  (1.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:17.115156"], ["updated_at", "2019-04-15 00:35:17.115156"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 3.3ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 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.2ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:17.142377"], ["updated_at", "2019-04-15 00:35:17.142377"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 7ms (Views: 4.2ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.6ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (8.3ms) SAVEPOINT active_record_1 + Task Create (1.1ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:17.202991"], ["updated_at", "2019-04-15 00:35:17.202991"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.5ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:35:17.213621"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 7ms (ActiveRecord: 1.3ms) + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:17.226329"], ["updated_at", "2019-04-15 00:35:17.226329"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:17.235394"], ["updated_at", "2019-04-15 00:35:17.235394"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35:17 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:27.142483', '2019-04-15 00:35:27.142483'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:27.142483', '2019-04-15 00:35:27.142483') +  (1.3ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.7ms) +Completed 200 OK in 206ms (Views: 199.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (14.5ms) +Completed 200 OK in 21ms (Views: 16.7ms | ActiveRecord: 0.5ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (7.1ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:27.409319"], ["updated_at", "2019-04-15 00:35:27.409319"]] +  (8.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 13ms (Views: 5.1ms | ActiveRecord: 1.1ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35: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.8ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:27.469299"], ["updated_at", "2019-04-15 00:35:27.469299"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (1.0ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.0ms) +  (8.4ms) ROLLBACK +  (6.4ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (3.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:27.505615"], ["updated_at", "2019-04-15 00:35:27.505615"]] +  (28.5ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190965", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] +  (0.4ms) SAVEPOINT active_record_1 + Task Update (1.0ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:35:27.546939"], ["id", 980190965]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 2.9ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:27.560446"], ["updated_at", "2019-04-15 00:35:27.560446"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:27.573679"], ["updated_at", "2019-04-15 00:35:27.573679"]] +  (1.6ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (9.4ms) +Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.6ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:35:27.621430"], ["updated_at", "2019-04-15 00:35:27.621430"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 11ms (ActiveRecord: 3.1ms) +  (1.0ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (1.6ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:35:27 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.9ms) +Completed 200 OK in 11ms (Views: 5.4ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.3ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.0ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:40.342410', '2019-04-15 00:35:40.342410'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:35:40.342410', '2019-04-15 00:35:40.342410') +  (1.3ms) 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.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:40.369593"], ["updated_at", "2019-04-15 00:35:40.369593"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.7ms) +Completed 200 OK in 178ms (Views: 169.0ms | ActiveRecord: 0.5ms) +  (11.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.7ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.9ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:40.586932"], ["updated_at", "2019-04-15 00:35:40.586932"]] +  (2.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:40.612194"], ["updated_at", "2019-04-15 00:35:40.612194"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190965" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190965", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 Update (1.9ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 00:35:40.620575"], ["id", 980190965]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 10ms (ActiveRecord: 2.8ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.8ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:40.638165"], ["updated_at", "2019-04-15 00:35:40.638165"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.3ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (3.0ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 13ms (Views: 4.9ms | ActiveRecord: 3.0ms) +  (2.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.7ms) +Completed 200 OK in 7ms (Views: 3.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (1.8ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:35:40.687619"], ["updated_at", "2019-04-15 00:35:40.687619"]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (6.8ms) +Completed 200 OK in 16ms (Views: 10.6ms | 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/edit" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.3ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (2.8ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:35:40 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:35:40.751961"], ["updated_at", "2019-04-15 00:35:40.751961"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 6ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:36:07.444330', '2019-04-15 00:36:07.444330'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 00:36:07.444330', '2019-04-15 00:36:07.444330') +  (1.1ms) 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::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (4.1ms) +Completed 200 OK in 182ms (Views: 170.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 00:36:07.666199"], ["updated_at", "2019-04-15 00:36:07.666199"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.7ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 12ms (ActiveRecord: 2.0ms) +  (0.8ms) SELECT COUNT(*) FROM "tasks" + Task Load (1.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 17:36:07 -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.0ms) +Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 0.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:36:07.718021"], ["updated_at", "2019-04-15 00:36:07.718021"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964" for 127.0.0.1 at 2019-04-14 17:36:07 -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.2ms) +Completed 200 OK in 8ms (Views: 4.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-04-14 17:36:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:36:07.739861"], ["updated_at", "2019-04-15 00:36:07.739861"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:36:07.763383"], ["updated_at", "2019-04-15 00:36:07.763383"]] +  (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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 00:36:07.768087"], ["updated_at", "2019-04-15 00:36:07.768087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 17:36:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.1ms) ROLLBACK +  (13.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.6ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:28:11.996053', '2019-04-15 02:28:11.996053'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:28:11.996053', '2019-04-15 02:28:11.996053') +  (18.6ms) COMMIT +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.039853"], ["updated_at", "2019-04-15 02:28:12.039853"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963" for 127.0.0.1 at 2019-04-14 19:28:12 -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.2ms) +Completed 200 OK in 262ms (Views: 251.0ms | ActiveRecord: 0.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.333857"], ["updated_at", "2019-04-15 02:28:12.333857"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 19:28: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 (7.9ms) +Completed 200 OK in 13ms (Views: 9.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.358214"], ["updated_at", "2019-04-15 02:28:12.358214"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.7ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.365108"], ["updated_at", "2019-04-15 02:28:12.365108"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:28:12.377258"], ["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.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.386237"], ["updated_at", "2019-04-15 02:28:12.386237"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.6ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:28:12.398827"], ["updated_at", "2019-04-15 02:28:12.398827"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190968/delete" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.3ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 1.1ms) +  (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-14 19:28:12 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 8ms (Views: 4.6ms | 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-14 19:28:12 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.6ms) +Completed 200 OK in 7ms (Views: 2.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:28:12 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:28:12.447384"], ["updated_at", "2019-04-15 02:28:12.447384"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:07.207994', '2019-04-15 02:29:07.207994'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:07.207994', '2019-04-15 02:29:07.207994') +  (40.1ms) COMMIT +  (0.3ms) BEGIN +  (0.5ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.273843"], ["updated_at", "2019-04-15 02:29:07.273843"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190963" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190963", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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.3ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:29:07.294489"], ["id", 980190963]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 13ms (ActiveRecord: 1.1ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.305535"], ["updated_at", "2019-04-15 02:29:07.305535"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.315605"], ["updated_at", "2019-04-15 02:29:07.315605"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:29:07.323275"], ["updated_at", "2019-04-15 02:29:07.323275"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (9.1ms) +Completed 200 OK in 241ms (Views: 239.1ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (1.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.581503"], ["updated_at", "2019-04-15 02:29:07.581503"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967/edit" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190967"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 0.4ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.7ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.617686"], ["updated_at", "2019-04-15 02:29:07.617686"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190968/delete" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190968"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190968], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190968]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.9ms) +  (1.1ms) SELECT COUNT(*) FROM "tasks" +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) +  (0.8ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.6ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:07.654973"], ["updated_at", "2019-04-15 02:29:07.654973"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 6ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:07 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.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.2ms) BEGIN + Fixtures Load (0.7ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:19.743984', '2019-04-15 02:29:19.743984'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:19.743984', '2019-04-15 02:29:19.743984') +  (40.0ms) COMMIT +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:19.814145"], ["updated_at", "2019-04-15 02:29:19.814145"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 19:29: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/edit.html.erb within layouts/application (5.0ms) +Completed 200 OK in 284ms (Views: 271.3ms | ActiveRecord: 1.1ms) +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:20.123564"], ["updated_at", "2019-04-15 02:29:20.123564"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190964/delete" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) 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 5ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (2.7ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:20.181039"], ["updated_at", "2019-04-15 02:29:20.181039"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 10ms (Views: 4.2ms | ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.7ms) +Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.0ms) +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 0.6ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:20.236189"], ["updated_at", "2019-04-15 02:29:20.236189"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (1.1ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:29:20.243130"], ["id", 980190966]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 13ms (ActiveRecord: 2.1ms) + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:20.260977"], ["updated_at", "2019-04-15 02:29:20.260977"]] +  (0.2ms) 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 +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:20.267673"], ["updated_at", "2019-04-15 02:29:20.267673"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.2ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:29:20 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:29:20.287304"], ["updated_at", "2019-04-15 02:29:20.287304"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190969 +Completed 302 Found in 3ms (ActiveRecord: 0.8ms) +  (0.5ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.2ms) BEGIN +  (0.6ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.5ms) COMMIT +  (0.2ms) BEGIN + Fixtures Load (1.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:37.691635', '2019-04-15 02:29:37.691635'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:29:37.691635', '2019-04-15 02:29:37.691635') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:37.724643"], ["updated_at", "2019-04-15 02:29:37.724643"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190963/delete" for 127.0.0.1 at 2019-04-14 19:29:37 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190963"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190963], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.3ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190963]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 9ms (ActiveRecord: 1.0ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:29:37 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (5.7ms) +Completed 200 OK in 241ms (Views: 238.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:29:37 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:29:37.999361"], ["updated_at", "2019-04-15 02:29:37.999361"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 6ms (ActiveRecord: 1.2ms) +  (0.6ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.5ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:38.017979"], ["updated_at", "2019-04-15 02:29:38.017979"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 8ms (Views: 4.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.3ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:38.043303"], ["updated_at", "2019-04-15 02:29:38.043303"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 19:29:38 -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.7ms) +Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:38.066159"], ["updated_at", "2019-04-15 02:29:38.066159"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190967", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.5ms) SAVEPOINT active_record_1 + Task Update (0.6ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:29:38.076035"], ["id", 980190967]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 11ms (ActiveRecord: 1.9ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:38.087188"], ["updated_at", "2019-04-15 02:29:38.087188"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:29:38.101356"], ["updated_at", "2019-04-15 02:29:38.101356"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:29:38 -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.2ms) +Completed 200 OK in 7ms (Views: 3.8ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 19:29:38 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 5ms (Views: 1.8ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (1.2ms) 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.3ms) BEGIN + Fixtures Load (3.8ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:31:26.874706', '2019-04-15 02:31:26.874706'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:31:26.874706', '2019-04-15 02:31:26.874706') +  (19.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:31:26 -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 (9.1ms) +Completed 200 OK in 223ms (Views: 216.2ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.5ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (7.8ms) +Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.0ms) +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:31:27.200626"], ["updated_at", "2019-04-15 02:31:27.200626"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 7ms (ActiveRecord: 1.2ms) +  (0.4ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.216992"], ["updated_at", "2019-04-15 02:31:27.216992"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190964/delete" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.2ms) 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 3ms (ActiveRecord: 0.7ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.228913"], ["updated_at", "2019-04-15 02:31:27.228913"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965/edit" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.254087"], ["updated_at", "2019-04-15 02:31:27.254087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190966" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190966", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:31:27.259649"], ["id", 980190966]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190966 +Completed 302 Found in 8ms (ActiveRecord: 1.0ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.270399"], ["updated_at", "2019-04-15 02:31:27.270399"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.279839"], ["updated_at", "2019-04-15 02:31:27.279839"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:27.291816"], ["updated_at", "2019-04-15 02:31:27.291816"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190969" for 127.0.0.1 at 2019-04-14 19:31:27 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:31:46.093395', '2019-04-15 02:31:46.093395'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:31:46.093395', '2019-04-15 02:31:46.093395') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.5ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:31:46.128834"], ["updated_at", "2019-04-15 02:31:46.128834"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190963 +Completed 302 Found in 16ms (ActiveRecord: 1.1ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (3.7ms) +Completed 200 OK in 200ms (Views: 196.6ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (1.8ms) SAVEPOINT active_record_1 + Task Create (1.0ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:46.348795"], ["updated_at", "2019-04-15 02:31:46.348795"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190964/edit" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] + Rendering tasks/edit.html.erb within layouts/application + Rendered tasks/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 0.3ms) +  (1.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (2.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 5ms (ActiveRecord: 2.6ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------- +TasksController::index: test_0002_can get the root path +------------------------------------------------------- +Started GET "/" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.9ms) +Completed 200 OK in 9ms (Views: 3.1ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:46.426042"], ["updated_at", "2019-04-15 02:31:46.426042"]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190965" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190965"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190965], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 8ms (Views: 2.8ms | ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:46.454632"], ["updated_at", "2019-04-15 02:31:46.454632"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:46.468525"], ["updated_at", "2019-04-15 02:31:46.468525"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 19:31:46 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190967", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.4ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:31:46.474472"], ["id", 980190967]] +  (2.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 9ms (ActiveRecord: 2.9ms) + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:31:46.487481"], ["updated_at", "2019-04-15 02:31:46.487481"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.1ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (0.1ms) BEGIN +  (0.3ms) ALTER TABLE "tasks" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Fixtures Load (0.5ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:32:57.870357', '2019-04-15 02:32:57.870357'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:32:57.870357', '2019-04-15 02:32:57.870357') +  (1.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:57.895392"], ["updated_at", "2019-04-15 02:32:57.895392"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:32:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.1ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:57.919391"], ["updated_at", "2019-04-15 02:32:57.919391"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190964" for 127.0.0.1 at 2019-04-14 19:32:57 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190964", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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 "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:32:57.925043"], ["id", 980190964]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190964 +Completed 302 Found in 5ms (ActiveRecord: 0.9ms) + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------------- +TasksController::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:57.933151"], ["updated_at", "2019-04-15 02:32:57.933151"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.6ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:57.940718"], ["updated_at", "2019-04-15 02:32:57.940718"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966/edit" for 127.0.0.1 at 2019-04-14 19:32:57 -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 (4.0ms) +Completed 200 OK in 216ms (Views: 213.3ms | ActiveRecord: 0.2ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:32:58 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:32:58 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"-1"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (1.4ms) BEGIN +----------------------------------------------------- +TasksController::show: test_0001_can get a valid task +----------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:58.186958"], ["updated_at", "2019-04-15 02:32:58.186958"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190967" for 127.0.0.1 at 2019-04-14 19:32:58 -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 (2.6ms) +Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:32:58 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.4ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:32:58.211288"], ["updated_at", "2019-04-15 02:32:58.211288"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.6ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190968 +Completed 302 Found in 5ms (ActiveRecord: 1.4ms) +  (0.3ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.5ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:32:58 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.6ms | 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-14 19:32:58 -0700 +Processing by TasksController#index as HTML + Rendering tasks/index.html.erb within layouts/application + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" + Rendered tasks/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 8ms (Views: 4.4ms | 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-14 19:32:58 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.3ms) +Completed 200 OK in 4ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.4ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:32:58.252664"], ["updated_at", "2019-04-15 02:32:58.252664"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190969/delete" for 127.0.0.1 at 2019-04-14 19:32:58 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190969"} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190969], ["LIMIT", 1]] +  (0.1ms) SAVEPOINT active_record_1 + Task Destroy (0.4ms) DELETE FROM "tasks" WHERE "tasks"."id" = $1 [["id", 980190969]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.9ms) +  (0.2ms) SELECT COUNT(*) FROM "tasks" +  (0.2ms) ROLLBACK +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC +  (1.9ms) 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.2ms) DELETE FROM "tasks"; +INSERT INTO "tasks" ("id", "name", "description", "completion_date", "created_at", "updated_at") VALUES (980190962, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:36:38.108638', '2019-04-15 02:36:38.108638'), (298486374, 'MyString', 'MyString', '2019-04-09', '2019-04-15 02:36:38.108638', '2019-04-15 02:36:38.108638') +  (35.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ALTER TABLE "tasks" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL +  (0.1ms) COMMIT +  (0.1ms) BEGIN +--------------------------------------------------------------------------- +TasksController::edit: test_0001_can get the edit page for an existing task +--------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.8ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.172459"], ["updated_at", "2019-04-15 02:36:38.172459"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190963/edit" for 127.0.0.1 at 2019-04-14 19:36:38 -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 (6.8ms) +Completed 200 OK in 263ms (Views: 252.2ms | ActiveRecord: 0.4ms) +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------------------------------------------ +TasksController::edit: test_0002_will respond with redirect when attempting to edit a nonexistant task +------------------------------------------------------------------------------------------------------ +Started GET "/tasks/-1/edit" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#edit as HTML + Parameters: {"id"=>"-1"} + Task Load (0.4ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", -1], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +--------------------------------------------------------------------- +TasksController::delete: test_0001_deletes the task from the database +--------------------------------------------------------------------- +  (0.3ms) SAVEPOINT active_record_1 + Task Create (0.6ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.463239"], ["updated_at", "2019-04-15 02:36:38.463239"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +Started DELETE "/tasks/980190964/delete" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#delete as HTML + Parameters: {"id"=>"980190964"} + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190964], ["LIMIT", 1]] +  (1.6ms) SAVEPOINT active_record_1 + Task Destroy (0.5ms) 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 6ms (ActiveRecord: 3.1ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::delete: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +Started DELETE "/tasks/-1/delete" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#delete 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.3ms) BEGIN +-------------------------------------------------------- +TasksController::create: test_0002_can create a new task +-------------------------------------------------------- +  (1.8ms) SELECT COUNT(*) FROM "tasks" +Started POST "/tasks" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#create as HTML + Parameters: {"task"=>{"name"=>"new task", "description"=>"new task description"}} +  (0.4ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["name", "new task"], ["description", "new task description"], ["created_at", "2019-04-15 02:36:38.508880"], ["updated_at", "2019-04-15 02:36:38.508880"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +Redirected to http://www.example.com/tasks/980190965 +Completed 302 Found in 7ms (ActiveRecord: 1.6ms) +  (0.9ms) SELECT COUNT(*) FROM "tasks" + Task Load (0.8ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "new task"], ["LIMIT", 1]] +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------ +TasksController::create: test_0001_can get the new task page +------------------------------------------------------------ +Started GET "/tasks/create" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#create as HTML + Rendering tasks/create.html.erb within layouts/application + Rendered tasks/create.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +----------------------------- +Task: test_0001_must be valid +----------------------------- +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +-------------------------------------------------------- +TasksController::index: test_0001_can get the index path +-------------------------------------------------------- +Started GET "/tasks" for 127.0.0.1 at 2019-04-14 19:36:38 -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-14 19:36:38 -0700 +Processing by TasksController#root as HTML + Rendering tasks/root.html.erb within layouts/application + Rendered tasks/root.html.erb within layouts/application (0.4ms) +Completed 200 OK in 8ms (Views: 4.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.3ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.560621"], ["updated_at", "2019-04-15 02:36:38.560621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/tasks/980190966" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#show as HTML + Parameters: {"id"=>"980190966"} + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190966], ["LIMIT", 1]] + Rendering tasks/show.html.erb within layouts/application + Rendered tasks/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +------------------------------------------------------------------ +TasksController::show: test_0002_will redirect for an invalid task +------------------------------------------------------------------ +Started GET "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:36: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 2ms (ActiveRecord: 0.3ms) +  (0.3ms) ROLLBACK +  (0.4ms) BEGIN +-------------------------------------------------------------- +TasksController::update: test_0001_can update an existing task +-------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.582921"], ["updated_at", "2019-04-15 02:36:38.582921"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/980190967" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"980190967", "task"=>{"name"=>"update task", "description"=>"update task description"}} + Task Load (0.2ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."id" = $1 LIMIT $2 [["id", 980190967], ["LIMIT", 1]] +  (0.2ms) SAVEPOINT active_record_1 + Task Update (0.7ms) UPDATE "tasks" SET "name" = $1, "description" = $2, "updated_at" = $3 WHERE "tasks"."id" = $4 [["name", "update task"], ["description", "update task description"], ["updated_at", "2019-04-15 02:36:38.591021"], ["id", 980190967]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/tasks/980190967 +Completed 302 Found in 8ms (ActiveRecord: 1.3ms) + Task Load (0.3ms) SELECT "tasks".* FROM "tasks" WHERE "tasks"."name" = $1 LIMIT $2 [["name", "update task"], ["LIMIT", 1]] +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +---------------------------------------------------------------------------------------- +TasksController::update: test_0002_will redirect to the root page if given an invalid id +---------------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.7ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.601914"], ["updated_at", "2019-04-15 02:36:38.601914"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started PATCH "/tasks/-1" for 127.0.0.1 at 2019-04-14 19:36:38 -0700 +Processing by TasksController#update as HTML + Parameters: {"id"=>"-1", "task"=>{"name"=>"update task", "description"=>"update task description"}} + 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::update: test_0003_will throw a error if there is an invalid name +--------------------------------------------------------------------------------- +  (0.2ms) SAVEPOINT active_record_1 + Task Create (0.5ms) INSERT INTO "tasks" ("name", "description", "completion_date", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["name", "sample task"], ["description", "this is an example for a test"], ["completion_date", "2019-04-19"], ["created_at", "2019-04-15 02:36:38.613646"], ["updated_at", "2019-04-15 02:36:38.613646"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK diff --git a/package.json b/package.json new file mode 100644 index 000000000..f9cbc5515 --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "name": "TaskList", + "private": true, + "dependencies": {} +} diff --git a/public/404.html b/public/404.html new file mode 100644 index 000000000..2be3af26f --- /dev/null +++ b/public/404.html @@ -0,0 +1,67 @@ + + + + The page you were looking for doesn't exist (404) + + + + + + +
+
+

The page you were looking for doesn't exist.

+

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

+
+

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

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

The change you wanted was rejected.

+

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

+
+

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

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

We're sorry, but something went wrong.

+
+

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

+
+ + diff --git a/public/apple-touch-icon-precomposed.png b/public/apple-touch-icon-precomposed.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png new file mode 100644 index 000000000..e69de29bb diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 000000000..e69de29bb diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 000000000..37b576a4a --- /dev/null +++ b/public/robots.txt @@ -0,0 +1 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/storage/.keep b/storage/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb new file mode 100644 index 000000000..d19212abd --- /dev/null +++ b/test/application_system_test_case.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class ApplicationSystemTestCase < ActionDispatch::SystemTestCase + driven_by :selenium, using: :chrome, screen_size: [1400, 1400] +end diff --git a/test/controllers/tasks_controller_test.rb b/test/controllers/tasks_controller_test.rb index 971913898..1bc40065e 100644 --- a/test/controllers/tasks_controller_test.rb +++ b/test/controllers/tasks_controller_test.rb @@ -28,7 +28,6 @@ # Unskip these tests for Wave 2 describe "show" do it "can get a valid task" do - skip # Act get task_path(task.id) @@ -37,7 +36,6 @@ end it "will redirect for an invalid task" do - skip # Act get task_path(-1) @@ -47,28 +45,21 @@ end end - describe "new" do + describe "create" do it "can get the new task page" do - skip - # Act - get new_task_path + get create_task_path # Assert must_respond_with :success end - end - describe "create" do it "can create a new task" do - skip - # Arrange task_hash = { task: { name: "new task", - description: "new task description", - completion_date: nil, + description: "new task description" }, } @@ -79,8 +70,11 @@ 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] + # Completion dates for new tasks are nil since + # they start out incomplete. + assert_nil(new_task.completion_date) + # I use completion date to track completion. + # expect(new_task.completed).must_equal task_hash[:task][:completed] must_respond_with :redirect must_redirect_to task_path(new_task.id) @@ -90,39 +84,94 @@ # 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 + # Act + get edit_task_path(task.id) + + # Assert + must_respond_with :success end it "will respond with redirect when attempting to edit a nonexistant task" do - skip - # Your code here + # Act + get edit_task_path(-1) + + # Assert + must_respond_with :redirect + expect(flash[:error]).must_equal "Could not find task with id: -1" end end # Uncomment and complete these tests for Wave 3 describe "update" do - # Note: If there was a way to fail to save the changes to a task, that would be a great - # thing to test. + # 'Let' makes tests shorter by reusing the same variable + # across tests. + let (:task_hash) { + { + id: task.id, + task: { + name: "update task", + description: "update task description" + }, + } + } + it "can update an existing task" do - skip - # Your code here + # Act-Assert + #expect { + patch update_task_path(task_hash[:id]), params: task_hash + #}.must_change "Task.count", 0 + + updated_task = Task.find_by(name: task_hash[:task][:name]) + expect(updated_task.description).must_equal task_hash[:task][:description] + + must_respond_with :redirect + must_redirect_to task_path(updated_task.id) end it "will redirect to the root page if given an invalid id" do - skip - # Your code here + # Arrange + task_hash[:id] = -1 + + # Act + patch update_task_path(task_hash[:id]), params: task_hash + + # Assert + must_respond_with :redirect + expect(flash[:error]).must_equal "Could not find task with id: -1" + end + + it "will throw a error if there is an invalid name" do + # Arrange + task_hash[:name] = 45 + + # Act-Assert + assert_raise(Exception) { patch update_task_path, params: task_hash } end end # Complete these tests for Wave 4 - describe "destroy" do - # Your tests go here + describe "delete" do + it 'deletes the task from the database' do + #expect { + delete delete_task_path(task.id) + #}.must_change Task.count, -1 + + must_respond_with :redirect + must_redirect_to tasks_path + end + it "will redirect to the root page if given an invalid id" do + # Act + delete delete_task_path(-1) + + # Assert + must_respond_with :redirect + expect(flash[:error]).must_equal "Could not find task with id: -1" + end end # Complete for Wave 4 describe "toggle_complete" do - # Your tests go here + end end diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/files/.keep b/test/fixtures/files/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/fixtures/tasks.yml b/test/fixtures/tasks.yml new file mode 100644 index 000000000..7bf25359e --- /dev/null +++ b/test/fixtures/tasks.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + description: MyString + completion_date: 2019-04-09 + +two: + name: MyString + description: MyString + completion_date: 2019-04-09 diff --git a/test/helpers/.keep b/test/helpers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/integration/.keep b/test/integration/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/mailers/.keep b/test/mailers/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/.keep b/test/models/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/models/task_test.rb b/test/models/task_test.rb new file mode 100644 index 000000000..7928a374f --- /dev/null +++ b/test/models/task_test.rb @@ -0,0 +1,9 @@ +require "test_helper" + +describe Task do + let(:task) { Task.new } + + it "must be valid" do + value(task).must_be :valid? + end +end diff --git a/test/system/.keep b/test/system/.keep new file mode 100644 index 000000000..e69de29bb diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 000000000..10594a324 --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,26 @@ +ENV["RAILS_ENV"] = "test" +require File.expand_path("../../config/environment", __FILE__) +require "rails/test_help" +require "minitest/rails" +require "minitest/reporters" # for Colorized output + +# For colorful output! +Minitest::Reporters.use!( + Minitest::Reporters::SpecReporter.new, + ENV, + Minitest.backtrace_filter +) + + +# To add Capybara feature tests add `gem "minitest-rails-capybara"` +# to the test group in the Gemfile and uncomment the following: +# require "minitest/rails/capybara" + +# Uncomment for awesome colorful output +# require "minitest/pride" + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + # Add more helper methods to be used by all tests here... +end diff --git a/vendor/.keep b/vendor/.keep new file mode 100644 index 000000000..e69de29bb