diff --git a/T5/.rake_tasks~ b/T5/.rake_tasks~ new file mode 100644 index 0000000000000000000000000000000000000000..e5aaacb7a3d3c25062249efec6b62efab96fecda --- /dev/null +++ b/T5/.rake_tasks~ @@ -0,0 +1,42 @@ +about +app:template +app:update +assets:clean[keep] +assets:clobber +assets:environment +assets:precompile +cache_digests:dependencies +cache_digests:nested_dependencies +db:create +db:drop +db:environment:set +db:fixtures:load +db:migrate +db:migrate:status +db:rollback +db:schema:cache:clear +db:schema:cache:dump +db:schema:dump +db:schema:load +db:seed +db:setup +db:structure:dump +db:structure:load +db:version +dev:cache +initializers +log:clear +middleware +notes +notes:custom +restart +routes +secret +stats +test +test:db +test:system +time:zones[country_or_offset] +tmp:clear +tmp:create +yarn:install diff --git a/T5/Gemfile b/T5/Gemfile index 2091ba9c4c84b9f96e065a8bc75b2d7bac725f07..c958047ca988e1c1d30e0ee16f35ba1d50f0e60f 100644 --- a/T5/Gemfile +++ b/T5/Gemfile @@ -10,6 +10,8 @@ end gem 'rails', '~> 5.1.5' # Use sqlite3 as the database for Active Record gem 'sqlite3' +# Use ActiveModel has_secure_password +gem "bcrypt" # Use Puma as the app server gem 'puma', '~> 3.7' # Use SCSS for stylesheets @@ -18,6 +20,8 @@ gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' # See https://github.com/rails/execjs#readme for more supported runtimes # gem 'therubyracer', platforms: :ruby +gem 'jquery-rails' +gem 'jquery-ui-rails' # Use CoffeeScript for .coffee assets and views gem 'coffee-rails', '~> 4.2' diff --git a/T5/Gemfile.lock b/T5/Gemfile.lock index d404866a398c347a8c2115341b5da5fecfe7d398..dbeedacbdf7bde75e6daac1d061f3a894a60e2e1 100644 --- a/T5/Gemfile.lock +++ b/T5/Gemfile.lock @@ -41,6 +41,7 @@ GEM addressable (2.5.2) public_suffix (>= 2.0.2, < 4.0) arel (8.0.0) + bcrypt (3.1.12) bindex (0.5.0) builder (3.2.3) byebug (10.0.0) @@ -72,6 +73,12 @@ GEM jbuilder (2.7.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-ui-rails (6.0.1) + railties (>= 3.2.16) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) @@ -175,10 +182,13 @@ PLATFORMS ruby DEPENDENCIES + bcrypt byebug capybara (~> 2.13) coffee-rails (~> 4.2) jbuilder (~> 2.5) + jquery-rails + jquery-ui-rails listen (>= 3.0.5, < 3.2) puma (~> 3.7) rails (~> 5.1.5) @@ -193,4 +203,4 @@ DEPENDENCIES web-console (>= 3.3.0) BUNDLED WITH - 1.16.1 + 1.16.2 diff --git a/T5/app/assets/images/SteamDB-Big.png b/T5/app/assets/images/SteamDB-Big.png new file mode 100644 index 0000000000000000000000000000000000000000..12cdc65b6e720739af2223e52389e54e5b8a00db Binary files /dev/null and b/T5/app/assets/images/SteamDB-Big.png differ diff --git a/T5/app/assets/javascripts/application.js b/T5/app/assets/javascripts/application.js index 46b20359fad6cb15808924074bdcdb1d053d01fe..506dc8566192e5b0423dbe786886892e41385a2d 100644 --- a/T5/app/assets/javascripts/application.js +++ b/T5/app/assets/javascripts/application.js @@ -13,3 +13,6 @@ //= require rails-ujs //= require turbolinks //= require_tree . +//= require jquery +//= require jquery-ui +//= require jquery-ui/effects/effect-blind \ No newline at end of file diff --git a/T5/app/assets/javascripts/categories.coffee b/T5/app/assets/javascripts/categories.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/categories.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/developers.coffee b/T5/app/assets/javascripts/developers.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/developers.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/games.coffee b/T5/app/assets/javascripts/games.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/games.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/home.coffee b/T5/app/assets/javascripts/home.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/home.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/prices.coffee b/T5/app/assets/javascripts/prices.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/prices.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/sessions.coffee b/T5/app/assets/javascripts/sessions.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/sessions.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/javascripts/user.coffee b/T5/app/assets/javascripts/user.coffee new file mode 100644 index 0000000000000000000000000000000000000000..24f83d18bbd38c24c4f7c3c2fc360cd68e857a2a --- /dev/null +++ b/T5/app/assets/javascripts/user.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/T5/app/assets/stylesheets/categories.scss b/T5/app/assets/stylesheets/categories.scss new file mode 100644 index 0000000000000000000000000000000000000000..42976cbc11dd56b8bbd8bca003c246bee9b45121 --- /dev/null +++ b/T5/app/assets/stylesheets/categories.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Categories controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/assets/stylesheets/developers.scss b/T5/app/assets/stylesheets/developers.scss new file mode 100644 index 0000000000000000000000000000000000000000..b6d86ace7c68baab9f67bc723d088a7c43222e48 --- /dev/null +++ b/T5/app/assets/stylesheets/developers.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Developers controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/assets/stylesheets/games.scss b/T5/app/assets/stylesheets/games.scss new file mode 100644 index 0000000000000000000000000000000000000000..3e6a7eccffba51448cd01dae813382769c4a2aa8 --- /dev/null +++ b/T5/app/assets/stylesheets/games.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Games controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/assets/stylesheets/home.scss b/T5/app/assets/stylesheets/home.scss new file mode 100644 index 0000000000000000000000000000000000000000..87df098b16b169eaf8956da5bfd1eecd6ea81016 --- /dev/null +++ b/T5/app/assets/stylesheets/home.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Home controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ \ No newline at end of file diff --git a/T5/app/assets/stylesheets/prices.scss b/T5/app/assets/stylesheets/prices.scss new file mode 100644 index 0000000000000000000000000000000000000000..3c2b744ffe0ee4800560fcfcd3c1796ba04c829d --- /dev/null +++ b/T5/app/assets/stylesheets/prices.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Prices controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/assets/stylesheets/scaffolds.scss b/T5/app/assets/stylesheets/scaffolds.scss new file mode 100644 index 0000000000000000000000000000000000000000..83b5c31ccc20c914306a77d13b6216b1c3cd843d --- /dev/null +++ b/T5/app/assets/stylesheets/scaffolds.scss @@ -0,0 +1,110 @@ +body { + background-color: #333; + color: #fff; + margin: 0; + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +p, ol, ul, td { + font-family: verdana, arial, helvetica, sans-serif; + font-size: 13px; + line-height: 18px; +} + +pre { + background-color: #eee; + padding: 10px; + font-size: 11px; +} + +a { + color: #fff; + + &:visited { + color: #dedede; + } + + &:hover { + color: #fff; + background-color: #000; + } +} + +th { + padding-bottom: 5px; +} + +td { + padding: 0 5px 7px; +} + +div { + &.field, &.actions { + margin-bottom: 10px; + } +} + +#notice { + color: green; +} + +.field_with_errors { + padding: 2px; + background-color: red; + display: table; +} + +#error_explanation { + width: 450px; + border: 2px solid red; + padding: 7px 7px 0; + margin-bottom: 20px; + background-color: #333; + + h2 { + text-align: left; + font-weight: bold; + padding: 5px 5px 5px 15px; + font-size: 12px; + margin: -7px -7px 0; + background-color: #c00; + color: #fff; + } + + ul li { + font-size: 12px; + list-style: square; + } +} + +label { + display: block; +} + +header { + text-align: center; + height: 80px; + nav { + padding-top: 30px; + ul { + margin: 0; + li { + list-style: none; + display: inline; + a { + text-decoration: none; + font-size: 18px; + } + padding: 0px 20px 0px; + } + } + } + margin-bottom: 80px; + background-color: #000; +} + +section { + margin: 63px; +} \ No newline at end of file diff --git a/T5/app/assets/stylesheets/sessions.scss b/T5/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000000000000000000000000000000000000..7bef9cf826b29fabbde16705b0c2313ede08201d --- /dev/null +++ b/T5/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/assets/stylesheets/user.scss b/T5/app/assets/stylesheets/user.scss new file mode 100644 index 0000000000000000000000000000000000000000..7c5eca9cc1d6a9e901ea3a1936b46dd6593c8518 --- /dev/null +++ b/T5/app/assets/stylesheets/user.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the user controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/T5/app/controllers/application_controller.rb b/T5/app/controllers/application_controller.rb index 1c07694e9d9f40e62ed5c07ae23bec2d2ec90d74..587126b0113286e839abe11db4ab7f0841b4ebcc 100644 --- a/T5/app/controllers/application_controller.rb +++ b/T5/app/controllers/application_controller.rb @@ -1,3 +1,15 @@ class ApplicationController < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. protect_from_forgery with: :exception -end + + def current_user + @current_user ||= User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + + def authorize + redirect_to '/login' unless current_user + end + +end \ No newline at end of file diff --git a/T5/app/controllers/categories_controller.rb b/T5/app/controllers/categories_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..d6b6a6a9c8665d06cd737a84e753e21521d6c5c6 --- /dev/null +++ b/T5/app/controllers/categories_controller.rb @@ -0,0 +1,83 @@ +class CategoriesController < ApplicationController + before_action :set_category, only: [:show, :edit, :update, :destroy] + before_action :authorize + + # GET /categories + # GET /categories.json + def index + if params[:name].present? + @categories = Category.where("name LIKE ?", "%#{params[:name]}%") + else + @categories = Category.all + end + respond_to do |format| + format.html # index.html.erb + format.js # index.js.erb + end + end + + # GET /categories/1 + # GET /categories/1.json + def show + end + + # GET /categories/new + def new + @category = Category.new + end + + # GET /categories/1/edit + def edit + end + + # POST /categories + # POST /categories.json + def create + @category = Category.new(category_params) + + respond_to do |format| + if @category.save + format.html { redirect_to @category, notice: 'Category was successfully created.' } + format.json { render :show, status: :created, location: @category } + else + format.html { render :new } + format.json { render json: @category.errors, status: :unprocessable_entity } + end + end + end + + # PATCH/PUT /categories/1 + # PATCH/PUT /categories/1.json + def update + respond_to do |format| + if @category.update(category_params) + format.html { redirect_to @category, notice: 'Category was successfully updated.' } + format.json { render :show, status: :ok, location: @category } + else + format.html { render :edit } + format.json { render json: @category.errors, status: :unprocessable_entity } + end + end + end + + # DELETE /categories/1 + # DELETE /categories/1.json + def destroy + @category.destroy + respond_to do |format| + format.html { redirect_to categories_url, notice: 'Category was successfully destroyed.' } + format.json { head :no_content } + end + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_category + @category = Category.find(params[:id]) + end + + # Never trust parameters from the scary internet, only allow the white list through. + def category_params + params.require(:category).permit(:name, :description) + end +end diff --git a/T5/app/controllers/developers_controller.rb b/T5/app/controllers/developers_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..8dc0cd00f72760480e2deedba504c6d567cdc5f7 --- /dev/null +++ b/T5/app/controllers/developers_controller.rb @@ -0,0 +1,83 @@ +class DevelopersController < ApplicationController + before_action :set_developer, only: [:show, :edit, :update, :destroy] + before_action :authorize + + # GET /developers + # GET /developers.json + def index + if params[:name].present? + @developers = Developer.where("name LIKE ?", "%#{params[:name]}%") + else + @developers = Developer.all + end + respond_to do |format| + format.html # index.html.erb + format.js # index.js.erb + end + end + + # GET /developers/1 + # GET /developers/1.json + def show + end + + # GET /developers/new + def new + @developer = Developer.new + end + + # GET /developers/1/edit + def edit + end + + # POST /developers + # POST /developers.json + def create + @developer = Developer.new(developer_params) + + respond_to do |format| + if @developer.save + format.html { redirect_to @developer, notice: 'Developer was successfully created.' } + format.json { render :show, status: :created, location: @developer } + else + format.html { render :new } + format.json { render json: @developer.errors, status: :unprocessable_entity } + end + end + end + + # PATCH/PUT /developers/1 + # PATCH/PUT /developers/1.json + def update + respond_to do |format| + if @developer.update(developer_params) + format.html { redirect_to @developer, notice: 'Developer was successfully updated.' } + format.json { render :show, status: :ok, location: @developer } + else + format.html { render :edit } + format.json { render json: @developer.errors, status: :unprocessable_entity } + end + end + end + + # DELETE /developers/1 + # DELETE /developers/1.json + def destroy + @developer.destroy + respond_to do |format| + format.html { redirect_to developers_url, notice: 'Developer was successfully destroyed.' } + format.json { head :no_content } + end + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_developer + @developer = Developer.find(params[:id]) + end + + # Never trust parameters from the scary internet, only allow the white list through. + def developer_params + params.require(:developer).permit(:name, :country) + end +end diff --git a/T5/app/controllers/games_controller.rb b/T5/app/controllers/games_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..fd7a711ac1e87cbab776fee52fa69bebcdbf4b83 --- /dev/null +++ b/T5/app/controllers/games_controller.rb @@ -0,0 +1,83 @@ +class GamesController < ApplicationController + before_action :set_game, only: [:show, :edit, :update, :destroy] + before_action :authorize + + # GET /games + # GET /games.json + def index + if params[:name].present? + @games = Game.where("name LIKE ?", "%#{params[:name]}%") + else + @games = Game.all + end + respond_to do |format| + format.html # index.html.erb + format.js # index.js.erb + end + end + + # GET /games/1 + # GET /games/1.json + def show + end + + # GET /games/new + def new + @game = Game.new + end + + # GET /games/1/edit + def edit + end + + # POST /games + # POST /games.json + def create + @game = Game.new(game_params) + + respond_to do |format| + if @game.save + format.html { redirect_to @game, notice: 'Game was successfully created.' } + format.json { render :show, status: :created, location: @game } + else + format.html { render :new } + format.json { render json: @game.errors, status: :unprocessable_entity } + end + end + end + + # PATCH/PUT /games/1 + # PATCH/PUT /games/1.json + def update + respond_to do |format| + if @game.update(game_params) + format.html { redirect_to @game, notice: 'Game was successfully updated.' } + format.json { render :show, status: :ok, location: @game } + else + format.html { render :edit } + format.json { render json: @game.errors, status: :unprocessable_entity } + end + end + end + + # DELETE /games/1 + # DELETE /games/1.json + def destroy + @game.destroy + respond_to do |format| + format.html { redirect_to games_url, notice: 'Game was successfully destroyed.' } + format.json { head :no_content } + end + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_game + @game = Game.find(params[:id]) + end + + # Never trust parameters from the scary internet, only allow the white list through. + def game_params + params.require(:game).permit(:name, :description, :is_released, :developer_id, category_ids:[]) + end +end diff --git a/T5/app/controllers/home_controller.rb b/T5/app/controllers/home_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..95f29929cad2de8b30a4d823197d72354bfb9114 --- /dev/null +++ b/T5/app/controllers/home_controller.rb @@ -0,0 +1,4 @@ +class HomeController < ApplicationController + def index + end +end diff --git a/T5/app/controllers/prices_controller.rb b/T5/app/controllers/prices_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..eac39838f2db9a34f860e30a8285df330bdb3cda --- /dev/null +++ b/T5/app/controllers/prices_controller.rb @@ -0,0 +1,95 @@ +class PricesController < ApplicationController + before_action :set_price, only: [:show, :edit, :update, :destroy] + before_action :authorize + + # GET /prices + # GET /prices.json + def index + + if params[:name].present? + games = Game.where("name LIKE ?", "%#{params[:name]}%") + @prices = [] + if !games.blank? + games.each do |game| + selectedPrices = Price.all.select {|price| price.game_id == game.id} + if selectedPrices + selectedPrices.each do |p| + @prices << p + end + end + end + end + else + @prices = Price.all + end + respond_to do |format| + format.html # index.html.erb + format.js # index.js.erb + end + end + + # GET /prices/1 + # GET /prices/1.json + def show + end + + # GET /prices/new + def new + @price = Price.new + end + + # GET /prices/1/edit + def edit + end + + # POST /prices + # POST /prices.json + def create + @price = Price.new(price_params) + + respond_to do |format| + if @price.save + format.html { redirect_to @price, notice: 'Price was successfully created.' } + format.json { render :show, status: :created, location: @price } + else + format.html { render :new } + format.json { render json: @price.errors, status: :unprocessable_entity } + end + end + end + + # PATCH/PUT /prices/1 + # PATCH/PUT /prices/1.json + def update + respond_to do |format| + if @price.update(price_params) + format.html { redirect_to @price, notice: 'Price was successfully updated.' } + format.json { render :show, status: :ok, location: @price } + else + format.html { render :edit } + format.json { render json: @price.errors, status: :unprocessable_entity } + end + end + end + + # DELETE /prices/1 + # DELETE /prices/1.json + def destroy + @price.destroy + respond_to do |format| + format.html { redirect_to prices_url, notice: 'Price was successfully destroyed.' } + format.json { head :no_content } + end + end + + private + # Use callbacks to share common setup or constraints between actions. + def set_price + @price = Price.find(params[:id]) + end + + # Never trust parameters from the scary internet, only allow the white list through. + def price_params + params.require(:price).permit(:game_id, :price_us, :price_br, :price_ru) + end +end diff --git a/T5/app/controllers/sessions_controller.rb b/T5/app/controllers/sessions_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..fe33399baeab84f3ca9988b4501d0560e90be233 --- /dev/null +++ b/T5/app/controllers/sessions_controller.rb @@ -0,0 +1,28 @@ +class SessionsController < ApplicationController + + def new + if session[:user_id] != nil + redirect_to '/' + end + end + + def create + user = User.find_by_email(params[:email]) + # If the user exists AND the password entered is correct. + if user && user.authenticate(params[:password]) + # Save the user id inside the browser cookie. This is how we keep the user + # logged in when they navigate around our website. + session[:user_id] = user.id + redirect_to '/' + else + # If user's login doesn't work, send them back to the login form. + redirect_to '/login' + end + end + + def destroy + session[:user_id] = nil + redirect_to '/login' + end + +end \ No newline at end of file diff --git a/T5/app/controllers/user_controller.rb b/T5/app/controllers/user_controller.rb new file mode 100644 index 0000000000000000000000000000000000000000..16c37cd569fb3ef6bf7255a611cfbe7fdcc79125 --- /dev/null +++ b/T5/app/controllers/user_controller.rb @@ -0,0 +1,26 @@ +class UserController < ApplicationController + +def new + if session[:user_id] != nil + redirect_to '/' + end +end + +def create + user = User.new(user_params) + user.role = 2 + if user.save + session[:user_id] = user.id + redirect_to '/' + else + redirect_to '/signup' + end +end + +private + +def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) +end + +end \ No newline at end of file diff --git a/T5/app/helpers/categories_helper.rb b/T5/app/helpers/categories_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..e06f31554c842b85909240ef1cdfc86f2315dd66 --- /dev/null +++ b/T5/app/helpers/categories_helper.rb @@ -0,0 +1,2 @@ +module CategoriesHelper +end diff --git a/T5/app/helpers/developers_helper.rb b/T5/app/helpers/developers_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..700e9c14df361b1e8d5c4db5f857d2b36bbf6df2 --- /dev/null +++ b/T5/app/helpers/developers_helper.rb @@ -0,0 +1,2 @@ +module DevelopersHelper +end diff --git a/T5/app/helpers/games_helper.rb b/T5/app/helpers/games_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..2ef8c1f41dc87e545362928c46563edbce2ffcda --- /dev/null +++ b/T5/app/helpers/games_helper.rb @@ -0,0 +1,2 @@ +module GamesHelper +end diff --git a/T5/app/helpers/home_helper.rb b/T5/app/helpers/home_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..23de56ac60aace0b1cc98dba68407ddcecc7614a --- /dev/null +++ b/T5/app/helpers/home_helper.rb @@ -0,0 +1,2 @@ +module HomeHelper +end diff --git a/T5/app/helpers/prices_helper.rb b/T5/app/helpers/prices_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..460530987c54ff7e805078ccdcf0266bc1edc4ec --- /dev/null +++ b/T5/app/helpers/prices_helper.rb @@ -0,0 +1,2 @@ +module PricesHelper +end diff --git a/T5/app/helpers/sessions_helper.rb b/T5/app/helpers/sessions_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..309f8b2eb33bf8088ab7268da23de53df00bac50 --- /dev/null +++ b/T5/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/T5/app/helpers/user_helper.rb b/T5/app/helpers/user_helper.rb new file mode 100644 index 0000000000000000000000000000000000000000..0147c3fe6aabbf787808646d70952bb2f0bf1eed --- /dev/null +++ b/T5/app/helpers/user_helper.rb @@ -0,0 +1,2 @@ +module UserHelper +end diff --git a/T5/app/models/category.rb b/T5/app/models/category.rb new file mode 100644 index 0000000000000000000000000000000000000000..0d2bd7bb2d0d4cfcc80ac280b7523f77c3e98bc8 --- /dev/null +++ b/T5/app/models/category.rb @@ -0,0 +1,7 @@ +class Category < ApplicationRecord + has_many :category_games + has_many :games, through: :category_games, dependent: :destroy + validates_presence_of :name + validates_presence_of :description + validates_uniqueness_of :name +end diff --git a/T5/app/models/category_game.rb b/T5/app/models/category_game.rb new file mode 100644 index 0000000000000000000000000000000000000000..0f658fef41bf90e6912d0331caf329ce027024e7 --- /dev/null +++ b/T5/app/models/category_game.rb @@ -0,0 +1,4 @@ +class CategoryGame < ApplicationRecord + belongs_to :category + belongs_to :game +end \ No newline at end of file diff --git a/T5/app/models/developer.rb b/T5/app/models/developer.rb new file mode 100644 index 0000000000000000000000000000000000000000..e2187ad82e5b57418857e8db822886f1800a0bb5 --- /dev/null +++ b/T5/app/models/developer.rb @@ -0,0 +1,6 @@ +class Developer < ApplicationRecord + has_many :games, dependent: :destroy + validates_presence_of :name + validates_presence_of :country + validates_uniqueness_of :name +end diff --git a/T5/app/models/game.rb b/T5/app/models/game.rb new file mode 100644 index 0000000000000000000000000000000000000000..77fe98a48ca353e64c5fc73b293821e3ed18f8c1 --- /dev/null +++ b/T5/app/models/game.rb @@ -0,0 +1,11 @@ +class Game < ApplicationRecord + has_one :price, dependent: :destroy + belongs_to :developer + has_many :category_games + has_many :categories, through: :category_games, dependent: :destroy + validates_uniqueness_of :name + validates_presence_of :name + validates_presence_of :description + validates_inclusion_of :is_released, :in => [true, false] + validates_presence_of :developer_id +end diff --git a/T5/app/models/price.rb b/T5/app/models/price.rb new file mode 100644 index 0000000000000000000000000000000000000000..880562615608d2c1b6ebba0ffe9357dacc15110d --- /dev/null +++ b/T5/app/models/price.rb @@ -0,0 +1,10 @@ +class Price < ApplicationRecord + belongs_to :game + validates_presence_of :price_us + validates_presence_of :price_br + validates_presence_of :price_ru + validates :price_us, numericality: { only_integer: true } + validates :price_br, numericality: { only_integer: true } + validates :price_ru, numericality: { only_integer: true } + validates :game_id, uniqueness: { message: "already has a price list" } +end diff --git a/T5/app/models/user.rb b/T5/app/models/user.rb new file mode 100644 index 0000000000000000000000000000000000000000..4949f367f9d6debf014c8d03cb1529b43cace9ff --- /dev/null +++ b/T5/app/models/user.rb @@ -0,0 +1,3 @@ +class User < ApplicationRecord + has_secure_password +end diff --git a/T5/app/views/categories/_category.json.jbuilder b/T5/app/views/categories/_category.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..7670853abf6ccb43e244fbf8720ecd9ad8420061 --- /dev/null +++ b/T5/app/views/categories/_category.json.jbuilder @@ -0,0 +1,2 @@ +json.extract! category, :id, :name, :description, :created_at, :updated_at +json.url category_url(category, format: :json) diff --git a/T5/app/views/categories/_form.html.erb b/T5/app/views/categories/_form.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..463b646a5aa01eec232de801e1c38daeb4305543 --- /dev/null +++ b/T5/app/views/categories/_form.html.erb @@ -0,0 +1,27 @@ +<%= form_with(model: category, local: true) do |form| %> + <% if category.errors.any? %> + <div id="error_explanation"> + <h2><%= pluralize(category.errors.count, "error") %> prohibited this category from being saved:</h2> + + <ul> + <% category.errors.full_messages.each do |message| %> + <li><%= message %></li> + <% end %> + </ul> + </div> + <% end %> + + <div class="field"> + <%= form.label :name %> + <%= form.text_field :name, id: :category_name %> + </div> + + <div class="field"> + <%= form.label :description %> + <%= form.text_area :description, id: :category_description %> + </div> + + <div class="actions"> + <%= form.submit %> + </div> +<% end %> diff --git a/T5/app/views/categories/_table_categories.html.erb b/T5/app/views/categories/_table_categories.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..f4ef9502a2095a1847d5b6b0cacbbca69ef2a6b9 --- /dev/null +++ b/T5/app/views/categories/_table_categories.html.erb @@ -0,0 +1,27 @@ +<table> + <thead> + <tr> + <th>Name</th> + <th>Description</th> + <% if current_user.role == 1 %> + <th colspan="3"></th> + <% elsif current_user.role == 2 %> + <th colspan="1"></th> + <% end %> + </tr> + </thead> + + <tbody> + <% @categories.each do |category| %> + <tr> + <td><%= category.name %></td> + <td><%= category.description %></td> + <td><%= link_to 'Show', category %></td> + <% if current_user.role == 1 %> + <td><%= link_to 'Edit', edit_category_path(category) %></td> + <td><%= link_to 'Destroy', category, method: :delete, data: { confirm: 'Are you sure?' } %></td> + <% end %> + </tr> + <% end %> + </tbody> +</table> \ No newline at end of file diff --git a/T5/app/views/categories/edit.html.erb b/T5/app/views/categories/edit.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..b9694172fd16a68f857fd1b5b15c6a36321fa734 --- /dev/null +++ b/T5/app/views/categories/edit.html.erb @@ -0,0 +1,6 @@ +<h1>Editing Category</h1> + +<%= render 'form', category: @category %> + +<%= link_to 'Show', @category %> | +<%= link_to 'Back', categories_path %> diff --git a/T5/app/views/categories/index.html.erb b/T5/app/views/categories/index.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..18935dc706ae32c2cdd35abc82c4cd766df71a10 --- /dev/null +++ b/T5/app/views/categories/index.html.erb @@ -0,0 +1,26 @@ +<p id="notice"><%= notice %></p> + +<h1>Categories</h1> + +<%= form_tag(categories_path, { :method => :get, :remote => true }) do %> + <legend>Search for a category</legend> + <div class="field"> + <%= label_tag :name %> + <%= text_field_tag :name %> + </div> + <div class="actions"> + <%= submit_tag "Search" %> + </div> +<% end %> + +<br> + +<div id="ajax_load"> + <%= render 'table_categories' %> +</div> + +<br> + +<% if current_user.role == 1 %> + <%= link_to 'New Category', new_category_path %> +<% end %> \ No newline at end of file diff --git a/T5/app/views/categories/index.js.erb b/T5/app/views/categories/index.js.erb new file mode 100644 index 0000000000000000000000000000000000000000..edad771efa77e2b7b8007481d6fa8e18dd7397e5 --- /dev/null +++ b/T5/app/views/categories/index.js.erb @@ -0,0 +1,2 @@ +elem=document.getElementById('ajax_load') +elem.innerHTML =("<%=j (render %"table_categories") %>"); \ No newline at end of file diff --git a/T5/app/views/categories/index.json.jbuilder b/T5/app/views/categories/index.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..a55b64c0ad5b896e2f075ac17185a8cb123fd5a3 --- /dev/null +++ b/T5/app/views/categories/index.json.jbuilder @@ -0,0 +1 @@ +json.array! @categories, partial: 'categories/category', as: :category diff --git a/T5/app/views/categories/new.html.erb b/T5/app/views/categories/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..91d5ef7d0c350b54724a3ed2ca15570c6f2d505c --- /dev/null +++ b/T5/app/views/categories/new.html.erb @@ -0,0 +1,5 @@ +<h1>New Category</h1> + +<%= render 'form', category: @category %> + +<%= link_to 'Back', categories_path %> diff --git a/T5/app/views/categories/show.html.erb b/T5/app/views/categories/show.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..e77bfc743637a9a1127e69111be63d1eb7249547 --- /dev/null +++ b/T5/app/views/categories/show.html.erb @@ -0,0 +1,16 @@ +<p id="notice"><%= notice %></p> + +<p> + <strong>Name:</strong> + <%= @category.name %> +</p> + +<p> + <strong>Description:</strong> + <%= @category.description %> +</p> + +<% if current_user.role == 1 %> + <%= link_to 'Edit', edit_category_path(@category) %> | +<% end %> +<%= link_to 'Back', categories_path %> diff --git a/T5/app/views/categories/show.json.jbuilder b/T5/app/views/categories/show.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..30e6b478f48f74cbad3489ab8fef636e5681ec45 --- /dev/null +++ b/T5/app/views/categories/show.json.jbuilder @@ -0,0 +1 @@ +json.partial! "categories/category", category: @category diff --git a/T5/app/views/developers/_developer.json.jbuilder b/T5/app/views/developers/_developer.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..cfaf1cfb23eac666066e68d6a8ed277ed40ceb37 --- /dev/null +++ b/T5/app/views/developers/_developer.json.jbuilder @@ -0,0 +1,2 @@ +json.extract! developer, :id, :name, :country, :created_at, :updated_at +json.url developer_url(developer, format: :json) diff --git a/T5/app/views/developers/_form.html.erb b/T5/app/views/developers/_form.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..2ece188136e23a672cec92690aa7c1afd28fbbc0 --- /dev/null +++ b/T5/app/views/developers/_form.html.erb @@ -0,0 +1,27 @@ +<%= form_with(model: developer, local: true) do |form| %> + <% if developer.errors.any? %> + <div id="error_explanation"> + <h2><%= pluralize(developer.errors.count, "error") %> prohibited this developer from being saved:</h2> + + <ul> + <% developer.errors.full_messages.each do |message| %> + <li><%= message %></li> + <% end %> + </ul> + </div> + <% end %> + + <div class="field"> + <%= form.label :name %> + <%= form.text_field :name, id: :developer_name %> + </div> + + <div class="field"> + <%= form.label :country %> + <%= form.text_field :country, id: :developer_country %> + </div> + + <div class="actions"> + <%= form.submit %> + </div> +<% end %> diff --git a/T5/app/views/developers/_table_developers.html.erb b/T5/app/views/developers/_table_developers.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..4484232c290ed149fa4556e8f8a890587a9337bb --- /dev/null +++ b/T5/app/views/developers/_table_developers.html.erb @@ -0,0 +1,27 @@ +<table> + <thead> + <tr> + <th>Name</th> + <th>Country</th> + <% if current_user.role == 1 %> + <th colspan="3"></th> + <% elsif current_user.role == 2 %> + <th colspan="1"></th> + <% end %> + </tr> + </thead> + + <tbody> + <% @developers.each do |developer| %> + <tr> + <td><%= developer.name %></td> + <td><%= developer.country %></td> + <td><%= link_to 'Show', developer %></td> + <% if current_user.role == 1 %> + <td><%= link_to 'Edit', edit_developer_path(developer) %></td> + <td><%= link_to 'Destroy', developer, method: :delete, data: { confirm: 'Are you sure?' } %></td> + <% end %> + </tr> + <% end %> + </tbody> +</table> \ No newline at end of file diff --git a/T5/app/views/developers/edit.html.erb b/T5/app/views/developers/edit.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..6b1b5c5898ac2c9ba0ee1a5cf0dc0f4e9a5a3640 --- /dev/null +++ b/T5/app/views/developers/edit.html.erb @@ -0,0 +1,6 @@ +<h1>Editing Developer</h1> + +<%= render 'form', developer: @developer %> + +<%= link_to 'Show', @developer %> | +<%= link_to 'Back', developers_path %> diff --git a/T5/app/views/developers/index.html.erb b/T5/app/views/developers/index.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..4899bf3902a20b0b401e514df99f0ff063bdab3e --- /dev/null +++ b/T5/app/views/developers/index.html.erb @@ -0,0 +1,26 @@ +<p id="notice"><%= notice %></p> + +<h1>Developers</h1> + +<%= form_tag(developers_path, { :method => :get, :remote => true }) do %> + <legend>Search for a developer</legend> + <div class="field"> + <%= label_tag :name %> + <%= text_field_tag :name %> + </div> + <div class="actions"> + <%= submit_tag "Search" %> + </div> +<% end %> + +<br> + +<div id="ajax_load"> + <%= render 'table_developers' %> +</div> + +<br> + +<% if current_user.role == 1 %> + <%= link_to 'New Developer', new_developer_path %> +<% end %> \ No newline at end of file diff --git a/T5/app/views/developers/index.js.erb b/T5/app/views/developers/index.js.erb new file mode 100644 index 0000000000000000000000000000000000000000..de4789567425aa1a5d48203f22aae5c3dc671b30 --- /dev/null +++ b/T5/app/views/developers/index.js.erb @@ -0,0 +1,2 @@ +elem=document.getElementById('ajax_load') +elem.innerHTML =("<%=j (render %"table_developers") %>"); \ No newline at end of file diff --git a/T5/app/views/developers/index.json.jbuilder b/T5/app/views/developers/index.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..a31f360c0d04bb763e79b6b226d5930b7ee03dff --- /dev/null +++ b/T5/app/views/developers/index.json.jbuilder @@ -0,0 +1 @@ +json.array! @developers, partial: 'developers/developer', as: :developer diff --git a/T5/app/views/developers/new.html.erb b/T5/app/views/developers/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..cfb051ebdd5b75ffbda62a25c91287a0048e463f --- /dev/null +++ b/T5/app/views/developers/new.html.erb @@ -0,0 +1,5 @@ +<h1>New Developer</h1> + +<%= render 'form', developer: @developer %> + +<%= link_to 'Back', developers_path %> diff --git a/T5/app/views/developers/show.html.erb b/T5/app/views/developers/show.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..17ed553de2f5e8bd24daa08c4d2e12e083bb5422 --- /dev/null +++ b/T5/app/views/developers/show.html.erb @@ -0,0 +1,16 @@ +<p id="notice"><%= notice %></p> + +<p> + <strong>Name:</strong> + <%= @developer.name %> +</p> + +<p> + <strong>Country:</strong> + <%= @developer.country %> +</p> + +<% if current_user.role == 1 %> + <%= link_to 'Edit', edit_developer_path(@developer) %> | +<% end %> +<%= link_to 'Back', developers_path %> diff --git a/T5/app/views/developers/show.json.jbuilder b/T5/app/views/developers/show.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..4a2e6d5df4eb7e362ca392e184f64cb309f76658 --- /dev/null +++ b/T5/app/views/developers/show.json.jbuilder @@ -0,0 +1 @@ +json.partial! "developers/developer", developer: @developer diff --git a/T5/app/views/games/_form.html.erb b/T5/app/views/games/_form.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..b595299d226986e96613cf688abd91238a274386 --- /dev/null +++ b/T5/app/views/games/_form.html.erb @@ -0,0 +1,42 @@ +<%= form_with(model: game, local: true) do |form| %> + <% if game.errors.any? %> + <div id="error_explanation"> + <h2><%= pluralize(game.errors.count, "error") %> prohibited this game from being saved:</h2> + + <ul> + <% game.errors.full_messages.each do |message| %> + <li><%= message %></li> + <% end %> + </ul> + </div> + <% end %> + + <div class="field"> + <%= form.label :name %> + <%= form.text_field :name, id: :game_name %> + </div> + + <div class="field"> + <%= form.label :description %> + <%= form.text_area :description, id: :game_description %> + </div> + + <div class="field"> + <%= form.label :is_released %> + <%= form.check_box :is_released, id: :game_is_released %> + </div> + + <div class="field"> + <%= form.label :developer %> + <%= form.collection_select(:developer_id, Developer.all, :id, :name) %> + </div> + + <div class="field"> + <%= form.label :categories %> + <%= form.collection_check_boxes(:category_ids, Category.all, :id, :name) %> + </div> + + <div class="actions"> + <%= form.submit %> + </div> +<% end %> diff --git a/T5/app/views/games/_game.json.jbuilder b/T5/app/views/games/_game.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..20650f9a95a8781c489851f08bc78c0a78423bf3 --- /dev/null +++ b/T5/app/views/games/_game.json.jbuilder @@ -0,0 +1,2 @@ +json.extract! game, :id, :name, :description, :is_released, :developer_id, :created_at, :updated_at +json.url game_url(game, format: :json) diff --git a/T5/app/views/games/_table_games.html.erb b/T5/app/views/games/_table_games.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..d92c97bc20aec2afadb55189ec20af3f82391072 --- /dev/null +++ b/T5/app/views/games/_table_games.html.erb @@ -0,0 +1,31 @@ +<table> + <thead> + <tr> + <th>Name</th> + <th>Description</th> + <th>Is released</th> + <th>Developer</th> + <% if current_user.role == 1 %> + <th colspan="3"></th> + <% elsif current_user.role == 2 %> + <th colspan="1"></th> + <% end %> + </tr> + </thead> + + <tbody> + <% @games.each do |game| %> + <tr> + <td><%= game.name %></td> + <td><%= game.description %></td> + <td><%= game.is_released %></td> + <td><%= game.developer.name %></td> + <td><%= link_to 'Show', game %></td> + <% if current_user.role == 1 %> + <td><%= link_to 'Edit', edit_game_path(game) %></td> + <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + <% end %> + </tr> + <% end %> + </tbody> +</table> \ No newline at end of file diff --git a/T5/app/views/games/edit.html.erb b/T5/app/views/games/edit.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..bee2ea632a558303b08bdafa1c063ad7fee83848 --- /dev/null +++ b/T5/app/views/games/edit.html.erb @@ -0,0 +1,6 @@ +<h1>Editing Game</h1> + +<%= render 'form', game: @game %> + +<%= link_to 'Show', @game %> | +<%= link_to 'Back', games_path %> diff --git a/T5/app/views/games/index.html.erb b/T5/app/views/games/index.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..ae1ece76d2d1a380fe89bd2637bc5b3b85f65b50 --- /dev/null +++ b/T5/app/views/games/index.html.erb @@ -0,0 +1,26 @@ +<p id="notice"><%= notice %></p> + +<h1>Games</h1> + +<%= form_tag(games_path, { :method => :get, :remote => true }) do %> + <legend>Search for a game</legend> + <div class="field"> + <%= label_tag :name %> + <%= text_field_tag :name %> + </div> + <div class="actions"> + <%= submit_tag "Search" %> + </div> +<% end %> + +<br> + +<div id="ajax_load"> + <%= render 'table_games' %> +</div> + +<br> + +<% if current_user.role == 1 %> + <%= link_to 'New Game', new_game_path %> +<% end %> \ No newline at end of file diff --git a/T5/app/views/games/index.js.erb b/T5/app/views/games/index.js.erb new file mode 100644 index 0000000000000000000000000000000000000000..37d63a90247096f7930ea75a51a280c2bad04f2c --- /dev/null +++ b/T5/app/views/games/index.js.erb @@ -0,0 +1,2 @@ +elem=document.getElementById('ajax_load') +elem.innerHTML =("<%=j (render %"table_games") %>"); \ No newline at end of file diff --git a/T5/app/views/games/index.json.jbuilder b/T5/app/views/games/index.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..c3ed4b2dfcbe49655652020c0ccfe4b7ce2dc155 --- /dev/null +++ b/T5/app/views/games/index.json.jbuilder @@ -0,0 +1 @@ +json.array! @games, partial: 'games/game', as: :game diff --git a/T5/app/views/games/new.html.erb b/T5/app/views/games/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..62e26b8e52e8cd1a4226f30880c5e0bbd9b39b89 --- /dev/null +++ b/T5/app/views/games/new.html.erb @@ -0,0 +1,5 @@ +<h1>New Game</h1> + +<%= render 'form', game: @game %> + +<%= link_to 'Back', games_path %> diff --git a/T5/app/views/games/show.html.erb b/T5/app/views/games/show.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..64a5717d8d0c44e197c3d1fd05aff5620ecf1761 --- /dev/null +++ b/T5/app/views/games/show.html.erb @@ -0,0 +1,33 @@ +<p id="notice"><%= notice %></p> + +<p> + <strong>Name:</strong> + <%= @game.name %> +</p> + +<p> + <strong>Description:</strong> + <%= @game.description %> +</p> + +<p> + <strong>Is released:</strong> + <%= @game.is_released %> +</p> + +<p> + <strong>Developer:</strong> + <%= @game.developer.name %> +</p> + +<p> + <strong>Categories:</strong> + <% @game.categories.all.each do |c| %> + <%= c.name %> + <% end %> +</p> + +<% if current_user.role == 1 %> + <%= link_to 'Edit', edit_game_path(@game) %> | +<% end %> +<%= link_to 'Back', games_path %> diff --git a/T5/app/views/games/show.json.jbuilder b/T5/app/views/games/show.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..c04bffe02aba8c1e897e218b8b799dc3a575e3b3 --- /dev/null +++ b/T5/app/views/games/show.json.jbuilder @@ -0,0 +1 @@ +json.partial! "games/game", game: @game diff --git a/T5/app/views/home/index.html.erb b/T5/app/views/home/index.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..fb58fd182585e4b53ec693a9421351353c495a46 --- /dev/null +++ b/T5/app/views/home/index.html.erb @@ -0,0 +1,4 @@ +<div id="introduction" align="center"> + <h1>SteamDB</h1> + <%= image_tag("SteamDB-Big.png") -%> +</div> \ No newline at end of file diff --git a/T5/app/views/layouts/application.html.erb b/T5/app/views/layouts/application.html.erb index f762ccf27b7c5c8f8bc9813caa3ba77db72441cc..a8d615d556c82422127f35a03ecdd86c541991a6 100644 --- a/T5/app/views/layouts/application.html.erb +++ b/T5/app/views/layouts/application.html.erb @@ -1,14 +1,34 @@ <!DOCTYPE html> <html> <head> - <title>Steamdb</title> + <title>SteamDB</title> <%= csrf_meta_tags %> - + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> </head> - + <body> - <%= yield %> + <header> + <nav> + <ul> + <li><%= link_to 'Home', root_url %></li> + <li><%= link_to 'Games', games_path %></li> + <li><%= link_to 'Developers', developers_path %></li> + <li><%= link_to 'Categories', categories_path %></li> + <li><%= link_to 'Prices', prices_path %></li> + <li> + <% if current_user %> + Signed in as <%= current_user.name %> | <%= link_to "Logout", '/logout' %> + <% else %> + <%= link_to 'Login', '/login' %> | <%= link_to 'Signup', '/signup' %> + <% end %> + </li> + </ul> + </nav> + </header> + <section> + <%= yield %> + </section> </body> -</html> +</html> \ No newline at end of file diff --git a/T5/app/views/prices/_form.html.erb b/T5/app/views/prices/_form.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..84d8b233ae1aff692df774e4cdb511395e8d3db5 --- /dev/null +++ b/T5/app/views/prices/_form.html.erb @@ -0,0 +1,37 @@ +<%= form_with(model: price, local: true) do |form| %> + <% if price.errors.any? %> + <div id="error_explanation"> + <h2><%= pluralize(price.errors.count, "error") %> prohibited this price from being saved:</h2> + + <ul> + <% price.errors.full_messages.each do |message| %> + <li><%= message %></li> + <% end %> + </ul> + </div> + <% end %> + + <div class="field"> + <%= form.label :game %> + <%= form.collection_select(:game_id, Game.all, :id, :name) %> + </div> + + <div class="field"> + <%= form.label :price_us %> + <%= form.number_field :price_us, id: :price_price_us %> + </div> + + <div class="field"> + <%= form.label :price_br %> + <%= form.number_field :price_br, id: :price_price_br %> + </div> + + <div class="field"> + <%= form.label :price_ru %> + <%= form.number_field :price_ru, id: :price_price_ru %> + </div> + + <div class="actions"> + <%= form.submit %> + </div> +<% end %> diff --git a/T5/app/views/prices/_price.json.jbuilder b/T5/app/views/prices/_price.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..3390408fc78a7c9f75aec3e404892f072fac8611 --- /dev/null +++ b/T5/app/views/prices/_price.json.jbuilder @@ -0,0 +1,2 @@ +json.extract! price, :id, :price_us, :price_br, :price_ru, :game_id, :created_at, :updated_at +json.url price_url(price, format: :json) diff --git a/T5/app/views/prices/_table_prices.html.erb b/T5/app/views/prices/_table_prices.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..2f2a3ec4836f980e121babd56aa58f21c7efcf1a --- /dev/null +++ b/T5/app/views/prices/_table_prices.html.erb @@ -0,0 +1,31 @@ +<table> + <thead> + <tr> + <th>Game</th> + <th>Price us</th> + <th>Price br</th> + <th>Price ru</th> + <% if current_user.role == 1 %> + <th colspan="3"></th> + <% elsif current_user.role == 2 %> + <th colspan="1"></th> + <% end %> + </tr> + </thead> + + <tbody> + <% @prices.each do |price| %> + <tr> + <td><%= price.game.name %></td> + <td><%= price.price_us %></td> + <td><%= price.price_br %></td> + <td><%= price.price_ru %></td> + <td><%= link_to 'Show', price %></td> + <% if current_user.role == 1 %> + <td><%= link_to 'Edit', edit_price_path(price) %></td> + <td><%= link_to 'Destroy', price, method: :delete, data: { confirm: 'Are you sure?' } %></td> + <% end %> + </tr> + <% end %> + </tbody> +</table> \ No newline at end of file diff --git a/T5/app/views/prices/edit.html.erb b/T5/app/views/prices/edit.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..13bea28a6d7b3c06d3b63dcef6b39eae3c0d2a00 --- /dev/null +++ b/T5/app/views/prices/edit.html.erb @@ -0,0 +1,6 @@ +<h1>Editing Price</h1> + +<%= render 'form', price: @price %> + +<%= link_to 'Show', @price %> | +<%= link_to 'Back', prices_path %> diff --git a/T5/app/views/prices/index.html.erb b/T5/app/views/prices/index.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..04d48f56108ce1d64949850ddaca766d90a31e5d --- /dev/null +++ b/T5/app/views/prices/index.html.erb @@ -0,0 +1,26 @@ +<p id="notice"><%= notice %></p> + +<h1>Prices</h1> + +<%= form_tag(prices_path, { :method => :get, :remote => true }) do %> + <legend>Search for a game</legend> + <div class="field"> + <%= label_tag :name %> + <%= text_field_tag :name %> + </div> + <div class="actions"> + <%= submit_tag "Search" %> + </div> +<% end %> + +<br> + +<div id="ajax_load"> + <%= render 'table_prices' %> +</div> + +<br> + +<% if current_user.role == 1 %> + <%= link_to 'New Price', new_price_path %> +<% end %> \ No newline at end of file diff --git a/T5/app/views/prices/index.js.erb b/T5/app/views/prices/index.js.erb new file mode 100644 index 0000000000000000000000000000000000000000..215dc84efa2555c577b3c1322cf6855ae67654a0 --- /dev/null +++ b/T5/app/views/prices/index.js.erb @@ -0,0 +1,2 @@ +elem=document.getElementById('ajax_load') +elem.innerHTML =("<%=j (render %"table_prices") %>"); \ No newline at end of file diff --git a/T5/app/views/prices/index.json.jbuilder b/T5/app/views/prices/index.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..4d29ae538bd826474895228d0b7ee7550f0054f0 --- /dev/null +++ b/T5/app/views/prices/index.json.jbuilder @@ -0,0 +1 @@ +json.array! @prices, partial: 'prices/price', as: :price diff --git a/T5/app/views/prices/new.html.erb b/T5/app/views/prices/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..0dc90c96ce606ba30a7ab263f83a6564276765ba --- /dev/null +++ b/T5/app/views/prices/new.html.erb @@ -0,0 +1,5 @@ +<h1>New Price</h1> + +<%= render 'form', price: @price %> + +<%= link_to 'Back', prices_path %> diff --git a/T5/app/views/prices/show.html.erb b/T5/app/views/prices/show.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..b449f0c3668564933371d1104ea85a19504ab4bb --- /dev/null +++ b/T5/app/views/prices/show.html.erb @@ -0,0 +1,26 @@ +<p id="notice"><%= notice %></p> + +<p> + <strong>Game:</strong> + <%= @price.game.name %> +</p> + +<p> + <strong>Price us:</strong> + <%= @price.price_us %> +</p> + +<p> + <strong>Price br:</strong> + <%= @price.price_br %> +</p> + +<p> + <strong>Price ru:</strong> + <%= @price.price_ru %> +</p> + +<% if current_user.role == 1 %> + <%= link_to 'Edit', edit_price_path(@price) %> | +<% end %> +<%= link_to 'Back', prices_path %> diff --git a/T5/app/views/prices/show.json.jbuilder b/T5/app/views/prices/show.json.jbuilder new file mode 100644 index 0000000000000000000000000000000000000000..a054254dcc685893c15e890d50213ea8aaae6e9f --- /dev/null +++ b/T5/app/views/prices/show.json.jbuilder @@ -0,0 +1 @@ +json.partial! "prices/price", price: @price diff --git a/T5/app/views/sessions/new.html.erb b/T5/app/views/sessions/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..268b940261456ceba7775b677b376a2951dd1314 --- /dev/null +++ b/T5/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +<h1>Login</h1> + +<%= form_tag '/login' do %> + + Email: <%= text_field_tag :email %> + Password: <%= password_field_tag :password %> + <%= submit_tag "Submit" %> + +<% end %> \ No newline at end of file diff --git a/T5/app/views/user/new.html.erb b/T5/app/views/user/new.html.erb new file mode 100644 index 0000000000000000000000000000000000000000..88b5dd61bb573b9d7aaf12f8d925a8775d3417dc --- /dev/null +++ b/T5/app/views/user/new.html.erb @@ -0,0 +1,23 @@ +<h1>Signup form</h1> + +<%= form_for :user, url: '/users' do |f| %> + <div class="field"> + <%= f.label :name %> + <%= f.text_field :name %> + </div> + <div class="field"> + <%= f.label :email %> + <%= f.text_field :email %> + </div> + <div class="field"> + <%= f.label :password %> + <%= f.password_field :password %> + </div> + <div class="field"> + <%= f.label :password_confirmation %> + <%= f.password_field :password_confirmation %> + </div> + <div class="actions"> + <%= f.submit "Submit" %> + </div> +<% end %> \ No newline at end of file diff --git a/T5/config/routes.rb b/T5/config/routes.rb index 787824f888b3bd1c3a56968e39c1fd47675b9c7a..0bfe1c2be3e2ac8fd2a8a93d8193f0be5bcf37ca 100644 --- a/T5/config/routes.rb +++ b/T5/config/routes.rb @@ -1,3 +1,17 @@ Rails.application.routes.draw do + root 'home#index' + + resources :categories + resources :prices + resources :games + resources :developers + + get '/login' => 'sessions#new' + post '/login' => 'sessions#create' + get '/logout' => 'sessions#destroy' + + get '/signup' => 'user#new' + post '/users' => 'user#create' + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end diff --git a/T5/db/development.sqlite3 b/T5/db/development.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..b8a9065118a25a0384bcc287d31fd422a94d40c6 Binary files /dev/null and b/T5/db/development.sqlite3 differ diff --git a/T5/db/migrate/20180602004414_create_developers.rb b/T5/db/migrate/20180602004414_create_developers.rb new file mode 100644 index 0000000000000000000000000000000000000000..cea0fa4e1b0a7506ca35dd4608ca687628a34299 --- /dev/null +++ b/T5/db/migrate/20180602004414_create_developers.rb @@ -0,0 +1,11 @@ +class CreateDevelopers < ActiveRecord::Migration[5.1] + def change + create_table :developers do |t| + t.string :name + t.string :country + + t.timestamps + end + add_index :developers, :name, unique: true + end +end diff --git a/T5/db/migrate/20180602004723_create_games.rb b/T5/db/migrate/20180602004723_create_games.rb new file mode 100644 index 0000000000000000000000000000000000000000..639d9ab42807b23572b4bca8e25c503b64dde8fd --- /dev/null +++ b/T5/db/migrate/20180602004723_create_games.rb @@ -0,0 +1,12 @@ +class CreateGames < ActiveRecord::Migration[5.1] + def change + create_table :games do |t| + t.string :name + t.text :description + t.boolean :is_released + t.references :developer, foreign_key: true + t.timestamps + end + add_index :games, :name, unique: true + end +end diff --git a/T5/db/migrate/20180602004809_create_prices.rb b/T5/db/migrate/20180602004809_create_prices.rb new file mode 100644 index 0000000000000000000000000000000000000000..70a5d6a79fb2b8734f6380b8fa4e713f3fd916be --- /dev/null +++ b/T5/db/migrate/20180602004809_create_prices.rb @@ -0,0 +1,11 @@ +class CreatePrices < ActiveRecord::Migration[5.1] + def change + create_table :prices do |t| + t.integer :price_us + t.integer :price_br + t.integer :price_ru + t.references :game, foreign_key: true + t.timestamps + end + end +end diff --git a/T5/db/migrate/20180602004848_create_categories.rb b/T5/db/migrate/20180602004848_create_categories.rb new file mode 100644 index 0000000000000000000000000000000000000000..3e3da0fa2ae9c4ebda438361f4017e7391b30c6f --- /dev/null +++ b/T5/db/migrate/20180602004848_create_categories.rb @@ -0,0 +1,11 @@ +class CreateCategories < ActiveRecord::Migration[5.1] + def change + create_table :categories do |t| + t.string :name, unique: true + t.text :description + + t.timestamps + end + add_index :categories, :name, unique: true + end +end diff --git a/T5/db/migrate/20180602005412_create_category_games.rb b/T5/db/migrate/20180602005412_create_category_games.rb new file mode 100644 index 0000000000000000000000000000000000000000..0ad2bad60c285d2fdb5678f332474f8d963884e7 --- /dev/null +++ b/T5/db/migrate/20180602005412_create_category_games.rb @@ -0,0 +1,8 @@ +class CreateCategoryGames < ActiveRecord::Migration[5.1] + def change + create_table :category_games do |t| + t.references :category + t.references :game + end + end +end diff --git a/T5/db/migrate/20180602230646_create_users.rb b/T5/db/migrate/20180602230646_create_users.rb new file mode 100644 index 0000000000000000000000000000000000000000..8f1ce627434c764a3f7354bbcc157fc99eba59d0 --- /dev/null +++ b/T5/db/migrate/20180602230646_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.1] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + t.integer :role + t.timestamps + end + end +end diff --git a/T5/db/schema.rb b/T5/db/schema.rb new file mode 100644 index 0000000000000000000000000000000000000000..0d4596cb3438c5febcd29888e4b20656c4e00270 --- /dev/null +++ b/T5/db/schema.rb @@ -0,0 +1,68 @@ +# 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: 20180602230646) do + + create_table "categories", force: :cascade do |t| + t.string "name" + t.text "description" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["name"], name: "index_categories_on_name", unique: true + end + + create_table "category_games", force: :cascade do |t| + t.integer "category_id" + t.integer "game_id" + t.index ["category_id"], name: "index_category_games_on_category_id" + t.index ["game_id"], name: "index_category_games_on_game_id" + end + + create_table "developers", force: :cascade do |t| + t.string "name" + t.string "country" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["name"], name: "index_developers_on_name", unique: true + end + + create_table "games", force: :cascade do |t| + t.string "name" + t.text "description" + t.boolean "is_released" + t.integer "developer_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["developer_id"], name: "index_games_on_developer_id" + t.index ["name"], name: "index_games_on_name", unique: true + end + + create_table "prices", force: :cascade do |t| + t.integer "price_us" + t.integer "price_br" + t.integer "price_ru" + t.integer "game_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["game_id"], name: "index_prices_on_game_id" + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.integer "role" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/T5/db/seeds.rb b/T5/db/seeds.rb index 1beea2accd7ed91d080b323eef17dba95e95e27f..ea79b578a3083cc17304bce7125f35b8e13ce3fb 100644 --- a/T5/db/seeds.rb +++ b/T5/db/seeds.rb @@ -5,3 +5,4 @@ # # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) # Character.create(name: 'Luke', movie: movies.first) +User.create(name: 'admin', email: 'admin@admin.com', password: 'admin', password_confirmation: 'admin', role: 1) \ No newline at end of file diff --git a/T5/db/test.sqlite3 b/T5/db/test.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/T5/log/development.log b/T5/log/development.log new file mode 100644 index 0000000000000000000000000000000000000000..8233cd513980fb54f1379bfa5aabd6c38bf1b129 --- /dev/null +++ b/T5/log/development.log @@ -0,0 +1,13890 @@ +Started GET "/" for 127.0.0.1 at 2018-06-01 20:43:20 -0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/wellington/.rvm/gems/ruby-2.5.0/gems/railties-5.1.5/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/wellington/.rvm/gems/ruby-2.5.0/gems/railties-5.1.5/lib/rails/templates/rails/welcome/index.html.erb (2.8ms) +Completed 200 OK in 80ms (Views: 4.9ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 21:44:38 -0300 + +ActiveRecord::PendingMigrationError ( + +Migrations are pending. To resolve this issue, run: + + bin/rails db:migrate RAILS_ENV=development + +): + +activerecord (5.1.5) lib/active_record/migration.rb:576:in `check_pending!' +activerecord (5.1.5) lib/active_record/migration.rb:553:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (71.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (56.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (62.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 00:44:51.884420"], ["updated_at", "2018-06-02 00:44:51.884420"]] + [1m[35m (35.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-01 21:44:55 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 753ms (Views: 750.6ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-01 21:44:59 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (7.3ms) + Rendered developers/new.html.erb within layouts/application (8.1ms) +Completed 200 OK in 25ms (Views: 17.1ms | ActiveRecord: 0.8ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-01 21:45:04 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"eBwM3N7/lsSpMd+743k/1lK9Bv1GAg3nAlc2XUNnt+FEr+FTErjJvxD2DlqFTrYta4hx/PkJQEJw8BtkSZSRnA==", "developer"=>{"name"=>"José", "country"=>"Brazil"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "José"], ["country", "Brazil"], ["created_at", "2018-06-02 00:45:04.307039"], ["updated_at", "2018-06-02 00:45:04.307039"]] + [1m[35m (123.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 128ms (ActiveRecord: 123.6ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-01 21:45:04 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 18ms (Views: 13.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-01 21:57:29 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + +ActiveRecord::PendingMigrationError ( + +Migrations are pending. To resolve this issue, run: + + bin/rails db:migrate RAILS_ENV=development + +): + +activerecord (5.1.5) lib/active_record/migration.rb:576:in `check_pending!' +activerecord (5.1.5) lib/active_record/migration.rb:553:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (59.9ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (62.5ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (54.0ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (87.6ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/developers/1" for 127.0.0.1 at 2018-06-01 21:57:43 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 51ms (Views: 42.3ms | ActiveRecord: 0.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 21:57:45 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 21:57:51 -0300 +Processing by Rails::WelcomeController#index as HTML + Rendering /home/wellington/.rvm/gems/ruby-2.5.0/gems/railties-5.1.5/lib/rails/templates/rails/welcome/index.html.erb + Rendered /home/wellington/.rvm/gems/ruby-2.5.0/gems/railties-5.1.5/lib/rails/templates/rails/welcome/index.html.erb (2.1ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) + + +Started GET "/index" for 127.0.0.1 at 2018-06-01 22:00:09 -0300 + +ArgumentError (Missing :controller key on routes definition, please check your routes.): + +config/routes.rb:2:in `block in <top (required)>' +config/routes.rb:1:in `<top (required)>' +Started GET "/index" for 127.0.0.1 at 2018-06-01 22:03:48 -0300 + +ActionController::RoutingError (No route matches [GET] "/index"): + +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-06-01 22:03:55 -0300 + +ActionController::RoutingError (uninitialized constant WelcomeController): + +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:29:in `serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call' +rack (2.0.4) lib/rack/etag.rb:25:in `call' +rack (2.0.4) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.4) lib/rack/head.rb:12:in `call' +rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.5) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-06-01 22:03:57 -0300 + +ActionController::RoutingError (uninitialized constant WelcomeController): + +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:29:in `serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call' +rack (2.0.4) lib/rack/etag.rb:25:in `call' +rack (2.0.4) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.4) lib/rack/head.rb:12:in `call' +rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.5) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-06-01 22:04:29 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.2ms) +Completed 200 OK in 34ms (Views: 33.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:05:06 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 29ms (Views: 28.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:05:24 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.2ms) +Completed 200 OK in 24ms (Views: 23.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:05:33 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 26ms (Views: 24.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:06:00 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 37ms (Views: 36.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:09:34 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 19ms (Views: 18.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:09:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.3ms) +Completed 200 OK in 23ms (Views: 22.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:11:23 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.4ms) +Completed 200 OK in 20ms (Views: 19.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:12:08 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (22.5ms) +Completed 200 OK in 42ms (Views: 40.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:14:20 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 20ms (Views: 18.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:16:17 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 180ms + + + +ActionView::Template::Error (undefined local variable or method `home_path' for #<#<Class:0x00007f18c9998e58>:0x00007f18cc318080> +Did you mean? game_path): + 12: <header> + 13: <nav> + 14: <ul> + 15: <li><%= link_to 'Home', home_path %></li> + 16: <li><%= link_to 'Games', games_path %></li> + 17: <li><%= link_to 'Developers', developers_path %></li> + 18: <li><%= link_to 'Categories', categories_path %></li> + +app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb___1697059728132317164_69872240862720' +Started GET "/" for 127.0.0.1 at 2018-06-01 22:16:39 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 25ms (Views: 23.9ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:16:42 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 33ms (Views: 22.7ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:16:44 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (8.6ms) +Completed 200 OK in 41ms (Views: 37.1ms | ActiveRecord: 0.8ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-01 22:16:45 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 19.4ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:16:45 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 25ms (Views: 20.5ms | ActiveRecord: 0.7ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:16:47 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 28ms (Views: 26.1ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:16:59 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.1ms) +Completed 500 Internal Server Error in 202ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined local variable or method `homes_path' for #<#<Class:0x00007f18d8016420>:0x00007f18c8ecfc60> +Did you mean? games_path): + 12: <header> + 13: <nav> + 14: <ul> + 15: <li><%= link_to 'Home', homes_path %></li> + 16: <li><%= link_to 'Games', games_path %></li> + 17: <li><%= link_to 'Developers', developers_path %></li> + 18: <li><%= link_to 'Categories', categories_path %></li> + +app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb___1697059728132317164_69872213366540' +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:17:21 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.0ms) +Completed 500 Internal Server Error in 157ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined local variable or method `home' for #<#<Class:0x00007f18d8016420>:0x00007f18ca0c1658>): + 12: <header> + 13: <nav> + 14: <ul> + 15: <li><%= link_to 'Home', home/index %></li> + 16: <li><%= link_to 'Games', games_path %></li> + 17: <li><%= link_to 'Developers', developers_path %></li> + 18: <li><%= link_to 'Categories', categories_path %></li> + +app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb___1697059728132317164_69872222850200' +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:17:30 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:16: syntax error, unexpected '<', expecting ')' + <li>'.freeze;@output_buffer.ap... + ^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:16: syntax error, unexpected tCONSTANT, expecting ')' +..._buffer.append=( link_to 'Games', games_path );@output_buffe... +... ^~~~~ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:17: unknown regexp option - l +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:18: syntax error, unexpected '<' + <li>'.freeze;@output_buffer.ap... + ^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:18: syntax error, unexpected tCONSTANT, expecting ')' +...er.append=( link_to 'Categories', categories_path );@output_... +... ^~~~~~~~~~ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:19: unknown regexp option - l +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:20: syntax error, unexpected '<' + </ul> + ^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:21: unknown regexp options - av +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:22: syntax error, unexpected '<' + </header> + ^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:24: unknown regexp options - bdy +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:25: syntax error, unexpected '<' +</html>'.freeze; +^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:29: unterminated regexp meets end of file + end + ^ +/home/wellington/Documents/CI320/T5/app/views/layouts/application.html.erb:29: syntax error, unexpected end-of-input, expecting ')' + end + ^): + +app/views/layouts/application.html.erb:16: syntax error, unexpected '<', expecting ')' +app/views/layouts/application.html.erb:16: syntax error, unexpected tCONSTANT, expecting ')' +app/views/layouts/application.html.erb:17: unknown regexp option - l +app/views/layouts/application.html.erb:18: syntax error, unexpected '<' +app/views/layouts/application.html.erb:18: syntax error, unexpected tCONSTANT, expecting ')' +app/views/layouts/application.html.erb:19: unknown regexp option - l +app/views/layouts/application.html.erb:20: syntax error, unexpected '<' +app/views/layouts/application.html.erb:21: unknown regexp options - av +app/views/layouts/application.html.erb:22: syntax error, unexpected '<' +app/views/layouts/application.html.erb:24: unknown regexp options - bdy +app/views/layouts/application.html.erb:25: syntax error, unexpected '<' +app/views/layouts/application.html.erb:29: unterminated regexp meets end of file +app/views/layouts/application.html.erb:29: syntax error, unexpected end-of-input, expecting ')' +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:18:41 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.4ms) +Completed 500 Internal Server Error in 203ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined local variable or method `home_index' for #<#<Class:0x00007f18d8016420>:0x00007f18c8b95338> +Did you mean? home_index_url): + 12: <header> + 13: <nav> + 14: <ul> + 15: <li><%= link_to 'Home', home_index %></li> + 16: <li><%= link_to 'Games', games_path %></li> + 17: <li><%= link_to 'Developers', developers_path %></li> + 18: <li><%= link_to 'Categories', categories_path %></li> + +app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb___1697059728132317164_69872211675380' +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:18:48 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.2ms) + + +Started GET "/home/index" for 127.0.0.1 at 2018-06-01 22:18:50 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.0ms) + + +Started GET "/home/index" for 127.0.0.1 at 2018-06-01 22:18:51 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.0ms) + + +Started GET "/home/index" for 127.0.0.1 at 2018-06-01 22:19:01 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 154ms (ActiveRecord: 0.0ms) + + + +ActionView::Template::Error (undefined local variable or method `root' for #<#<Class:0x00007f18c9998e58>:0x00000000055fed30>): + 12: <header> + 13: <nav> + 14: <ul> + 15: <li><%= link_to 'Home', root %></li> + 16: <li><%= link_to 'Games', games_path %></li> + 17: <li><%= link_to 'Developers', developers_path %></li> + 18: <li><%= link_to 'Categories', categories_path %></li> + +app/views/layouts/application.html.erb:15:in `_app_views_layouts_application_html_erb___1697059728132317164_44885140' +Started GET "/home/index" for 127.0.0.1 at 2018-06-01 22:19:06 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:08 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:19:09 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:09 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:19:10 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 34ms (Views: 32.4ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-01 22:19:10 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:19:11 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:12 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:20 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 18.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 20.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:19:22 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 27ms (Views: 20.9ms | ActiveRecord: 0.9ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:22 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 29ms (Views: 27.3ms | ActiveRecord: 0.0ms) + + +Started GET "/home/index" for 127.0.0.1 at 2018-06-01 22:19:28 -0300 + +ActionController::RoutingError (No route matches [GET] "/home/index"): + +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/" for 127.0.0.1 at 2018-06-01 22:19:57 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 36ms (Views: 35.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:20:05 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 39ms (Views: 38.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:20:16 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 41ms (Views: 40.4ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:20:30 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 38ms (Views: 37.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:20:42 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 42ms (Views: 40.8ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:20:54 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 42ms (Views: 40.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:05 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 37ms (Views: 36.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:19 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 38ms (Views: 37.0ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:30 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 39ms (Views: 38.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:43 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 43ms (Views: 42.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:21:52 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 40ms (Views: 39.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:22:03 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:22:09 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 45ms (Views: 44.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:22:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 38ms (Views: 37.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:22:22 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 17ms (Views: 16.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:23:00 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:23:31 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:23:32 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 18ms (Views: 17.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:23:55 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 37ms (Views: 36.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:24:10 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 39ms (Views: 38.5ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:24:18 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:24:34 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 39ms (Views: 38.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:24:53 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 40ms (Views: 39.2ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:25:32 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 35ms (Views: 34.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:25:33 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:26:06 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 45ms (Views: 43.9ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:26:17 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 35ms (Views: 34.5ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:26:24 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 36ms (Views: 35.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:27:02 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:27:38 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 35ms (Views: 34.5ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:27:56 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 26ms (Views: 25.0ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:28:15 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 48ms (Views: 46.6ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:28:16 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:28:44 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:28:48 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (8.0ms) +Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 1.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:28:49 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 26ms (Views: 24.7ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:28:50 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 33ms (Views: 31.0ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-01 22:28:50 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 23ms (Views: 18.8ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:28:51 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:28:53 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:28:54 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.1ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:28:56 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 20ms (Views: 19.2ms | ActiveRecord: 0.2ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-01 22:28:57 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + Rendered prices/_form.html.erb (3.2ms) + Rendered prices/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 30ms (Views: 21.0ms | ActiveRecord: 0.5ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-01 22:29:02 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zUIjCFqqjtYN9Sl8OjGLNoqXfa9iN2WKMu0mVVvMGtdmELavxIqWQkOlJcZq6F8oAiYEu+bl8dOH6Ifq9VVkPA==", "price"=>{"price_us"=>"40", "price_br"=>"50", "price_ru"=>"30"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering prices/new.html.erb within layouts/application + Rendered prices/_form.html.erb (2.1ms) + Rendered prices/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 34ms (Views: 26.5ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:29:11 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:29:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 19ms (Views: 17.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:29:14 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:30:02 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 16ms (Views: 15.7ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:30:18 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 38ms (Views: 37.3ms | ActiveRecord: 0.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:31:11 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-01 22:31:12 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:31:13 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.5ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:31:14 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:31:15 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:31:17 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.3ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-01 22:31:18 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + Rendered prices/_form.html.erb (2.3ms) + Rendered prices/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:31:24 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:31:25 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 27ms (Views: 25.1ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:31:26 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-01 22:31:27 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (3.4ms) + Rendered games/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 32ms (Views: 20.2ms | ActiveRecord: 0.8ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-01 22:31:30 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"g5RdJcmhmXSeknsM0KsuxJo4fhIo4F7Ssh52amrWy/Y8uU0QRCaNYm+ZPyH3EGMJfCE3UBRztzn3EkGviuS8zg==", "game"=>{"name"=>"asdasdas", "description"=>"asdasdas", "is_released"=>"1"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (2.0ms) + Rendered games/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 22ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:31:33 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:31:38 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 28ms (Views: 26.8ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:33:08 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-01 22:33:19 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-01 22:33:20 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-01 22:33:22 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-01 22:33:22 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-01 22:33:24 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 10:27:08 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (321.4ms) +Completed 200 OK in 392ms (Views: 387.0ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 10:58:53 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 10:58:54 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 97ms (Views: 32.0ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 10:58:55 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (90.5ms) + Rendered games/new.html.erb within layouts/application (98.7ms) +Completed 200 OK in 148ms (Views: 133.1ms | ActiveRecord: 0.9ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:04:08 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (3.0ms) + Rendered games/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.0ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:05:27 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (2.4ms) + Rendered games/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.0ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:05:52 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + Rendered games/_form.html.erb (2.8ms) + Rendered games/new.html.erb within layouts/application (10.5ms) +Completed 200 OK in 28ms (Views: 26.9ms | ActiveRecord: 0.0ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:13:32 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (55.4ms) + Rendered games/new.html.erb within layouts/application (56.5ms) +Completed 200 OK in 73ms (Views: 71.5ms | ActiveRecord: 0.7ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:13:36 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 35ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started DELETE "/developers/1" for 127.0.0.1 at 2018-06-02 11:13:39 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"HfZ7W0slulQWzePDBEgp5pAf5rc3UL2zj7bubXamDzypH1H5lMlpuY722DXpPeyZ9it7i14JSiFdjm+O+tzPvQ==", "id"=>"1"} + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 1]] + [1m[35mSQL (9.8ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 1]] + [1m[35m (65.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 98ms (ActiveRecord: 75.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:13:39 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 25ms (Views: 24.4ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:13:40 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:13:42 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.4ms) + Rendered games/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:13:44 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1q+BKb3zl4qu1ckyVxKPPZ7hMbleoyVvP2ChI7BWjcnUzKVXPhw56whuwKnVso71rn2Ivj+mUaWeM9WTILrZYw==", "game"=>{"name"=>"", "description"=>"", "is_released"=>"0"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.8ms) + Rendered games/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 56ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:14:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 76ms (Views: 74.9ms | ActiveRecord: 0.1ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:14:14 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (5.2ms) + Rendered games/new.html.erb within layouts/application (6.4ms) +Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:14:15 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"XlRzFnR0jQhqMZFNx7oIiFuywZaOm2crVgb9DNybPbhcN1do95sjacyKmNZFGglAay54ke+eE+H3VYm8THdpEg==", "game"=>{"name"=>"", "description"=>"", "is_released"=>"0"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.9ms) + Rendered games/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:14:59 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 38ms (Views: 36.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:15:01 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.4ms) + Rendered games/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 28ms (Views: 26.7ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:15:20 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 11:15:21 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.6ms) + Rendered developers/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 30ms (Views: 22.9ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 11:15:26 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GjH6XVlH8VKDbYQ7gtuWkuD2oNSeBLC2sY9YgObdBWx55I4aYNriZJyO3TY7Tr6spSYNqffx2oc6so+8IYNdpQ==", "developer"=>{"name"=>"José", "country"=>"Carlinhos"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "José"], ["country", "Carlinhos"], ["created_at", "2018-06-02 14:15:26.993101"], ["updated_at", "2018-06-02 14:15:26.993101"]] + [1m[35m (93.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 97ms (ActiveRecord: 93.8ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 11:15:27 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:15:28 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:15:28 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:15:30 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:15:31 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (4.1ms) + Rendered games/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:15:41 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"DL5Wa5VENfb3ScH1P6L6+iAz7t6N59o38hntgnxBQqwO3XIVFqubl1HyyG69AvsyEK9X2ezirv1TSpky7K0WBg==", "game"=>{"name"=>"asdasdas", "description"=>"sadsadasdsaasdasdsa", "is_released"=>"1", "developer_id"=>"2"}, "commit"=>"Create Game"} +Unpermitted parameter: :developer_id + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.5ms) + Rendered games/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:15:43 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"byrVDpFPIyKw5zHnEG/myeGz4W04y8qrBwwLMh9/MlLbw/+sTqPwzyjcChH9GiO2h4d8UVGSPTnVNIrRkwXy0w==", "game"=>{"name"=>"asdasdas", "description"=>"sadsadasdsaasdasdsa", "is_released"=>"1", "developer_id"=>"2"}, "commit"=>"Create Game"} +Unpermitted parameter: :developer_id + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.6ms) + Rendered games/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:15:46 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:16:33 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 22.6ms | ActiveRecord: 0.5ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:16:34 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (9.4ms) + Rendered games/new.html.erb within layouts/application (10.6ms) +Completed 200 OK in 51ms (Views: 40.8ms | ActiveRecord: 1.1ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:16:37 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"bjkmqDOfGI9LLgngjHKkDWdXic60YClJBQQ8zQOgkwpsWgLWsHC27u2VAHsO0qXFV8swydVlXYOkV0h9k0zHoA==", "game"=>{"name"=>"asdsadsa", "description"=>"sadsadsa", "is_released"=>"1", "developer_id"=>"2"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdsadsa"], ["description", "sadsadsa"], ["is_released", "t"], ["developer_id", 2], ["created_at", "2018-06-02 14:16:37.815975"], ["updated_at", "2018-06-02 14:16:37.815975"]] + [1m[35m (96.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/1 +Completed 302 Found in 106ms (ActiveRecord: 98.0ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 11:16:37 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.5ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 32ms (Views: 30.2ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:16:40 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 31ms (Views: 30.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:16:43 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 11:16:45 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"PaNtRzua+zdaS46HrM9cq0ENfa2bFTbUM23PGjyvq0WJSkfl5HYo2sJwtXFBupnUJzngkfJMwUbhVU75sNVrxA==", "id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 1]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (59.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 163ms (ActiveRecord: 62.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:16:45 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:16:47 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:18:00 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 20ms (Views: 16.2ms | ActiveRecord: 0.5ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:18:01 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (6.3ms) + Rendered games/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 35ms (Views: 25.9ms | ActiveRecord: 1.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:18:04 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.1ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 11:18:05 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 18.2ms | ActiveRecord: 0.3ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 11:18:07 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"khDqncoR7JOViK+Cf9Uk5cWZz3mbKrYvwXoQbySHQ+rxxZ7a84z/pYpr9o/GQAzbgEliBPLf3B5KR8dT49kbIw==", "developer"=>{"name"=>"asdsad", "country"=>"sadsa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "asdsad"], ["country", "sadsa"], ["created_at", "2018-06-02 14:18:07.194166"], ["updated_at", "2018-06-02 14:18:07.194166"]] + [1m[35m (178.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/3 +Completed 302 Found in 184ms (ActiveRecord: 179.5ms) + + +Started GET "/developers/3" for 127.0.0.1 at 2018-06-02 11:18:07 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 17ms (Views: 15.6ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:18:09 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.8ms) + Rendered games/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 30ms (Views: 29.2ms | ActiveRecord: 0.1ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:18:12 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"nBZzyvacb1+WccoMN5z7HXcSnKAtJf9C3IPlu1+G7Z4o/1loKXC8sg5K8fra6T5iESYBnER8CNAOu2RY0/wtHw==", "game"=>{"name"=>"asdsadas", "description"=>"dasdsada", "is_released"=>"1", "developer_id"=>"3"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdsadas"], ["description", "dasdsada"], ["is_released", "t"], ["developer_id", 3], ["created_at", "2018-06-02 14:18:12.781276"], ["updated_at", "2018-06-02 14:18:12.781276"]] + [1m[35m (92.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/2 +Completed 302 Found in 101ms (ActiveRecord: 93.2ms) + + +Started GET "/games/2" for 127.0.0.1 at 2018-06-02 11:18:12 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:20: syntax error, unexpected '.', expecting ')' +...uffer.append=( Developer.find(.developer_id).name );@output_... +... ^ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:20: syntax error, unexpected ')', expecting keyword_end +...oper.find(.developer_id).name );@output_buffer.safe_append=' +... ^): + +app/views/games/show.html.erb:20: syntax error, unexpected '.', expecting ')' +app/views/games/show.html.erb:20: syntax error, unexpected ')', expecting keyword_end +Started GET "/games/2" for 127.0.0.1 at 2018-06-02 11:18:24 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 18ms (Views: 16.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:18:39 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:19:05 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (3.2ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `developer_id' for nil:NilClass): + 18: <td><%= game.name %></td> + 19: <td><%= game.description %></td> + 20: <td><%= game.is_released %></td> + 21: <td><%= Developer.find(@game.developer_id).name %></td> + 22: <td><%= link_to 'Show', game %></td> + 23: <td><%= link_to 'Edit', edit_game_path(game) %></td> + 24: <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + +app/views/games/index.html.erb:21:in `block in _app_views_games_index_html_erb__4098127661014782825_69990199706720' +app/views/games/index.html.erb:16:in `_app_views_games_index_html_erb__4098127661014782825_69990199706720' +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:19:12 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:19:23 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 23.4ms | ActiveRecord: 0.2ms) + + +Started GET "/games/2/edit" for 127.0.0.1 at 2018-06-02 11:19:36 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"2"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.1ms) + Rendered games/edit.html.erb within layouts/application (4.5ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.3ms) + + +Started PATCH "/games/2" for 127.0.0.1 at 2018-06-02 11:19:37 -0300 +Processing by GamesController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wDeLth74eJRBDFsjnXDex/23D7VKhREcHYuKe1p59qqv4zAR3+v+bkPuKubIVWrc03o3nbF0tcwGeMqagTCALg==", "game"=>{"name"=>"asdsadas", "description"=>"dasdsada", "is_released"=>"1", "developer_id"=>"3"}, "commit"=>"Update Game", "id"=>"2"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/2 +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + + +Started GET "/games/2" for 127.0.0.1 at 2018-06-02 11:19:37 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 18ms (Views: 17.2ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:19:39 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:19:44 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:21:01 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 26ms (Views: 16.2ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:21:03 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 41ms (Views: 15.4ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:21:04 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 23.1ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:21:05 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 26ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:06 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 31ms (Views: 29.3ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:21:09 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 50ms (Views: 49.2ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:11 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 46ms (Views: 43.8ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:21:15 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 31ms (Views: 30.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:21 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.4ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 30ms (Views: 28.4ms | ActiveRecord: 0.5ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:21:22 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.8ms) + Rendered games/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:21:26 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aWZ0bf7vrHH/nTD5T87kzvQNAcFV8o9u1GHUevCvlrZrBVATfQACEFkmOWLNbuUGxJG4xjT3+6R1MqDKYEPCHA==", "game"=>{"name"=>"asdsadasda", "description"=>"sdasdasdasd", "is_released"=>"1", "developer_id"=>"3"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdsadasda"], ["description", "sdasdasdasd"], ["is_released", "t"], ["developer_id", 3], ["created_at", "2018-06-02 14:21:26.082355"], ["updated_at", "2018-06-02 14:21:26.082355"]] + [1m[35m (114.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/3 +Completed 302 Found in 119ms (ActiveRecord: 114.8ms) + + +Started GET "/games/3" for 127.0.0.1 at 2018-06-02 11:21:26 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:28 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:21:29 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (4.1ms) + Rendered games/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:21:34 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"RB8fnpkYAfXRmzKycXgZN73QJt2Zzi6wuOM08mnerC9GfDvgGvevlHcgOynz2Bj/jUyf2vjLWnoZsEBC+TL4hQ==", "game"=>{"name"=>"asdsadasdasda", "description"=>"sdasdsadasdasd", "is_released"=>"1", "developer_id"=>"3"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdsadasdasda"], ["description", "sdasdsadasdasd"], ["is_released", "t"], ["developer_id", 3], ["created_at", "2018-06-02 14:21:34.230115"], ["updated_at", "2018-06-02 14:21:34.230115"]] + [1m[35m (131.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/4 +Completed 302 Found in 136ms (ActiveRecord: 132.2ms) + + +Started GET "/games/4" for 127.0.0.1 at 2018-06-02 11:21:34 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:36 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:21:43 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 11:21:46 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.8ms) + Rendered developers/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 11:21:48 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6D98FhazF/QP8Q6FkyvwN5IHgA5gdfJ09P7MUYyiidaL6ghRLy4EwhASV4gqvtgJ19ctcwmAmEV/wxttS/zRHw==", "developer"=>{"name"=>"asdasdas", "country"=>"asdasdas"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "asdasdas"], ["country", "asdasdas"], ["created_at", "2018-06-02 14:21:48.627632"], ["updated_at", "2018-06-02 14:21:48.627632"]] + [1m[35m (104.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/4 +Completed 302 Found in 109ms (ActiveRecord: 104.9ms) + + +Started GET "/developers/4" for 127.0.0.1 at 2018-06-02 11:21:48 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:49 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:21:50 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.0ms) + Rendered games/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 21ms (Views: 19.3ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:21:55 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GAyqG8kS4eQ1ATg0trDrmJ03raU7WJrzn1f281Qcc3kab45lSv1PhZO6Ma80EOpQrasUolpd7jk+BIJDxPAn0w==", "game"=>{"name"=>"adsadasdsa", "description"=>"dsadasdsadas", "is_released"=>"1", "developer_id"=>"4"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "adsadasdsa"], ["description", "dsadasdsadas"], ["is_released", "t"], ["developer_id", 4], ["created_at", "2018-06-02 14:21:55.770055"], ["updated_at", "2018-06-02 14:21:55.770055"]] + [1m[35m (104.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/5 +Completed 302 Found in 109ms (ActiveRecord: 105.5ms) + + +Started GET "/games/5" for 127.0.0.1 at 2018-06-02 11:21:55 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"5"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:21:56 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:22:00 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 21ms (Views: 19.5ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/3" for 127.0.0.1 at 2018-06-02 11:22:04 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"AykaCAayS5b6Jmw5Xvi3Wzvf21XoTTFBYoJfrtnYrBK3wDCq2V6Ye2IdV8+zjXIkXetGaYEUxtOwut5NVaJskw==", "id"=>"3"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 3]] + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 2], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 2]] + [1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 2]] + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 3], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 3]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 3]] + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 4]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 4]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 3]] + [1m[35m (73.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 92ms (ActiveRecord: 75.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:22:04 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:05 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started DELETE "/games/5" for 127.0.0.1 at 2018-06-02 11:22:13 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"authenticity_token"=>"WGOO7BLpIzz6h9pJrKcMAHdRSwNrOelv9UdO+xeDxQbsiqROzQXw0WK84b9B0sl/EWXWPwJgHv0nf88Ym/kFhw==", "id"=>"5"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 5], ["LIMIT", 1]] + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 5]] + [1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 5]] + [1m[35m (58.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games +Completed 302 Found in 63ms (ActiveRecord: 59.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:22:14 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 22ms (Views: 21.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:16 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 20ms (Views: 19.6ms | ActiveRecord: 0.1ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:22:16 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.8ms) + Rendered games/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:22:20 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cpiO+0KfoF1hnjB/Z8/bTsXnI9fYt4qF3lPce7bSZr1w+6qFwXAOPMclOeTlb9qG9Xua0Lmy/k9/AKjLJj4yFw==", "game"=>{"name"=>"asdasdasd", "description"=>"asdasdsad", "is_released"=>"1", "developer_id"=>"4"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdasdasd"], ["description", "asdasdsad"], ["is_released", "t"], ["developer_id", 4], ["created_at", "2018-06-02 14:22:20.477156"], ["updated_at", "2018-06-02 14:22:20.477156"]] + [1m[35m (120.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/6 +Completed 302 Found in 126ms (ActiveRecord: 121.3ms) + + +Started GET "/games/6" for 127.0.0.1 at 2018-06-02 11:22:20 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"6"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 17.5ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:21 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:22:24 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (3.9ms) + Rendered games/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 11:22:28 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"boBw7ic42MytXtw+qNyMYYKl4hk+loKjuiAqR/vd9nls41SQpNd2rQvl1aUqfI2psjlbHl+T9mkbc173azGi0w==", "game"=>{"name"=>"asdasdasdas", "description"=>"dasdasdasdasd", "is_released"=>"1", "developer_id"=>"4"}, "commit"=>"Create Game"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdasdasdas"], ["description", "dasdasdasdasd"], ["is_released", "t"], ["developer_id", 4], ["created_at", "2018-06-02 14:22:28.399165"], ["updated_at", "2018-06-02 14:22:28.399165"]] + [1m[35m (114.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/7 +Completed 302 Found in 118ms (ActiveRecord: 114.6ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 11:22:28 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:22:30 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 21ms (Views: 20.6ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:31 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:22:34 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:35 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:22:35 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 21.1ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:22:36 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:22:37 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:22:56 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 31ms (Views: 28.7ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 11:22:58 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.7ms) + Rendered categories/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 134ms (Views: 22.6ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 11:23:05 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"DhtxLjYtQbSM2vOscNXVgs2zbtq4K1MzsqwLVdIcf3+JOdujlLak6QGmNIB5Ax361b5GdrukvKeB9yhUmXHk6Q==", "category"=>{"name"=>"asdasdsadas", "description"=>"sadasdasdsa"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "asdasdsadas"], ["description", "sadasdasdsa"], ["created_at", "2018-06-02 14:23:05.753134"], ["updated_at", "2018-06-02 14:23:05.753134"]] + [1m[35m (110.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/1 +Completed 302 Found in 114ms (ActiveRecord: 110.9ms) + + +Started GET "/categories/1" for 127.0.0.1 at 2018-06-02 11:23:05 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 31ms (Views: 17.5ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:23:07 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:27:10 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:27:11 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:27:14 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 27ms (Views: 25.1ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:27:16 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:27:19 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:27:38 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 26ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:30:25 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 19ms (Views: 17.0ms | ActiveRecord: 0.7ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:31:32 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.1ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:31:34 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (39.6ms) + Rendered prices/new.html.erb within layouts/application (40.5ms) +Completed 200 OK in 70ms (Views: 59.2ms | ActiveRecord: 1.2ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:31:45 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LQo1EaepnRXDRBi0qqmWr5I22ChS+zHQPwcpQHEvZsX1mUiyuUOnq5n7v+5AYjTFhUbeAiB/6lhXT2g3w34qGQ==", "price"=>{"game_id"=>"7", "price_us"=>"25", "price_br"=>"25", "price_ru"=>"25"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 25], ["price_br", 25], ["price_ru", 25], ["game_id", 7], ["created_at", "2018-06-02 14:31:45.192327"], ["updated_at", "2018-06-02 14:31:45.192327"]] + [1m[35m (53.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/1 +Completed 302 Found in 62ms (ActiveRecord: 54.2ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 11:31:45 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.2ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 11:32:02 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.3ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 11:32:10 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 21ms (Views: 19.1ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:32:11 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:32:19 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (4.8ms) + Rendered prices/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:32:23 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"E8jQUk9Zp/5tTdkiNKusmMTppOXDUzuPGPypH1luHWPLW63xUbOdQDfyfnjeYA7y05miz7HX4AdwtOho6z9Rvw==", "price"=>{"game_id"=>"6", "price_us"=>"123213", "price_br"=>"213213", "price_ru"=>"123213"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 123213], ["price_br", 213213], ["price_ru", 123213], ["game_id", 6], ["created_at", "2018-06-02 14:32:23.486118"], ["updated_at", "2018-06-02 14:32:23.486118"]] + [1m[35m (60.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/2 +Completed 302 Found in 67ms (ActiveRecord: 61.4ms) + + +Started GET "/prices/2" for 127.0.0.1 at 2018-06-02 11:32:23 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 21ms (Views: 19.2ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:32:24 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 26ms (Views: 25.0ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:32:27 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (5.3ms) + Rendered prices/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.3ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:32:32 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8BEHMtR5RioQ3ZTKb8t1PIwmC6oEeRmVFUBTWBfPhHEognqRypN8lEpiM5CFANdWm1YNgHb9wh19CBIvpZ7IrQ==", "price"=>{"game_id"=>"6", "price_us"=>"12321", "price_br"=>"1321213", "price_ru"=>"213213"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 12321], ["price_br", 1321213], ["price_ru", 213213], ["game_id", 6], ["created_at", "2018-06-02 14:32:32.675106"], ["updated_at", "2018-06-02 14:32:32.675106"]] + [1m[35m (55.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/3 +Completed 302 Found in 70ms (ActiveRecord: 56.6ms) + + +Started GET "/prices/3" for 127.0.0.1 at 2018-06-02 11:32:32 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:32:33 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[36mCACHE Game Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.4ms) + + +Started GET "/developers/3" for 127.0.0.1 at 2018-06-02 11:40:56 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] +Completed 404 Not Found in 5ms (ActiveRecord: 0.9ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Developer with 'id'=3): + +app/controllers/developers_controller.rb:67:in `set_developer' +Started GET "/" for 127.0.0.1 at 2018-06-02 11:41:05 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 17ms (Views: 16.0ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:41:07 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (11.6ms) +Completed 200 OK in 34ms (Views: 29.0ms | ActiveRecord: 0.7ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:41:08 -0300 +Processing by PricesController#index as HTML +Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/models/price.rb:4: syntax error, unexpected keyword_end): + +app/models/price.rb:4: syntax error, unexpected keyword_end +app/controllers/prices_controller.rb:7:in `index' +Started GET "/" for 127.0.0.1 at 2018-06-02 11:41:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.0ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:42:02 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (6.7ms) +Completed 200 OK in 27ms (Views: 22.6ms | ActiveRecord: 1.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:42:04 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[36mCACHE Game Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (19.9ms) +Completed 200 OK in 39ms (Views: 34.7ms | ActiveRecord: 1.7ms) + + +Started DELETE "/prices/3" for 127.0.0.1 at 2018-06-02 11:42:07 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"authenticity_token"=>"525aXU1LCEhnZfg4yQuTOKZLgrWlJKpGd4cXz+W0FA5Th3D/kqfbpf9ew84kflZHwH8ficx9XdSlv5Ysac7Ujw==", "id"=>"3"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 3]] + [1m[35m (65.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices +Completed 302 Found in 70ms (ActiveRecord: 66.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:42:07 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:42:08 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (4.6ms) + Rendered prices/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 38ms (Views: 36.6ms | ActiveRecord: 0.3ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:42:11 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Er7bBL3+g0wvmyvdIWmn9+1VqAhnSJBLvhWKv7H8RNrKLaanoxS58nUkjIfLogWd+iWuIhXMS8PWXcvIA60IBg==", "price"=>{"game_id"=>"6", "price_us"=>"213213", "price_br"=>"213213", "price_ru"=>"213"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 6], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.4ms) + Rendered prices/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 53ms (Views: 18.8ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:42:15 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:43:14 -0300 +Processing by PricesController#index as HTML +Completed 500 Internal Server Error in 1ms + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/models/price.rb:3: syntax error, unexpected ',', expecting => +...es :game_id, uniqueness: {true, message: "Game already has a... +... ^ +/home/wellington/Documents/CI320/T5/app/models/price.rb:3: syntax error, unexpected '}', expecting keyword_end +...Game already has a price list"} +... ^): + +app/models/price.rb:3: syntax error, unexpected ',', expecting => +app/models/price.rb:3: syntax error, unexpected '}', expecting keyword_end +app/controllers/prices_controller.rb:7:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:43:33 -0300 +Processing by PricesController#index as HTML +Completed 500 Internal Server Error in 3ms + + + +ArgumentError (Unknown validator: 'MessageValidator'): + +app/models/price.rb:3:in `<class:Price>' +app/models/price.rb:1:in `<top (required)>' +app/controllers/prices_controller.rb:7:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:44:12 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (16.9ms) +Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 1.5ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:44:14 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (5.5ms) + Rendered prices/new.html.erb within layouts/application (6.9ms) +Completed 200 OK in 28ms (Views: 26.1ms | ActiveRecord: 0.3ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:44:17 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"YCx6WmPcivR4+mv7x39JWITocyawm/0TLR5tbivCQV24vwf5fTawSiJFzKEttOsyk5h1DMIfJptFViwZmZMNgQ==", "price"=>{"game_id"=>"6", "price_us"=>"1231", "price_br"=>"21321321", "price_ru"=>"321"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[36mPrice Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 6], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (4.4ms) + Rendered prices/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 29ms (Views: 21.3ms | ActiveRecord: 0.7ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:44:25 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (22.6ms) +Completed 200 OK in 39ms (Views: 36.8ms | ActiveRecord: 1.5ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 11:44:26 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.7ms) + Rendered prices/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.2ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 11:44:29 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vbnvoqTjNyv7GTMGAvaqNd2npLjX325hKRFsqD9AZxVlKpIBugkNlaGmlFzoPQhfyteikqVbtelBWS3fjREryQ==", "price"=>{"game_id"=>"6", "price_us"=>"123123", "price_br"=>"213213", "price_ru"=>"213213"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[36mPrice Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 6], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.0ms) + Rendered prices/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 28ms (Views: 20.0ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:45:54 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:45:56 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 32ms (Views: 26.2ms | ActiveRecord: 0.9ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:46:51 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:46:54 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (18.9ms) +Completed 200 OK in 42ms (Views: 33.4ms | ActiveRecord: 7.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:46:54 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:46:55 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:46:56 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:46:57 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.3ms) + + +Started DELETE "/games/6" for 127.0.0.1 at 2018-06-02 11:47:00 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"authenticity_token"=>"t5j4Tmvpm1aY4dbfVOvBsDw0jjC5Er7y6avIyCGGs3gDcdLstAVIuwDa7Sm5ngTPWgATDNBLSWA7k0krrfxz+Q==", "id"=>"6"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 6], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 6], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 2]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 6]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 6]] + [1m[35m (81.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games +Completed 302 Found in 92ms (ActiveRecord: 82.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:00 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:01 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 18ms (Views: 17.5ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:03 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:05 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 41ms (Views: 38.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/prices/1" for 127.0.0.1 at 2018-06-02 11:47:07 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"authenticity_token"=>"4OWmj/MrVyySG5XkyLDxWweLwb+Cb4Ce9aEL36lT7rBUDIwtLMeEwQogrhIlxTQkYb9cg+s2dwwnmYo8JSkuMQ==", "id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 1]] + [1m[35m (65.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices +Completed 302 Found in 69ms (ActiveRecord: 65.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:07 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:08 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.5ms) +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:08 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 40ms (Views: 37.8ms | ActiveRecord: 0.4ms) + + +Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:09 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 25ms (Views: 23.9ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:47:10 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 20ms (Views: 18.0ms | ActiveRecord: 0.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:12 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:47:19 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:47:24 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 33ms (Views: 31.2ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:47:24 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:47:25 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 29ms (Views: 27.8ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:47:26 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:50:50 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 17ms (Views: 16.3ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:50:52 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:50:53 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:50:54 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:51:11 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 21.4ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:51:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:51:23 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:51:23 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:51:25 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:51:25 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.1ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 11:51:26 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 26ms (Views: 24.5ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 11:51:27 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 30ms (Views: 28.3ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:51:28 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/4" for 127.0.0.1 at 2018-06-02 11:51:30 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 11:51:31 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 11:51:32 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 11:54:30 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:54:31 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (4.4ms) + Rendered games/new.html.erb within layouts/application (5.6ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 11:55:18 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered games/_form.html.erb (2.6ms) + Rendered games/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:13:07 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (118.8ms) + Rendered games/new.html.erb within layouts/application (120.2ms) +Completed 200 OK in 138ms (Views: 136.7ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:13:12 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 28ms (Views: 25.9ms | ActiveRecord: 0.3ms) + + +Started DELETE "/categories/1" for 127.0.0.1 at 2018-06-02 12:13:15 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"authenticity_token"=>"8uxO1dL0jH/dYEQnk4LzY4R5ae1iO8EmmXcMKhVKHApGBWR3DRhfkkVbf9F+9zYc4k300QtiNrRLT43JmTDciw==", "id"=>"1"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 1]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 1]] + [1m[35m (296.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories +Completed 302 Found in 303ms (ActiveRecord: 296.6ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:13:15 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 17ms (Views: 16.4ms | ActiveRecord: 0.1ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 12:13:16 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (3.1ms) + Rendered categories/new.html.erb within layouts/application (4.7ms) +Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 12:13:19 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kwZbj4IoHVmlcQMxUvHMbJxa/QwlccCWNTjPJilGQswUJPECILP4BCgNxB1bJwQUhFfVoCb+LwIGY+wnYivZWg==", "category"=>{"name"=>"Batata", "description"=>"Batatatata"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Batata"], ["description", "Batatatata"], ["created_at", "2018-06-02 15:13:19.484579"], ["updated_at", "2018-06-02 15:13:19.484579"]] + [1m[35m (189.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/2 +Completed 302 Found in 194ms (ActiveRecord: 189.7ms) + + +Started GET "/categories/2" for 127.0.0.1 at 2018-06-02 12:13:19 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:13:20 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 12:13:22 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.7ms) + Rendered categories/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 12:13:25 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dz4HVXIPQtXVsZ6NTq84yRVeWAPvtfbkX1IHqjSGgCfwHK3Y0JSniFjNWaFHefCxDVNwr+w6GXBsCSSrf+sbsQ==", "category"=>{"name"=>"Chips", "description"=>"asdadsa"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Chips"], ["description", "asdadsa"], ["created_at", "2018-06-02 15:13:25.053882"], ["updated_at", "2018-06-02 15:13:25.053882"]] + [1m[35m (187.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/3 +Completed 302 Found in 191ms (ActiveRecord: 187.4ms) + + +Started GET "/categories/3" for 127.0.0.1 at 2018-06-02 12:13:25 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.1ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:13:26 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 25ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 12:13:27 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.3ms) + Rendered categories/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 12:13:30 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"J0p8kXXMCtknde0j/e4EqNThVvLsm2/ZUxzQm2wrAh2gaNYc11fvhKoJKg/0OMzQzOx+Xu8UgE1gR/OaJ0aZiw==", "category"=>{"name"=>"Batatinhaa", "description"=>"dasdsadsa"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Batatinhaa"], ["description", "dasdsadsa"], ["created_at", "2018-06-02 15:13:30.645592"], ["updated_at", "2018-06-02 15:13:30.645592"]] + [1m[35m (96.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/4 +Completed 302 Found in 100ms (ActiveRecord: 96.9ms) + + +Started GET "/categories/4" for 127.0.0.1 at 2018-06-02 12:13:30 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 19ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:13:31 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 34ms (Views: 32.3ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:13:33 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (7.5ms) + Rendered games/new.html.erb within layouts/application (8.9ms) +Completed 200 OK in 34ms (Views: 32.6ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:15:39 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (217.4ms) + Rendered games/new.html.erb within layouts/application (219.1ms) +Completed 500 Internal Server Error in 235ms (ActiveRecord: 2.7ms) + + + +ActionView::Template::Error (undefined local variable or method `post' for #<#<Class:0x00007f4fb9dc0928>:0x00007f4fb9dbdde0>): + 37: </div> + 38: + 39: <div class="field"> + 40: <%= form.fields_for :categories, post.categories.build do |categories_fields| %> + 41: <%= categories_fields.text_field :name %> + 42: <%= categories_fields.text_field :description %> + 43: <% end %> + +app/views/games/_form.html.erb:40:in `block in _app_views_games__form_html_erb__1719514760850801536_69990188255940' +app/views/games/_form.html.erb:1:in `_app_views_games__form_html_erb__1719514760850801536_69990188255940' +app/views/games/new.html.erb:3:in `_app_views_games_new_html_erb__4206657029493400462_69990198677420' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:16:40 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:16:43 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (7.1ms) + Rendered games/new.html.erb within layouts/application (8.1ms) +Completed 200 OK in 37ms (Views: 35.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:16:56 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (180.7ms) + Rendered games/new.html.erb within layouts/application (181.5ms) +Completed 500 Internal Server Error in 183ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `text_area_field' for #<ActionView::Helpers::FormBuilder:0x00007f4fc41c5f00> +Did you mean? text_area): + 39: <div class="field"> + 40: <%= form.fields_for :categories, game.categories.build do |categories_fields| %> + 41: <%= categories_fields.text_field :name %> + 42: <%= categories_fields.text_area_field :description %> + 43: <% end %> + 44: </div> + 45: + +app/views/games/_form.html.erb:42:in `block (2 levels) in _app_views_games__form_html_erb__1719514760850801536_69990351039800' +app/views/games/_form.html.erb:40:in `block in _app_views_games__form_html_erb__1719514760850801536_69990351039800' +app/views/games/_form.html.erb:1:in `_app_views_games__form_html_erb__1719514760850801536_69990351039800' +app/views/games/new.html.erb:3:in `_app_views_games_new_html_erb__4206657029493400462_69990283890560' +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:16:57 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:17:05 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 12:17:07 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (8.5ms) + Rendered games/new.html.erb within layouts/application (10.1ms) +Completed 200 OK in 31ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 12:17:24 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7wau1i32R77HX8u2V27sMNy6Mr2YJ08yzVA/P63iaFPtZYqorhnp32Hkwi3Vzu347CaLuvkiO/hsA0uPPQ48+Q==", "game"=>{"name"=>"hahaha", "description"=>"hahaha", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>["", "3", "4"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (3, 4)[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "hahaha"], ["description", "hahaha"], ["is_released", "f"], ["developer_id", 4], ["created_at", "2018-06-02 15:17:24.856633"], ["updated_at", "2018-06-02 15:17:24.856633"]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 3], ["game_id", 8]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 4], ["game_id", 8]] + [1m[35m (85.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/8 +Completed 302 Found in 103ms (ActiveRecord: 87.3ms) + + +Started GET "/games/8" for 127.0.0.1 at 2018-06-02 12:17:24 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 24ms (Views: 20.9ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:17:28 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:17:33 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 32ms (Views: 30.6ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:17:36 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:17:37 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.5ms) + + +Started GET "/games/8" for 127.0.0.1 at 2018-06-02 12:17:38 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 35ms (Views: 33.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games/8/edit" for 127.0.0.1 at 2018-06-02 12:17:43 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 8]] + Rendered games/_form.html.erb (8.4ms) + Rendered games/edit.html.erb within layouts/application (9.5ms) +Completed 200 OK in 28ms (Views: 25.3ms | ActiveRecord: 0.7ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:17:47 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started DELETE "/categories/3" for 127.0.0.1 at 2018-06-02 12:17:49 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"authenticity_token"=>"sFDk81MAxxDHqj9LZWDLav11wLATF55uYzY8PhSNsnwEuc5RjOwU/V+RBL2IFQ4Vm0FdjHpOafyxDr3dmPdy/Q==", "id"=>"3"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 3]] + [1m[36mCategoryGame Load (0.1ms)[0m [1m[34mSELECT "category_games".* FROM "category_games" WHERE "category_games"."category_id" = ? AND "category_games"."game_id" = 8[0m [["category_id", 3]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "category_games" WHERE "category_games"."id" = ?[0m [["id", 1]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 3]] + [1m[35m (53.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories +Completed 302 Found in 62ms (ActiveRecord: 53.9ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:17:49 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:17:50 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 20.4ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:17:51 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.4ms) + + +Started GET "/games/8" for 127.0.0.1 at 2018-06-02 12:17:54 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.2ms) + + +Started GET "/games/8/edit" for 127.0.0.1 at 2018-06-02 12:17:56 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 8]] + Rendered games/_form.html.erb (7.0ms) + Rendered games/edit.html.erb within layouts/application (8.0ms) +Completed 200 OK in 27ms (Views: 24.3ms | ActiveRecord: 0.7ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:17:58 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 39ms (Views: 37.4ms | ActiveRecord: 0.2ms) + + +Started DELETE "/categories/4" for 127.0.0.1 at 2018-06-02 12:18:01 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"authenticity_token"=>"SbbTDAKXAfa1YRaYc9xI+O+ov6ZLjz3dr3RD3X+b+1X9X/mu3XvSGy1aLW6eqY2HiZwimiLWyk99TMI+8+E71A==", "id"=>"4"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 4]] + [1m[36mCategoryGame Load (0.1ms)[0m [1m[34mSELECT "category_games".* FROM "category_games" WHERE "category_games"."category_id" = ? AND "category_games"."game_id" = 8[0m [["category_id", 4]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "category_games" WHERE "category_games"."id" = ?[0m [["id", 2]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 4]] + [1m[35m (56.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories +Completed 302 Found in 64ms (ActiveRecord: 57.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:18:01 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:02 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 26ms (Views: 24.6ms | ActiveRecord: 0.3ms) + + +Started GET "/games/8/edit" for 127.0.0.1 at 2018-06-02 12:18:04 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 8]] + Rendered games/_form.html.erb (7.7ms) + Rendered games/edit.html.erb within layouts/application (8.8ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.8ms) + + +Started PATCH "/games/8" for 127.0.0.1 at 2018-06-02 12:18:05 -0300 +Processing by GamesController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"Tgs6Xx1viUd0d4OlWnrqez1gfd6TQyWYxD4ht+aJzYoyYAbUhvA20bS7zen+hur4t8SI6ur5UsBUn+03lM8G+Q==", "game"=>{"name"=>"hahaha", "description"=>"hahaha", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>["", "2"]}, "commit"=>"Update Game", "id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 8]] + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 2], ["game_id", 8]] + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35m (113.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/8 +Completed 302 Found in 124ms (ActiveRecord: 114.7ms) + + +Started GET "/games/8" for 127.0.0.1 at 2018-06-02 12:18:05 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"8"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:08 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.3ms) + + +Started DELETE "/games/8" for 127.0.0.1 at 2018-06-02 12:18:10 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"authenticity_token"=>"NulGAoYZb0J2Yl9gB/PvSC8tfXZhJSCZgBjw/oAo/CWCAGygWfW8r+5ZZJbqhio3SRngSgh81wtSIHEdDFI8pA==", "id"=>"8"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 8], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 8], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 8]] + [1m[36mCategoryGame Load (0.1ms)[0m [1m[34mSELECT "category_games".* FROM "category_games" WHERE "category_games"."game_id" = ? AND "category_games"."category_id" = 2[0m [["game_id", 8]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "category_games" WHERE "category_games"."id" = ?[0m [["id", 3]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 8]] + [1m[35m (131.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games +Completed 302 Found in 144ms (ActiveRecord: 133.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:10 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:18:11 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 25ms (Views: 24.2ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:18:13 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 26ms (Views: 24.8ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:23 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:18:24 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:26 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:18:29 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:18:33 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:18:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.0ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:18:43 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 33ms (Views: 31.4ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:18:46 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:19:59 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 20ms (Views: 18.7ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 12:19:59 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:20:00 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:20:00 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 22ms (Views: 21.0ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 12:20:01 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 12:20:02 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.0ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 12:20:04 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 29ms (Views: 26.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:20:06 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:21:05 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.4ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:21:07 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (153.5ms) +Completed 500 Internal Server Error in 156ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined local variable or method `game' for #<#<Class:0x00007f4fb9dc0928>:0x00007f4fc8326ee0> +Did you mean? @game): + 22: + 23: <p> + 24: <strong>Categories:</strong> + 25: <%= game.categories %> + 26: </p> + 27: + 28: <%= link_to 'Edit', edit_game_path(@game) %> | + +app/views/games/show.html.erb:25:in `_app_views_games_show_html_erb___4186768901136120726_69990318948120' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:21:14 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:21:24 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 37ms (Views: 35.2ms | ActiveRecord: 0.2ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:21:30 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ? LIMIT ?[0m [["game_id", 7], ["LIMIT", 11]] + Rendered games/show.html.erb within layouts/application (5.4ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined method `names' for #<ActiveRecord::Associations::CollectionProxy []> +Did you mean? name): + 22: + 23: <p> + 24: <strong>Categories:</strong> + 25: <%= @game.categories.names %> + 26: </p> + 27: + 28: <%= link_to 'Edit', edit_game_path(@game) %> | + +app/views/games/show.html.erb:25:in `_app_views_games_show_html_erb___4186768901136120726_69990485225500' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:21:42 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.3ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:22:24 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 18ms (Views: 16.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:23:23 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:27: syntax error, unexpected ')', expecting keyword_end + );@output_buffer.safe_append=' + ^ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' + end + ^~~): + +app/views/games/show.html.erb:27: syntax error, unexpected ')', expecting keyword_end +app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' +app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:23:46 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:27: syntax error, unexpected keyword_end +...eze;@output_buffer.append=( end );@output_buffer.safe_append... +... ^~~ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' + end + ^~~): + +app/views/games/show.html.erb:27: syntax error, unexpected keyword_end +app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' +app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:24:40 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/show.html.erb within layouts/application (141.3ms) +Completed 500 Internal Server Error in 146ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined local variable or method `names' for #<#<Class:0x00007f4fb9dc0928>:0x00007f4fba11d440>): + 27: <% end %> + 28: </p> + 29: + 30: <% names.each do |name| %> + 31: <%= name %> + 32: <% end %> + 33: + +app/views/games/show.html.erb:30:in `_app_views_games_show_html_erb___4186768901136120726_69990200439160' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:24:49 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/show.html.erb within layouts/application (4.9ms) +Completed 200 OK in 32ms (Views: 30.5ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 12:24:52 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 38ms (Views: 36.7ms | ActiveRecord: 0.3ms) + + +Started GET "/games/7/edit" for 127.0.0.1 at 2018-06-02 12:24:54 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/_form.html.erb (5.6ms) + Rendered games/edit.html.erb within layouts/application (6.4ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.6ms) + + +Started PATCH "/games/7" for 127.0.0.1 at 2018-06-02 12:24:56 -0300 +Processing by GamesController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"+XqPodpJsGdDYAVXExYiMxlvjLxozWICP0uCStzVHjZglethM9npKS542/WvFYFSt4wAKgp+loHUOIIWZWtkSg==", "game"=>{"name"=>"asdasdasdas", "description"=>"dasdasdasdasd", "is_released"=>"1", "developer_id"=>"4", "category_ids"=>["", "2"]}, "commit"=>"Update Game", "id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 2[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 2], ["game_id", 7]] + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35m (72.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/7 +Completed 302 Found in 80ms (ActiveRecord: 72.7ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:24:56 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:25:05 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.3ms) + + +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 12:25:09 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 7]] + Rendered games/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 16:40:22 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 21ms (Views: 19.9ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 16:40:25 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.2ms) + Rendered developers/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 16:40:26 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OQUtkgPFboAC8YyupGBKRQUqNJiptnPiLbsMo4ukGRFa0FnVOlh9th0S1aMd9WJ7QPqZ5cBDGdOmhtufTPpB2A==", "developer"=>{"name"=>"", "country"=>""}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", ""], ["country", ""], ["created_at", "2018-06-02 19:40:26.755058"], ["updated_at", "2018-06-02 19:40:26.755058"]] + [1m[35m (44.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/5 +Completed 302 Found in 49ms (ActiveRecord: 45.0ms) + + +Started GET "/developers/5" for 127.0.0.1 at 2018-06-02 16:40:26 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"5"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 20ms (Views: 18.5ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 16:40:28 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/5" for 127.0.0.1 at 2018-06-02 16:40:30 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"WmFeSOqC+4L74tSj2NtSSLwT8omS0woBWDv0/pTONLPuiHTqNW4ob2PZ71U1rpc32idvtfuK/ZOKA3UdGLT0Mg==", "id"=>"5"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 5]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 5]] + [1m[35m (133.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 140ms (ActiveRecord: 134.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 16:40:30 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 16:41:48 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 1.0ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 16:41:50 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (3.1ms) + Rendered developers/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 16:41:51 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"crOWNuEPZSKTRZ/pX+MEIAPBdGYR9c+G7a6pSetsjtcRZuJx2JJ2FIymxuTmdiweRhHZG3gApbdmk351LDLWHg==", "developer"=>{"name"=>"", "country"=>""}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.1ms) + Rendered developers/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 24ms (Views: 20.6ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 16:41:54 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:15:47 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.6ms) + Rendered developers/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 25ms (Views: 17.2ms | ActiveRecord: 0.8ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:15:49 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (10.1ms) +Completed 200 OK in 29ms (Views: 24.0ms | ActiveRecord: 0.8ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:15:51 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (15.4ms) + Rendered games/new.html.erb within layouts/application (16.8ms) +Completed 200 OK in 34ms (Views: 32.2ms | ActiveRecord: 0.7ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:15:56 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yWWcwhJHB2Pi33tkyld3cTn8CKHsit/oV8oZHb4FZk3LBri8kaipAkRkcv9I93a5CWCxpo2PqyL2mW2tLuky5w==", "game"=>{"name"=>"asdsadas", "description"=>"asdsadsa", "is_released"=>"1", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdsadas"], ["description", "asdsadsa"], ["is_released", "t"], ["developer_id", 4], ["created_at", "2018-06-02 20:15:56.379917"], ["updated_at", "2018-06-02 20:15:56.379917"]] + [1m[35m (80.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/9 +Completed 302 Found in 86ms (ActiveRecord: 81.4ms) + + +Started GET "/games/9" for 127.0.0.1 at 2018-06-02 17:15:56 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"9"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 9], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 9]] + Rendered games/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.7ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:15:57 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:23:44 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (15.8ms) +Completed 200 OK in 37ms (Views: 32.6ms | ActiveRecord: 1.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:23:46 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (18.4ms) + Rendered games/new.html.erb within layouts/application (19.9ms) +Completed 200 OK in 36ms (Views: 34.4ms | ActiveRecord: 0.9ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:23:55 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"x5uFGU1i7u4Gube0w4OzL9qkiXYdLLcknn/R0Xh6YBXF+KFnzo1Aj6ACvi9BI7Ln6jgwcXwpw+4/LKVh6JY0vw==", "game"=>{"name"=>"asdasdas", "description"=>"a", "is_released"=>"1", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "asdasdas"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "asdasdas"], ["description", "a"], ["is_released", "t"], ["developer_id", 4], ["created_at", "2018-06-02 20:23:55.508286"], ["updated_at", "2018-06-02 20:23:55.508286"]] + [1m[35m (79.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/10 +Completed 302 Found in 86ms (ActiveRecord: 80.5ms) + + +Started GET "/games/10" for 127.0.0.1 at 2018-06-02 17:23:55 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"10"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 10], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 10]] + Rendered games/show.html.erb within layouts/application (4.3ms) +Completed 200 OK in 25ms (Views: 23.0ms | ActiveRecord: 0.9ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:24:02 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 25ms (Views: 23.5ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:25:28 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (18.9ms) + Rendered games/new.html.erb within layouts/application (19.7ms) +Completed 200 OK in 52ms (Views: 40.5ms | ActiveRecord: 1.6ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:25:33 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"/3TIMTn7rHfoxX8sjHO1hVcHeRW05NMVj84is8x24WX9F+xPuhQCFk5+drcO07RNZ5vAEtXhp98unVYDXJq1zw==", "game"=>{"name"=>"asdasdas", "description"=>"a", "is_released"=>"1", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "asdasdas"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.3ms) + Rendered games/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 27ms (Views: 20.4ms | ActiveRecord: 0.8ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:11 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mO3y29Hws5Xe8SRZY731Zk+whdpxb84gGqdpxtR/XkMsBNh5DhxgeEbKH6+OyDAZKYQY5hg2ObLIn+glWAWewg==", "game"=>{"name"=>"asdasdas", "description"=>"a", "is_released"=>"1", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "asdasdas"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (6.1ms) + Rendered games/new.html.erb within layouts/application (7.3ms) +Completed 200 OK in 32ms (Views: 26.9ms | ActiveRecord: 0.9ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:26:12 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (4.9ms) +Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:26:13 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (5.3ms) + Rendered games/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:14 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"TPj052RN1i6jOS9CZ8Tff1Mg0dlf7OsvQGwJ9AzLpchOm9CZ56J4TwWCJtnlZN63Y7xo3j7pn+XhP31EnCfxYg==", "game"=>{"name"=>"asdasdas", "description"=>"", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "asdasdas"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.8ms) + Rendered games/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 28ms (Views: 21.7ms | ActiveRecord: 0.9ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:17 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LMgambiuvPoL9sBj4Vhjt2OJyLIjDHoS+Y8BwayG/YKYITA7Z0JvF5PN+5UMLabIBb1VjkpVjYArt4AiIPw9Aw==", "game"=>{"name"=>"asdasdas", "description"=>"asdsa", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "asdasdas"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (10.0ms) + Rendered games/new.html.erb within layouts/application (10.9ms) +Completed 200 OK in 30ms (Views: 25.7ms | ActiveRecord: 0.8ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:25 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7ouYZWA6R0YRoTVECxL37EEGr8H9UY30xJWmvUtr1ZhaYrLHv9aUq4maDrLmZzKTJzIy/ZQIemYWrSdexxEVGQ==", "game"=>{"name"=>"", "description"=>"asdsa", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", ""], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.7ms) + Rendered games/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 25ms (Views: 21.0ms | ActiveRecord: 0.8ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:29 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"aXU61TKs2DVHuVingxIs9tdfwWdLsO7A+DnK4CVESS/dnBB37UAL2N+CY1FuZ+mJsWtcWyLpGVIqAUsDqT6Jrg==", "game"=>{"name"=>"a", "description"=>"asdsa", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "a"], ["description", "asdsa"], ["is_released", "f"], ["developer_id", 4], ["created_at", "2018-06-02 20:26:29.958185"], ["updated_at", "2018-06-02 20:26:29.958185"]] + [1m[35m (109.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/11 +Completed 302 Found in 115ms (ActiveRecord: 110.1ms) + + +Started GET "/games/11" for 127.0.0.1 at 2018-06-02 17:26:30 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"11"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 11], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 11]] + Rendered games/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.7ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:26:31 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (5.5ms) +Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:26:32 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.3ms) + Rendered games/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:26:35 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"yk3I6Qa+KhkuAEQRNm7hNlShnkjapaZ/BLdEe8jE0w/ILuyXhVGEeIi7TYq0zuD+ZD0nT7ug0rWl5DDLWCiHpQ==", "game"=>{"name"=>"a", "description"=>"assadsa", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.2ms) + Rendered games/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 31ms (Views: 26.3ms | ActiveRecord: 0.9ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:30:32 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (7.2ms) +Completed 200 OK in 24ms (Views: 21.9ms | ActiveRecord: 0.4ms) + + +Started DELETE "/games/10" for 127.0.0.1 at 2018-06-02 17:30:36 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"authenticity_token"=>"l38Zs/luEGBxp1tttlRLHvmDkgYQLkuO6+KxKvrsEZQjljMRJoLDjemcYJtbIY5hn7cPOnl3vBw52jDJdpbRFQ==", "id"=>"10"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 10], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 10], ["LIMIT", 1]] + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 10]] + [1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 10]] + [1m[35m (64.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games +Completed 302 Found in 72ms (ActiveRecord: 65.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:30:36 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:30:37 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (5.2ms) + Rendered games/new.html.erb within layouts/application (8.1ms) +Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:30:39 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xsUJSsLWjHadJWoXwqJnXu+54TebYQC2RrvgqSpwPgnEpi00QTkiFzueY4xAAmaW3yVYMPpkdHzn6JQZupxqow==", "game"=>{"name"=>"a", "description"=>"", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.0ms) + Rendered games/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 33ms (Views: 29.3ms | ActiveRecord: 0.7ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 17:30:41 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"kxnFbJSoIGwOOyryV3/SYyuG1qc0S2jkb4MI77Mv+YYn8O/OS0TzgZYAEQS6ChccTbJLm10Sn3a9u4kMP1U5Bw==", "game"=>{"name"=>"a", "description"=>"a", "is_released"=>"0", "developer_id"=>"4", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.1ms) + Rendered games/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 30ms (Views: 25.1ms | ActiveRecord: 0.7ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:30:43 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.3ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (68.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (60.3ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (53.9ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.7ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (80.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (71.2ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (70.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:48:38.921753"], ["updated_at", "2018-06-02 20:48:38.921753"]] + [1m[35m (50.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (57.1ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (65.2ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (66.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (87.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (64.0ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (55.9ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (59.0ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (57.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (63.8ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (58.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (35.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (68.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (71.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:48:49.574750"], ["updated_at", "2018-06-02 20:48:49.574750"]] + [1m[35m (66.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (61.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (57.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (81.5ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (59.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (73.5ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (57.8ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (73.8ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (84.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (65.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (50.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (47.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (82.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:48:50.529137"], ["updated_at", "2018-06-02 20:48:50.529137"]] + [1m[35m (72.7ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 20:48:50.604218"], ["key", "environment"]] + [1m[35m (38.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:48:55 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 20ms (Views: 16.8ms | ActiveRecord: 0.6ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 17:49:34 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (7.6ms) + Rendered games/new.html.erb within layouts/application (8.3ms) +Completed 200 OK in 40ms (Views: 22.9ms | ActiveRecord: 1.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:49:36 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 19ms (Views: 18.1ms | ActiveRecord: 0.1ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:49:37 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 24ms (Views: 18.4ms | ActiveRecord: 0.4ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:49:40 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"VTyV1dmLzXPxUwS7Y+z5TY6Bn1jom7G1y9YjIYdQKlg26eGS4BbeRe6wXbbaedFzy1EyJYFu24RA6/QdQA5ykQ==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:49:40.841660"], ["updated_at", "2018-06-02 20:49:40.841660"]] + [1m[35m (105.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 111ms (ActiveRecord: 106.1ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 17:49:40 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:49:43 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:49:44 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.4ms) + Rendered developers/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 26ms (Views: 25.1ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:49:47 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dH/rgWKkRHG5H4BRdVZIQ3+r3HgEt3o7lf5piE/ACh8Xqp/GWzlXR6b82VzMw2B9OntxBW1CEAoew760iJ5S1g==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:49:47.018176"], ["updated_at", "2018-06-02 20:49:47.018176"]] + [1m[35m (97.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 101ms (ActiveRecord: 97.4ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 17:49:47 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 23ms (Views: 21.8ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:49:48 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 23ms (Views: 21.6ms | ActiveRecord: 0.2ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (68.1ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (57.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (78.4ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (62.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (59.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (84.0ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (64.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (43.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (48.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (108.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:51:09.035468"], ["updated_at", "2018-06-02 20:51:09.035468"]] + [1m[35m (65.0ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (58.8ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (73.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (59.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (75.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (55.6ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (109.1ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (81.5ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (64.8ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (68.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (64.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (63.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (47.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:51:10.021387"], ["updated_at", "2018-06-02 20:51:10.021387"]] + [1m[35m (47.9ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 20:51:10.072987"], ["key", "environment"]] + [1m[35m (60.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:51:12 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 17:51:14 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"znKoMyKoOHo3wMPDrI5OXeGD0XQovGBu0Y56AVzGw2x6m4KR/UTrl6/7+DVB+4sih7dMSEHll/wDtvvi0LwD7Q==", "id"=>"2"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.1ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: DELETE FROM "developers" WHERE "developers"."id" = ?): + +app/controllers/developers_controller.rb:57:in `destroy' +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 17:51:19 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"znKoMyKoOHo3wMPDrI5OXeGD0XQovGBu0Y56AVzGw2x6m4KR/UTrl6/7+DVB+4sih7dMSEHll/wDtvvi0LwD7Q==", "id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: DELETE FROM "developers" WHERE "developers"."id" = ?): + +app/controllers/developers_controller.rb:57:in `destroy' +Started GET "/" for 127.0.0.1 at 2018-06-02 17:51:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 26.5ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 17:51:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:51:22 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 21ms (Views: 19.9ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:51:23 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 17:51:25 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"6vS3JvQnPJwBFMkyBX46zEQ+KwTpCstxu03QFQyir+1eHZ2EK8vvcZkv8sToC/+zIgq2OIBTPONpdVH2gNhvbA==", "id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: DELETE FROM "developers" WHERE "developers"."id" = ?): + +app/controllers/developers_controller.rb:57:in `destroy' +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:51:34 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 23ms (Views: 21.7ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:51:38 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE3dnQ6JlFGWvDJ/pBnyu+N9qXAk2PzaFRmUk9I99QNnmKnaNxSHZ4lfa3IdjNqFpq0EDU0tluueJEOvFWOtyg==", "developer"=>{"name"=>"aaaa", "country"=>"aaaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaaa"], ["country", "aaaa"], ["created_at", "2018-06-02 20:51:38.061648"], ["updated_at", "2018-06-02 20:51:38.061648"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.8ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (65.2ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (88.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (64.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (66.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (88.9ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (73.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (74.9ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (73.9ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (57.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (75.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (37.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (44.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:51:51.811300"], ["updated_at", "2018-06-02 20:51:51.811300"]] + [1m[35m (34.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (73.7ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (66.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (82.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (86.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (63.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (90.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (65.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (73.5ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (58.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (40.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (40.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (75.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:51:52.769603"], ["updated_at", "2018-06-02 20:51:52.769603"]] + [1m[35m (35.9ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 20:51:52.808306"], ["key", "environment"]] + [1m[35m (65.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:51:58 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"BE3dnQ6JlFGWvDJ/pBnyu+N9qXAk2PzaFRmUk9I99QNnmKnaNxSHZ4lfa3IdjNqFpq0EDU0tluueJEOvFWOtyg==", "developer"=>{"name"=>"aaaa", "country"=>"aaaa"}, "commit"=>"Create Developer"} + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaaa"], ["country", "aaaa"], ["created_at", "2018-06-02 20:51:58.563472"], ["updated_at", "2018-06-02 20:51:58.563472"]] + [1m[35m (50.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 62ms (ActiveRecord: 51.7ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 17:51:58 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 21ms (Views: 18.7ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:00 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/1" for 127.0.0.1 at 2018-06-02 17:52:02 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"DsIAWGVPppz3h/P9lpNVZvYD039/q0UPJ/boSTF8/na6Kyr6uqN1cW+8yAt75pAZkDdOQxbysp31zmmqvQY+9w==", "id"=>"1"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 1]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 1]] + [1m[35m (126.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 141ms (ActiveRecord: 127.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:02 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:03 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:52:05 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.8ms) + Rendered developers/new.html.erb within layouts/application (4.2ms) +Completed 200 OK in 41ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:52:08 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"n/swR0BBWQT6GkL9P3G2lkJUzd/9HUoUeu5MZYThr2L8LkQAedxKMuX5G/CG5J6oB4RgopToICXx05tZQ7/3qw==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:52:08.251713"], ["updated_at", "2018-06-02 20:52:08.251713"]] + [1m[35m (105.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 110ms (ActiveRecord: 106.9ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 17:52:08 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 36ms (Views: 34.2ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:09 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 43ms (Views: 41.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:52:10 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.2ms) + Rendered developers/new.html.erb within layouts/application (8.6ms) +Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:52:13 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hwAvs9Uq+8JYdYbJLrpYd+GccPChsJ7ZdAPHeuigyEzk1Vv07Lfo9EeW38SXL3BJpEzdjchF9Oj/PhBGL/6QhQ==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:52:13.281457"], ["updated_at", "2018-06-02 20:52:13.281457"]] + [1m[35m (158.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/3 +Completed 302 Found in 162ms (ActiveRecord: 158.9ms) + + +Started GET "/developers/3" for 127.0.0.1 at 2018-06-02 17:52:13 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 19ms (Views: 17.9ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:14 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/3" for 127.0.0.1 at 2018-06-02 17:52:32 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"MZi46oyg4Sp4oXaBLKZn1glg3V7us1SvKpYOwglI0iCFcZJIU0wyx+CaTXfB06Kpb1RAYofqoz34ro8hhTISoQ==", "id"=>"3"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 3]] + [1m[35mSQL (0.6ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 3]] + [1m[35m (51.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 57ms (ActiveRecord: 52.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:32 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 17:52:33 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"fhoRkdfONW01tj4UWlZiCx48L7xgTDTLVWkV+YkoN8vK8zszCCLmgK2NBeK3I6d0eAiygAkVw1mHUZQaBVL3Sg==", "id"=>"2"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.5ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (113.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 117ms (ActiveRecord: 114.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:34 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 21ms (Views: 20.1ms | ActiveRecord: 0.1ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (68.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (64.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (61.9ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (59.0ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (71.4ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (61.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (64.2ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:52:48.758958"], ["updated_at", "2018-06-02 20:52:48.758958"]] + [1m[35m (53.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:50 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.5ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:52:52 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 17.8ms | ActiveRecord: 0.4ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:52:55 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"07a7Uxc0XgSciS+wW5KGidxyPmhv7s/wYjwvyRlL6LqwY88ULqlNMoNqdr3iB663maKTFQYbpcHpAfj13hWwcw==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:52:55.317090"], ["updated_at", "2018-06-02 20:52:55.317090"]] + [1m[35m (92.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 98ms (ActiveRecord: 93.2ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 17:52:55 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 19ms (Views: 16.7ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:52:56 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:52:58 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.3ms) + Rendered developers/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:53:00 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"MjVkG1NsgXvZR3Iuj7t86Fv9Tu6NURTFEetsYXRqVwxR4BBcavGSTcakKyM2LlTWHi3jk+SkfvSa1rtdszQPxQ==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 20:53:00.759555"], ["updated_at", "2018-06-02 20:53:00.759555"]] + [1m[35m (112.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 116ms (ActiveRecord: 112.7ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 17:53:00 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:53:02 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (71.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (73.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (66.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (54.1ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (63.2ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (63.4ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (62.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 20:55:37.172155"], ["updated_at", "2018-06-02 20:55:37.172155"]] + [1m[35m (51.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:55:40 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.7ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:55:42 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.4ms) + Rendered developers/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 31ms (Views: 25.1ms | ActiveRecord: 0.4ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:55:45 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SzvAaN7lTeAjlI1IwcwDoi/MiB77agU9PweO5mg5oBko7rQv53he1jx31EV4WSucahwlY5Kfbwy0Olnar2f40A==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:55:45.296823"], ["updated_at", "2018-06-02 20:55:45.296823"]] + [1m[35m (125.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 129ms (ActiveRecord: 126.0ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 17:55:45 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:55:46 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:55:47 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.9ms) + Rendered developers/new.html.erb within layouts/application (4.1ms) +Completed 200 OK in 25ms (Views: 24.1ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:55:49 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3m+wm23rBNy+2lbn7LcqAtTQYZt/nhtwPqPL9ZWR2FO9usTcVHYX6qE5D+pVIgI8kQDM5hZrcUG1nhzJUs+Amg==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:55:49.824377"], ["updated_at", "2018-06-02 20:55:49.824377"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:56:18 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3m+wm23rBNy+2lbn7LcqAtTQYZt/nhtwPqPL9ZWR2FO9usTcVHYX6qE5D+pVIgI8kQDM5hZrcUG1nhzJUs+Amg==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:56:18.096358"], ["updated_at", "2018-06-02 20:56:18.096358"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 10ms (ActiveRecord: 1.3ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:56:21 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3m+wm23rBNy+2lbn7LcqAtTQYZt/nhtwPqPL9ZWR2FO9usTcVHYX6qE5D+pVIgI8kQDM5hZrcUG1nhzJUs+Amg==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:56:21.020582"], ["updated_at", "2018-06-02 20:56:21.020582"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:56:22 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 21ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:56:28 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.5ms) + Rendered developers/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 24ms (Views: 16.0ms | ActiveRecord: 0.9ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:56:31 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EBXBT0AWwaKuIM/Y4blLghMn/PUqDBjY5utOg3ehlO1zwLUIeYvSlLHDltVYLGO8VvdRiEP5cult1pm/sP/MJA==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:56:31.204256"], ["updated_at", "2018-06-02 20:56:31.204256"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:56:52 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"EBXBT0AWwaKuIM/Y4blLghMn/PUqDBjY5utOg3ehlO1zwLUIeYvSlLHDltVYLGO8VvdRiEP5cult1pm/sP/MJA==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:56:52.466646"], ["updated_at", "2018-06-02 20:56:52.466646"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.2ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:56:54 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.8ms) + Rendered developers/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 27ms (Views: 25.9ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:56:58 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"b2zHJ9uGRz31P3rE0w26SrskLOwFwZ4bQf2ykeRILKTbhe2FBGqU0G0EQTI+eH813RCx0GyYaYmTxTNyaDLsJQ==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:56:58.206967"], ["updated_at", "2018-06-02 20:56:58.206967"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/games" for 127.0.0.1 at 2018-06-02 17:57:32 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 22ms (Views: 17.5ms | ActiveRecord: 0.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:57:33 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 27ms (Views: 22.5ms | ActiveRecord: 1.0ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:57:34 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 30ms (Views: 28.7ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:57:36 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"S6e7TEWX3+y2AKQJTIVAcMGk/GaMmd5A3VCWOvXc+ngocs8LfArM2qnj/QT1EGhOhHRRG+VstHFWbUEGMoKisQ==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 20:57:36.634431"], ["updated_at", "2018-06-02 20:57:36.634431"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:58:23 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/1" for 127.0.0.1 at 2018-06-02 17:58:25 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"FIE/T7um4fDsDZS4ux2qGhtsyq40020Sjs1GzCaM0OagaBXtZEoyHXQ2r05WaG9lfVhXkl2KmoBc9ccvqvYQZw==", "id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 1]] + [1m[35mSQL (0.8ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 1]] + [1m[35m (74.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 81ms (ActiveRecord: 76.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:58:25 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:58:26 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.5ms) + Rendered developers/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:58:30 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2it1YpYHLhJmuP/8xK+25bBC6cDSZnk/SlcB6eAq/MS5/gElr5o9JHlbpvF9Op7b9ZJEvbuTEw7BatbVJ3SkDQ==", "developer"=>{"name"=>"Ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Ba"], ["country", "ba"], ["created_at", "2018-06-02 20:58:30.354557"], ["updated_at", "2018-06-02 20:58:30.354557"]] + [1m[35m (113.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 117ms (ActiveRecord: 113.9ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 17:58:30 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 20ms (Views: 18.1ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 17:58:31 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 17:58:32 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.1ms) + Rendered developers/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 20ms (Views: 19.4ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 17:58:35 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hlQYnDM0Sok81OmpRTNMyTsI8A/LzKfA6xrhFzDuzOflgWzbCqlZvyM3sKT8pmT3fthdcqI5zfFgJzYr97CULg==", "developer"=>{"name"=>"Ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Ba"], ["country", "ba"], ["created_at", "2018-06-02 20:58:35.291443"], ["updated_at", "2018-06-02 20:58:35.291443"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/games/7" for 127.0.0.1 at 2018-06-02 18:02:40 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] +Completed 404 Not Found in 7ms (ActiveRecord: 1.0ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Game with 'id'=7): + +app/controllers/games_controller.rb:67:in `set_game' +Started GET "/games/7/edit" for 127.0.0.1 at 2018-06-02 18:02:43 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"7"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 7], ["LIMIT", 1]] +Completed 404 Not Found in 2ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find Game with 'id'=7): + +app/controllers/games_controller.rb:67:in `set_game' +Started GET "/games/" for 127.0.0.1 at 2018-06-02 18:02:45 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:02:46 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (6.9ms) +Completed 200 OK in 29ms (Views: 22.6ms | ActiveRecord: 0.7ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 18:02:49 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"+1TKi38uGMlQNrHrvp2WBo2RMA1rkAO7CH/CEaubjMZPveApoMLLJMgNih1T6FN566WtMQLJ9CnaR0PyJ+FMRw==", "id"=>"2"} + [1m[36mDeveloper Load (0.5ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (117.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 124ms (ActiveRecord: 118.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:02:49 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:02:49 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:02:52 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"tJ69Fp2Uk3/FuwLgQ6mUID9L90s7oRzTCIFGnxsUaynXS8lRpAmASdpYW+36PLweeptaNlJUduKDvJGj3Eoz4A==", "developer"=>{"name"=>"ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ba"], ["country", "ba"], ["created_at", "2018-06-02 21:02:52.321426"], ["updated_at", "2018-06-02 21:02:52.321426"]] + [1m[35m (185.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/3 +Completed 302 Found in 189ms (ActiveRecord: 186.0ms) + + +Started GET "/developers/3" for 127.0.0.1 at 2018-06-02 18:02:52 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:02:53 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 32ms (Views: 30.5ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:02:54 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.5ms) + Rendered developers/new.html.erb within layouts/application (3.9ms) +Completed 200 OK in 27ms (Views: 25.4ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:02:55 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"5B9hT777mxSd5OPFzTkhUUAekWTaIY0NNBhA/ICPDpeHyhUIh2aIIoIHush0rAlvBc48GbPU5zy/JZfAR9FWXg==", "developer"=>{"name"=>"ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ba"], ["country", "ba"], ["created_at", "2018-06-02 21:02:55.944166"], ["updated_at", "2018-06-02 21:02:55.944166"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:04:58 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (6.1ms) +Completed 200 OK in 23ms (Views: 20.1ms | ActiveRecord: 0.8ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:04:59 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.4ms) + Rendered developers/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:05:02 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"QN++NpxlmGeBe+CK1/UKomOz9vFfeDwtxlDIFaP7VMgjCspxpfiLUZ6YuYduYCKcJmNbjDaNVhxNbR8pZKUMAQ==", "developer"=>{"name"=>"ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ba"], ["country", "ba"], ["created_at", "2018-06-02 21:05:02.258573"], ["updated_at", "2018-06-02 21:05:02.258573"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:05:27 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (6.4ms) +Completed 200 OK in 24ms (Views: 21.0ms | ActiveRecord: 0.9ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:05:28 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.8ms) + Rendered developers/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:05:31 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ppqS/xfF1qGZoR0CfcTitMvmXoeiHPrITPRjBZqRCaDFT+a4LljFl4ZCRA/EUcqKjjbz+svpkPnHybQ5Xc9RaQ==", "developer"=>{"name"=>"ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ba"], ["country", "ba"], ["created_at", "2018-06-02 21:05:31.441920"], ["updated_at", "2018-06-02 21:05:31.441920"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (47.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (48.2ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (52.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (47.0ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (68.1ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (49.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (47.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (54.4ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (73.9ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (57.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (60.4ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (48.6ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (41.4ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (39.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (40.3ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (69.9ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (88.5ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (59.9ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (81.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (94.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (63.0ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (54.1ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (59.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (72.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (59.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (82.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (67.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (73.7ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (57.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (65.7ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (37.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (98.4ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (58.6ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (60.5ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "development"], ["updated_at", "2018-06-02 21:09:05.994367"], ["key", "environment"]] + [1m[35m (35.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:09:06.034254"], ["key", "environment"]] + [1m[35m (85.1ms)[0m [1m[36mcommit transaction[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:09:28 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hlQYnDM0Sok81OmpRTNMyTsI8A/LzKfA6xrhFzDuzOflgWzbCqlZvyM3sKT8pmT3fthdcqI5zfFgJzYr97CULg==", "developer"=>{"name"=>"Ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Ba"], ["country", "ba"], ["created_at", "2018-06-02 21:09:29.037217"], ["updated_at", "2018-06-02 21:09:29.037217"]] + [1m[35m (183.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 197ms (ActiveRecord: 184.4ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 18:09:29 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:09:31 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.4ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.4ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:09:32 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.4ms) + Rendered developers/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 24ms (Views: 23.2ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:09:34 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pYIOdyyCaT7Y0TWuvBNY0tz3+vUemSzZFyBcI/2u5SfGV3owFR96CMcybKMFhnDsmSdXiHdsRuicHYsfOvC97g==", "developer"=>{"name"=>"ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (103.7ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "ba"], ["country", "ba"], ["created_at", "2018-06-02 21:09:34.392719"], ["updated_at", "2018-06-02 21:09:34.392719"]] + [1m[35m (141.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 249ms (ActiveRecord: 245.5ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 18:09:34 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:09:36 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 29ms (Views: 28.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:09:37 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 28ms (Views: 27.4ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:09:40 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UbAbjlVVEm1KkToDyo9r6ZaRtVEHylrO3277+vDRtqEyZW/JbMgBW1VyYw5zGkPX00EYLG4/MP9UUyzGN4/uaA==", "developer"=>{"name"=>"Ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Ba"], ["country", "ba"], ["created_at", "2018-06-02 21:09:40.673954"], ["updated_at", "2018-06-02 21:09:40.673954"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.8ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (301.8ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (77.8ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (57.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (80.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (65.7ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (64.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (67.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (73.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (64.9ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (57.9ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (58.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (39.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (41.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (79.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:10:15.894624"], ["updated_at", "2018-06-02 21:10:15.894624"]] + [1m[35m (48.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (83.3ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (65.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (75.6ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (83.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (90.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (56.6ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (60.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (80.6ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (91.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (57.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (57.5ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (56.8ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (57.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (37.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (65.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (96.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:10:17.085830"], ["updated_at", "2018-06-02 21:10:17.085830"]] + [1m[35m (40.7ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:10:17.128902"], ["key", "environment"]] + [1m[35m (46.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:10:25 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UbAbjlVVEm1KkToDyo9r6ZaRtVEHylrO3277+vDRtqEyZW/JbMgBW1VyYw5zGkPX00EYLG4/MP9UUyzGN4/uaA==", "developer"=>{"name"=>"Ba", "country"=>"ba"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Ba"], ["country", "ba"], ["created_at", "2018-06-02 21:10:25.589411"], ["updated_at", "2018-06-02 21:10:25.589411"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.9ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:10:27 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 23ms (Views: 22.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:10:29 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 30ms (Views: 28.6ms | ActiveRecord: 0.1ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 18:10:31 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"00MF8t0Owgt9+8hv94cC5zA3SRA/gMqL+a4qQ2qhCpxnqi9QAuIR5uXA85ka8seYVgPULFbZPRkrlqug5tvKHQ==", "id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.0ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: DELETE FROM "developers" WHERE "developers"."id" = ?): + +app/controllers/developers_controller.rb:57:in `destroy' +Started GET "/developer" for 127.0.0.1 at 2018-06-02 18:10:35 -0300 + +ActionController::RoutingError (No route matches [GET] "/developer"): + +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:63:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:10:38 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 18ms (Views: 17.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:10:40 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 18:10:41 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:10:41 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.4ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 42ms (Views: 39.7ms | ActiveRecord: 0.4ms) + + +Started DELETE "/developers/2" for 127.0.0.1 at 2018-06-02 18:10:44 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"AzTfC0RyNgnqtKr4N6cDrkugp+Yo7WOI1YRA76Mq39a33fWpm57l5HKPkQ7a0sbRLZQ62kG0lBoHvMEML1AfVw==", "id"=>"2"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 2]] + [1m[35mSQL (0.4ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 2]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::StatementInvalid (SQLite3::ReadOnlyException: attempt to write a readonly database: DELETE FROM "developers" WHERE "developers"."id" = ?): + +app/controllers/developers_controller.rb:57:in `destroy' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (61.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (80.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (57.1ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (60.5ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (76.5ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (62.3ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (78.7ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:11:00.577205"], ["updated_at", "2018-06-02 21:11:00.577205"]] + [1m[35m (36.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:11:03 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 19ms (Views: 16.3ms | ActiveRecord: 0.6ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:11:04 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 26ms (Views: 18.7ms | ActiveRecord: 0.6ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:11:05 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"wWq6GlqBsqJ1BEbMRb4/Tta8nYygDfoZkP9hiOIoxNOiv85dYxyhlGrnH8H8Kxdwk2ww8cn4kCgbwra0JXacGg==", "developer"=>{"name"=>"a", "country"=>""}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.5ms) + Rendered developers/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 21ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:11:08 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"7OC509I6FX4JJcr72ujwwTl0WVjMPhmwzHLw61Wulg9YCZNxDdbGk5Ee8Q03nTW+X0DEZKVn7iIeSnEI2dRWjg==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:11:08.037748"], ["updated_at", "2018-06-02 21:11:08.037748"]] + [1m[35m (168.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 173ms (ActiveRecord: 168.5ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 18:11:08 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:11:09 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 28ms (Views: 26.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:11:10 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.6ms) + Rendered developers/new.html.erb within layouts/application (2.6ms) +Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:11:12 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2+7+R/vVg4PnepBI6ReSl3PQOmN3hEgLJ1OgRKS5ph64O4oAwkiQtfiZyUVQgrqpNgCXHh5xIjqsbnd4Y+f+1w==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:11:12.833259"], ["updated_at", "2018-06-02 21:11:12.833259"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:12:18 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"2+7+R/vVg4PnepBI6ReSl3PQOmN3hEgLJ1OgRKS5ph64O4oAwkiQtfiZyUVQgrqpNgCXHh5xIjqsbnd4Y+f+1w==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:12:18.056002"], ["updated_at", "2018-06-02 21:12:18.056002"]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.2ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/" for 127.0.0.1 at 2018-06-02 18:12:20 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 16ms (Views: 15.3ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:12:22 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 21ms (Views: 19.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:12:23 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.1ms) + Rendered developers/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:12:25 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iLo6nNwaeqcqQq2PxPS74Ng9EZm5qbKVLyaADBSyXUPrb07b5YdpkTWh9IJ9YZPene285NBc2KSkG1cw0+wFig==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:12:25.034025"], ["updated_at", "2018-06-02 21:12:25.034025"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/" for 127.0.0.1 at 2018-06-02 18:16:48 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 24ms (Views: 22.8ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:16:49 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (9.2ms) +Completed 200 OK in 34ms (Views: 30.5ms | ActiveRecord: 0.9ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:16:50 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.2ms) + Rendered developers/new.html.erb within layouts/application (3.3ms) +Completed 200 OK in 20ms (Views: 18.6ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:16:52 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"6HQ2oux1b7r8+SobIGhuAt4iNQfI9DHuHrzzfh8lya+LoULl1eh8jOMacxaZ/UY8m/KYeqEBW9+VgSRC2HuRZg==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:16:52.893204"], ["updated_at", "2018-06-02 21:16:52.893204"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers" for 127.0.0.1 at 2018-06-02 18:19:23 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (6.3ms) +Completed 200 OK in 24ms (Views: 21.1ms | ActiveRecord: 0.9ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:19:24 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.5ms) + Rendered developers/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 25ms (Views: 23.3ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:19:27 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"0DJBnI3Sp4LGTCYBVcoLNzfrHsoX760Z1dFKgln/Lfez5zXbtE+0tNmvfwzsXyMJcjuzt34axyhe7J2+nqF1Pg==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 21:19:27.029200"], ["updated_at", "2018-06-02 21:19:27.029200"]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::RecordNotUnique (SQLite3::ConstraintException: UNIQUE constraint failed: developers.name: INSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)): + +app/controllers/developers_controller.rb:30:in `block in create' +app/controllers/developers_controller.rb:29:in `create' +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 18:20:27 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 24ms (Views: 16.9ms | ActiveRecord: 0.7ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 18:20:29 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"cmECf9ZvaOmbSczKt8z+UZfp2jI4kDRU7Kx24zLz7JHGiCjdCYO7BANy9zxauTsu8d1HDlHJw8Y+lPcAvoksEA==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 22ms (Views: 19.1ms | ActiveRecord: 0.3ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (67.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (60.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (56.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (86.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (63.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (65.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (65.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.4ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (103.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.4ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (63.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.3ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (56.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (38.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (48.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (89.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:25:28.923815"], ["updated_at", "2018-06-02 21:25:28.923815"]] + [1m[35m (33.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:25:28.960695"], ["key", "environment"]] + [1m[35m (196.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (65.0ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (55.8ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (75.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (57.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (83.4ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (72.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (68.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (60.7ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (64.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (82.2ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.1ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (86.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (58.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (39.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (58.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:26:32.931843"], ["updated_at", "2018-06-02 21:26:32.931843"]] + [1m[35m (42.1ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:26:32.979284"], ["key", "environment"]] + [1m[35m (44.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (67.9ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (95.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (72.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (57.3ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (66.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (58.9ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (72.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (1.7ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (56.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (76.0ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (56.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (81.1ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (57.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (67.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (58.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (52.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (62.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:26:59.544295"], ["updated_at", "2018-06-02 21:26:59.544295"]] + [1m[35m (42.0ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:26:59.591617"], ["key", "environment"]] + [1m[35m (86.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (57.8ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (60.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (55.0ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (59.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (56.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (68.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (65.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (64.9ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.9ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (94.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (64.7ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (65.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (81.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (40.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (57.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (61.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:27:05.216642"], ["updated_at", "2018-06-02 21:27:05.216642"]] + [1m[35m (54.3ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:27:05.274691"], ["key", "environment"]] + [1m[35m (45.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (68.7ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (77.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (55.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (69.6ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (72.4ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (65.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (68.1ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (82.8ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (67.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (63.5ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (84.8ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (57.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (74.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (43.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (73.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 21:36:18.464703"], ["updated_at", "2018-06-02 21:36:18.464703"]] + [1m[35m (38.2ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 21:36:18.507093"], ["key", "environment"]] + [1m[35m (40.1ms)[0m [1m[36mcommit transaction[0m +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:09:09 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 35ms (Views: 30.8ms | ActiveRecord: 1.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:10:20 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.0ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m + [1m[35m (0.6ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.7ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:10:48.616764', '2018-06-02 22:10:48.616764', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:10:48.621192', '2018-06-02 22:10:48.621192', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:10:48.623288', '2018-06-02 22:10:48.623288', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:10:48.623288', '2018-06-02 22:10:48.623288', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:10:48.623288', '2018-06-02 22:10:48.623288', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:10:48.623288', '2018-06-02 22:10:48.623288', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:10:48.623288', '2018-06-02 22:10:48.623288', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:10:48.625144', '2018-06-02 22:10:48.625144', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:10:48.625144', '2018-06-02 22:10:48.625144', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:10:48.625144', '2018-06-02 22:10:48.625144', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:10:48.625144', '2018-06-02 22:10:48.625144', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:10:48.625144', '2018-06-02 22:10:48.625144', 346228358)[0m + [1m[35m (35.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m +Started GET "/" for 127.0.0.1 at 2018-06-02 19:11:10 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 15ms (Views: 14.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:11:11 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (12.3ms) +Completed 500 Internal Server Error in 19ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `name' for nil:NilClass): + 19: <td><%= game.name %></td> + 20: <td><%= game.description %></td> + 21: <td><%= game.is_released %></td> + 22: <td><%= game.developer.name %></td> + 23: <td><%= link_to 'Show', game %></td> + 24: <td><%= link_to 'Edit', edit_game_path(game) %></td> + 25: <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + +app/views/games/index.html.erb:22:in `block in _app_views_games_index_html_erb__4098127661014782825_69990251319220' +app/views/games/index.html.erb:17:in `_app_views_games_index_html_erb__4098127661014782825_69990251319220' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (62.2ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (69.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (54.5ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (84.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (65.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (64.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (56.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (60.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (56.4ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (65.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (85.5ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (83.1ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (65.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (37.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (51.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (68.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 22:19:47.329313"], ["updated_at", "2018-06-02 22:19:47.329313"]] + [1m[35m (53.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 22:19:47.385352"], ["key", "environment"]] + [1m[35m (46.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (91.0ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (83.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (66.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (83.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (65.0ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (65.9ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (67.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (74.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (66.5ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (82.6ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (83.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (45.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (73.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (63.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 22:40:15.767899"], ["updated_at", "2018-06-02 22:40:15.767899"]] + [1m[35m (89.5ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 22:40:15.860151"], ["key", "environment"]] + [1m[35m (46.0ms)[0m [1m[36mcommit transaction[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:42:07 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"iLo6nNwaeqcqQq2PxPS74Ng9EZm5qbKVLyaADBSyXUPrb07b5YdpkTWh9IJ9YZPene285NBc2KSkG1cw0+wFig==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 22:42:07.382883"], ["updated_at", "2018-06-02 22:42:07.382883"]] + [1m[35m (39.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1025681177 +Completed 302 Found in 50ms (ActiveRecord: 41.1ms) + + +Started GET "/developers/1025681177" for 127.0.0.1 at 2018-06-02 19:42:07 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1025681177"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681177], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:42:09 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 20ms (Views: 18.8ms | ActiveRecord: 0.2ms) + + +Started DELETE "/developers/215549783" for 127.0.0.1 at 2018-06-02 19:42:13 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"+RIV6Mzf4Ft7TRrk6a05bs0oGCVe3ZC2+BVwWxQEajtN+z9KEzMztuN2IRIE2PwRqxyFGTeEZyQqLfG4mH6qug==", "id"=>"215549783"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 215549783]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 215549783]] + [1m[35m (57.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 63ms (ActiveRecord: 58.2ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:42:13 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.3ms) + + +Started DELETE "/developers/177417774" for 127.0.0.1 at 2018-06-02 19:42:22 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"authenticity_token"=>"dhJ1DlLwe5o1gtOX+qUrW3kWYPqcrXWtOFeZ5PcJeTfC+1+sjRyod6256GEX0O4kHyL9xvX0gj/qbxgHe3O5tg==", "id"=>"177417774"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 177417774]] + [1m[35mSQL (0.7ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 177417774]] + [1m[35m (61.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers +Completed 302 Found in 66ms (ActiveRecord: 62.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:42:22 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 21ms (Views: 20.3ms | ActiveRecord: 0.2ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:42:24 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (3.4ms) + Rendered developers/new.html.erb within layouts/application (5.2ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:42:26 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"uzVrD7RGhHAwLxJFZTm53uEsD7PqjCDNbZudMAkrBm7Y4B9IjduXRi/MS0jcrJHgpPyizoN5SvzmpkoMznVepw==", "developer"=>{"name"=>"aa", "country"=>""}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.4ms) + Rendered developers/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 27ms (Views: 23.9ms | ActiveRecord: 0.3ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:42:29 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"sYVTTjKCK3YEO9pLDDcbHRLQvWYNh1llraUZ/wLbb8wFbHns7W74m5wA4b3hQt5idOQgWmTervd/nZgcjqGvTQ==", "developer"=>{"name"=>"aa", "country"=>"aa"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aa"], ["country", "aa"], ["created_at", "2018-06-02 22:42:29.076259"], ["updated_at", "2018-06-02 22:42:29.076259"]] + [1m[35m (157.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1025681178 +Completed 302 Found in 162ms (ActiveRecord: 157.8ms) + + +Started GET "/developers/1025681178" for 127.0.0.1 at 2018-06-02 19:42:29 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1025681178"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681178], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 18ms (Views: 16.4ms | ActiveRecord: 0.1ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:42:30 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 27ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:42:34 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.5ms) + Rendered developers/new.html.erb within layouts/application (2.5ms) +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:42:37 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"eF5ujkr51L0Jsrt9ds097y7WugFAw4eQo3T8ijj6RMgbixrJc2THixZR4nDPWBXRawYXfCk27aEoSSu2/6QcAQ==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 21ms (Views: 18.1ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:42:39 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:42:42 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 24ms (Views: 22.7ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:42:43 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (12.7ms) +Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `name' for nil:NilClass): + 19: <td><%= game.name %></td> + 20: <td><%= game.description %></td> + 21: <td><%= game.is_released %></td> + 22: <td><%= game.developer.name %></td> + 23: <td><%= link_to 'Show', game %></td> + 24: <td><%= link_to 'Edit', edit_game_path(game) %></td> + 25: <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + +app/views/games/index.html.erb:22:in `block in _app_views_games_index_html_erb__4098127661014782825_29019300' +app/views/games/index.html.erb:17:in `_app_views_games_index_html_erb__4098127661014782825_29019300' +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:42:43 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 25ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined method `name' for nil:NilClass): + 19: <td><%= game.name %></td> + 20: <td><%= game.description %></td> + 21: <td><%= game.is_released %></td> + 22: <td><%= game.developer.name %></td> + 23: <td><%= link_to 'Show', game %></td> + 24: <td><%= link_to 'Edit', edit_game_path(game) %></td> + 25: <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + +app/views/games/index.html.erb:22:in `block in _app_views_games_index_html_erb__4098127661014782825_69990335330940' +app/views/games/index.html.erb:17:in `_app_views_games_index_html_erb__4098127661014782825_69990335330940' + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (72.6ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (80.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (55.2ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (74.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (1.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (70.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (72.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (73.7ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (55.7ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (59.8ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (56.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (57.9ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (56.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (57.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (39.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (41.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (75.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 22:42:51.793567"], ["updated_at", "2018-06-02 22:42:51.793567"]] + [1m[35m (38.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (64.1ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (57.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (93.6ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (57.6ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (82.6ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (57.5ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (83.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (93.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (73.9ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (56.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (59.9ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (89.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (76.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (36.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (62.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (73.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 22:42:52.972858"], ["updated_at", "2018-06-02 22:42:52.972858"]] + [1m[35m (76.6ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = ?, "updated_at" = ? WHERE "ar_internal_metadata"."key" = ?[0m [["value", "test"], ["updated_at", "2018-06-02 22:42:53.053115"], ["key", "environment"]] + [1m[35m (42.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:42:54 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.9ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `name' for nil:NilClass): + 19: <td><%= game.name %></td> + 20: <td><%= game.description %></td> + 21: <td><%= game.is_released %></td> + 22: <td><%= game.developer.name %></td> + 23: <td><%= link_to 'Show', game %></td> + 24: <td><%= link_to 'Edit', edit_game_path(game) %></td> + 25: <td><%= link_to 'Destroy', game, method: :delete, data: { confirm: 'Are you sure?' } %></td> + +app/views/games/index.html.erb:22:in `block in _app_views_games_index_html_erb__4098127661014782825_69990284979080' +app/views/games/index.html.erb:17:in `_app_views_games_index_html_erb__4098127661014782825_69990284979080' + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (66.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (56.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (55.7ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (76.6ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (69.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (62.3ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (85.8ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 22:43:12.286557"], ["updated_at", "2018-06-02 22:43:12.286557"]] + [1m[35m (48.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:43:14 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 22ms (Views: 18.0ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:43:17 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 23ms (Views: 19.5ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:43:18 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:43:19 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (9.6ms) + Rendered games/new.html.erb within layouts/application (10.9ms) +Completed 200 OK in 36ms (Views: 27.1ms | ActiveRecord: 1.3ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:43:29 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"LUjTZ/xEryE7cAUjS2KhQ4zIsmlDVPgilYvtKfUKcWEvK/cZf6sBQJ3LDLjJwqCLvFQLbiJRjOg02JmZZeYlyw==", "game"=>{"name"=>"aaa", "description"=>"aaaaaa", "is_released"=>"0", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aaa"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.5ms) + Rendered games/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 28ms (Views: 19.8ms | ActiveRecord: 0.8ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:43:36 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 21ms (Views: 20.6ms | ActiveRecord: 0.0ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:45:01 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 19ms (Views: 18.0ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:45:02 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.8ms) + Rendered categories/new.html.erb within layouts/application (2.8ms) +Completed 200 OK in 34ms (Views: 27.4ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:45:04 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"vfMlJvv8zCAqLTK6gVoCw5QtvXqegpWTGozASGb8vOg60Y+rWWcpfadR9ZaIjMq7jCCV1p0Negcp1+NJLZEnfg==", "category"=>{"name"=>"a", "description"=>"a"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["description", "a"], ["created_at", "2018-06-02 22:45:04.758159"], ["updated_at", "2018-06-02 22:45:04.758159"]] + [1m[35m (347.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/1 +Completed 302 Found in 353ms (ActiveRecord: 348.6ms) + + +Started GET "/categories/1" for 127.0.0.1 at 2018-06-02 19:45:05 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 19ms (Views: 17.7ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:45:06 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:45:07 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (8.2ms) + Rendered games/new.html.erb within layouts/application (9.7ms) +Completed 200 OK in 27ms (Views: 25.7ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:45:09 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 22ms (Views: 21.2ms | ActiveRecord: 0.1ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:45:10 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.2ms) +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:45:10 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.4ms) + Rendered developers/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 42ms (Views: 35.5ms | ActiveRecord: 0.4ms) + + +Completed 200 OK in 32ms (Views: 31.1ms | ActiveRecord: 0.0ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:45:13 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"70JFblby5TvNv8xjR9P1ttkMbQe19TRL7Dl4mMLJAXSMlzEpb2/2DdJclW7+Rt2InNzAetwAXnpnBK+kBZdZvQ==", "developer"=>{"name"=>"a", "country"=>"a"}, "commit"=>"Create Developer"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["country", "a"], ["created_at", "2018-06-02 22:45:13.204270"], ["updated_at", "2018-06-02 22:45:13.204270"]] + [1m[35m (331.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 336ms (ActiveRecord: 332.0ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 19:45:13 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 20ms (Views: 18.3ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:45:14 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 26ms (Views: 24.2ms | ActiveRecord: 0.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:45:15 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (6.1ms) + Rendered games/new.html.erb within layouts/application (7.4ms) +Completed 200 OK in 26ms (Views: 24.4ms | ActiveRecord: 0.4ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:45:24 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"eOV/nv/eHRhtXeY1tOCxninbJ+fSszjnlmDnteSeOSF6hlvgfDGzecvm7642QLBWGUee4LO2TC03M5MFdHJtiw==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "a"], ["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.6ms) + Rendered games/new.html.erb within layouts/application (4.9ms) +Completed 200 OK in 32ms (Views: 19.5ms | ActiveRecord: 1.4ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:45:50 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"1aRClJRrZ8Ys0C2sgaA6/hDYB05IB2qgtbyO2bhFgL1hTWg2S4e0K7TrFlps1f+BduyaciFenTJnhA86ND9APA==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "a"], ["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.9ms) + Rendered games/new.html.erb within layouts/application (4.8ms) +Completed 200 OK in 32ms (Views: 26.3ms | ActiveRecord: 0.7ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:45:51 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"d+KO1zoVWnPXPCwfAbz37WNdgM9l6cOBzapPYwrW4rDDC6R15fmJnk8HF+nsyTKSBWkd8wywNBMfks6AhqwiMQ==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "a"], ["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (11.3ms) + Rendered games/new.html.erb within layouts/application (12.5ms) +Completed 200 OK in 38ms (Views: 29.2ms | ActiveRecord: 0.9ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:45:51 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"3ZoXXCpOfdHlM6TSSLP7/4Nx4XJB4lN1ojdpzpXJhvJpcz3+9aKuPH0InySlxj6A5UV8Tii7pOdwD+gtGbNGcw==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "a"], ["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.1ms) + Rendered games/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 30ms (Views: 21.3ms | ActiveRecord: 1.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:45:53 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:46:14 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 20ms (Views: 16.9ms | ActiveRecord: 0.5ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:46:15 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (24.2ms) + Rendered games/new.html.erb within layouts/application (25.5ms) +Completed 200 OK in 51ms (Views: 40.9ms | ActiveRecord: 1.5ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:46:22 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"hSxMr9PUfmkksXNT4IRelBBiZIgEKZpU8T1wdAkgCLiHT2jRUDvQCIIKeshiJF9cIP7dj2Us7p5QbgTEmcxcEg==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Create Game"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "a"], ["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aa"], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "aa"], ["description", "aa"], ["is_released", "t"], ["developer_id", 1], ["created_at", "2018-06-02 22:46:22.095307"], ["updated_at", "2018-06-02 22:46:22.095307"]] + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 1], ["game_id", 1]] + [1m[35m (82.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/1 +Completed 302 Found in 97ms (ActiveRecord: 84.0ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:46:22 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (4.0ms) +Completed 200 OK in 21ms (Views: 19.4ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1/edit" for 127.0.0.1 at 2018-06-02 19:46:24 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/_form.html.erb (6.1ms) + Rendered games/edit.html.erb within layouts/application (7.3ms) +Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.6ms) + + +Started PATCH "/games/1" for 127.0.0.1 at 2018-06-02 19:46:30 -0300 +Processing by GamesController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"fw/jYZHNCeU7f0Jj7PpG7gjOa3fXVmD5fVvOVLvWbq/L3cA5Qv8EeAJBBQNdinWOgq8BpsAOyD7GfNhREKsaIg==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1"]}, "commit"=>"Update Game", "id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = 1[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "aa"], ["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/1 +Completed 302 Found in 7ms (ActiveRecord: 0.8ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:46:30 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (4.1ms) +Completed 200 OK in 24ms (Views: 21.2ms | ActiveRecord: 0.8ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:46:32 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.3ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:46:34 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (4.5ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.5ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:46:49 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:46:49 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (4.6ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:13 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 20ms (Views: 17.8ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:29 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:31 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.3ms) +Completed 200 OK in 26ms (Views: 24.9ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:37 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (4.5ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.6ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:44 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 21ms (Views: 19.0ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:50:49 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (5.0ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.7ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:01 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.5ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:06 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.8ms) +Completed 200 OK in 23ms (Views: 21.5ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:11 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ? ORDER BY "categories"."id" ASC LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.0ms) +Completed 200 OK in 20ms (Views: 18.2ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:15 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ? ORDER BY "categories"."id" ASC LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 22ms (Views: 20.0ms | ActiveRecord: 0.5ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:31 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:27: syntax error, unexpected keyword_end +...eze;@output_buffer.append=( end );@output_buffer.safe_append... +... ^~~ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' + ensure + ^~~~~~ +/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' + end + ^~~): + +app/views/games/show.html.erb:27: syntax error, unexpected keyword_end +app/views/games/show.html.erb:34: syntax error, unexpected keyword_ensure, expecting ')' +app/views/games/show.html.erb:36: syntax error, unexpected keyword_end, expecting ')' +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:51:48 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.7ms) +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.2ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:25: syntax error, unexpected keyword_do_block +... @game.categories.all.each { do |c| c.name });@output_buffer... +... ^~): + +app/views/games/show.html.erb:25: syntax error, unexpected keyword_do_block +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:52:15 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 20ms (Views: 17.7ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:52:27 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 19ms (Views: 17.2ms | ActiveRecord: 0.3ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:52:34 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (0.6ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + + + +SyntaxError (/home/wellington/Documents/CI320/T5/app/views/games/show.html.erb:25: syntax error, unexpected '.' +...@game.categories.all.each {|c|.name });@output_buffer.safe_... +... ^): + +app/views/games/show.html.erb:25: syntax error, unexpected '.' +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:52:37 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.6ms) +Completed 200 OK in 20ms (Views: 18.4ms | ActiveRecord: 0.3ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:52:53 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.6ms) +Completed 200 OK in 22ms (Views: 20.1ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:53:27 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 19ms (Views: 17.4ms | ActiveRecord: 0.2ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:53:48 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (3.1ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:53:51 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:53:53 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (3.1ms) + Rendered categories/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 23ms (Views: 21.4ms | ActiveRecord: 0.0ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:53:55 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"GJGOt4uLYxr6KJYTtamcpTzgsY7vIvdpt/+8xvWbW6afsyQ6KRCGR3dUUT+8f1TdJO2ZIuytGP2EpJ/HvvbAMA==", "category"=>{"name"=>"Batatinhaa", "description"=>"b"}, "commit"=>"Create Category"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Batatinhaa"], ["LIMIT", 1]] + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "Batatinhaa"], ["description", "b"], ["created_at", "2018-06-02 22:53:55.887947"], ["updated_at", "2018-06-02 22:53:55.887947"]] + [1m[35m (98.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/2 +Completed 302 Found in 104ms (ActiveRecord: 99.5ms) + + +Started GET "/categories/2" for 127.0.0.1 at 2018-06-02 19:53:55 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 23ms (Views: 20.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:53:57 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 27ms (Views: 25.5ms | ActiveRecord: 0.3ms) + + +Started GET "/games/1/edit" for 127.0.0.1 at 2018-06-02 19:53:58 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/_form.html.erb (6.2ms) + Rendered games/edit.html.erb within layouts/application (7.5ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.5ms) + + +Started PATCH "/games/1" for 127.0.0.1 at 2018-06-02 19:54:00 -0300 +Processing by GamesController#update as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"11BekOkO5amJiBrRq7SCAXvpRHpSMJ2dHDna3+P0Wxljgn3IOjzoNLC2XbEaxLFh8Yguq0VoNVqnHszaSIkvlA==", "game"=>{"name"=>"aa", "description"=>"aa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>["", "1", "2"]}, "commit"=>"Update Game", "id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" IN (1, 2)[0m + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "category_games" ("category_id", "game_id") VALUES (?, ?)[0m [["category_id", 2], ["game_id", 1]] + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "aa"], ["id", 1], ["LIMIT", 1]] + [1m[35m (49.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/1 +Completed 302 Found in 67ms (ActiveRecord: 50.6ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 19:54:00 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 18ms (Views: 17.0ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:54:14 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 22ms (Views: 21.5ms | ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:54:28 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:54:29 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 22ms (Views: 20.4ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:54:30 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:54:31 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 21ms (Views: 19.6ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:54:32 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 22ms (Views: 20.9ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:54:33 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 24ms (Views: 20.2ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:54:34 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 25ms (Views: 22.6ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:54:36 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 24ms (Views: 22.5ms | ActiveRecord: 0.2ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:54:37 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.6ms) + Rendered prices/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 35ms (Views: 26.5ms | ActiveRecord: 0.6ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:54:42 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"PN2Xi5DSoLKYstBubGAjmS429Zh0avAQ3XvHGZFLY0TkTuoojjiaDMINdzSGq4HzOUbzsgbuK5i1M4ZuIxovmA==", "price"=>{"game_id"=>"1", "price_us"=>"1", "price_br"=>"1", "price_ru"=>"1"}, "commit"=>"Create Price"} + [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 1], ["price_br", 1], ["price_ru", 1], ["game_id", 1], ["created_at", "2018-06-02 22:54:42.133549"], ["updated_at", "2018-06-02 22:54:42.133549"]] + [1m[35m (271.3ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/1 +Completed 302 Found in 280ms (ActiveRecord: 271.9ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 19:54:42 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 18ms (Views: 16.6ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:54:43 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:54:44 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.7ms) + Rendered prices/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 28ms (Views: 26.4ms | ActiveRecord: 0.2ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:54:46 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"IyzLpcsI2oaibMuks1ZCb27RlkrcqgpUurTh5XSaqKf7v7YG1eLgOPjTbP5ZneAFeaGQYK4u0dzS/KCSxsvkew==", "price"=>{"game_id"=>"1", "price_us"=>"1", "price_br"=>"1", "price_ru"=>"1"}, "commit"=>"Create Price"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mPrice Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.6ms) + Rendered prices/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 26ms (Views: 20.6ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:54:48 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 22ms (Views: 20.8ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 19:55:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.9ms) +Completed 200 OK in 30ms (Views: 28.9ms | ActiveRecord: 0.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:04:19 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.4ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateUsers (20180602230646) + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (0.6ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602230646"]] + [1m[35m (55.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:16:56 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + +ActionController::RoutingError (undefined method `before_filter' for PricesController:Class +Did you mean? before_action): + +app/controllers/prices_controller.rb:3:in `<class:PricesController>' +app/controllers/prices_controller.rb:1:in `<top (required)>' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:17:51 -0300 +Processing by PricesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:17:51 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 45ms (Views: 44.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:17:55 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 23ms (Views: 21.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:17:56 -0300 +Processing by GamesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:17:56 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 25ms (Views: 24.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:17:57 -0300 +Processing by DevelopersController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:17:57 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 26.6ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 20:17:58 -0300 +Processing by CategoriesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:17:58 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 21ms (Views: 20.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:17:58 -0300 +Processing by PricesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:17:58 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 25ms (Views: 23.6ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:18:00 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 33ms (Views: 31.6ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:18:01 -0300 + +ActionController::RoutingError (uninitialized constant UsersController): + +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:29:in `serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call' +rack (2.0.4) lib/rack/etag.rb:25:in `call' +rack (2.0.4) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.4) lib/rack/head.rb:12:in `call' +rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.5) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:19:06 -0300 + +ActionController::RoutingError (uninitialized constant UsersController): + +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `constantize' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:78:in `controller_class' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:43:in `controller' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:29:in `serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:50:in `block in serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call' +rack (2.0.4) lib/rack/etag.rb:25:in `call' +rack (2.0.4) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.4) lib/rack/head.rb:12:in `call' +rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.5) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:19:38 -0300 + +LoadError (Unable to autoload constant UserController, expected /home/wellington/Documents/CI320/T5/app/controllers/user_controller.rb to define it): + +activesupport (5.1.5) lib/active_support/dependencies.rb:512:in `load_missing_constant' +activesupport (5.1.5) lib/active_support/dependencies.rb:202:in `const_missing' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `const_get' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:269:in `block in constantize' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `each' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `inject' +activesupport (5.1.5) lib/active_support/inflector/methods.rb:267:in `constantize' +activesupport (5.1.5) lib/active_support/dependencies.rb:583:in `get' +activesupport (5.1.5) lib/active_support/dependencies.rb:614:in `constantize' +actionpack (5.1.5) lib/action_dispatch/http/request.rb:85:in `controller_class_for' +actionpack (5.1.5) lib/action_dispatch/http/parameters.rb:99:in `binary_params_for?' +actionpack (5.1.5) lib/action_dispatch/http/parameters.rb:90:in `set_binary_encoding' +actionpack (5.1.5) lib/action_dispatch/http/parameters.rb:67:in `path_parameters=' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:48:in `block in serve' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `each' +actionpack (5.1.5) lib/action_dispatch/journey/router.rb:33:in `serve' +actionpack (5.1.5) lib/action_dispatch/routing/route_set.rb:844:in `call' +rack (2.0.4) lib/rack/etag.rb:25:in `call' +rack (2.0.4) lib/rack/conditional_get.rb:25:in `call' +rack (2.0.4) lib/rack/head.rb:12:in `call' +rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context' +rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/cookies.rb:613:in `call' +activerecord (5.1.5) lib/active_record/migration.rb:556:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call' +activesupport (5.1.5) lib/active_support/callbacks.rb:97:in `run_callbacks' +actionpack (5.1.5) lib/action_dispatch/middleware/callbacks.rb:24:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call' +web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app' +web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch' +web-console (3.5.1) lib/web_console/middleware.rb:18:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' +railties (5.1.5) lib/rails/rack/logger.rb:36:in `call_app' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `block in call' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `block in tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:26:in `tagged' +activesupport (5.1.5) lib/active_support/tagged_logging.rb:69:in `tagged' +railties (5.1.5) lib/rails/rack/logger.rb:24:in `call' +sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/remote_ip.rb:79:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/request_id.rb:25:in `call' +rack (2.0.4) lib/rack/method_override.rb:22:in `call' +rack (2.0.4) lib/rack/runtime.rb:22:in `call' +activesupport (5.1.5) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/executor.rb:12:in `call' +actionpack (5.1.5) lib/action_dispatch/middleware/static.rb:125:in `call' +rack (2.0.4) lib/rack/sendfile.rb:111:in `call' +railties (5.1.5) lib/rails/engine.rb:522:in `call' +puma (3.11.3) lib/puma/configuration.rb:225:in `call' +puma (3.11.3) lib/puma/server.rb:624:in `handle_request' +puma (3.11.3) lib/puma/server.rb:438:in `process_client' +puma (3.11.3) lib/puma/server.rb:302:in `block in run' +puma (3.11.3) lib/puma/thread_pool.rb:120:in `block in spawn_thread' +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:19:53 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (24.7ms) +Completed 200 OK in 46ms (Views: 45.3ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:20:18 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 22ms (Views: 21.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:20:20 -0300 +Processing by GamesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:20 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 23ms (Views: 21.8ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:20:20 -0300 +Processing by DevelopersController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:20 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 27ms (Views: 25.8ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:20:21 -0300 +Processing by DevelopersController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:21 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.5ms) +Completed 200 OK in 29ms (Views: 28.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 20:20:21 -0300 +Processing by CategoriesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 1ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:21 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 30ms (Views: 28.8ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:20:22 -0300 +Processing by PricesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 2ms + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:22 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 21ms (Views: 20.5ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:20:24 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 22ms (Views: 20.9ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:20:24 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (2.7ms) +Completed 200 OK in 28ms (Views: 26.7ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:31:06 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (168.7ms) +Completed 500 Internal Server Error in 171ms + + + +ActionView::Template::Error (undefined local variable or method `form' for #<#<Class:0x00007f4fc0b079c8>:0x00007f4fc4e56710> +Did you mean? fork): + 2: + 3: <%= form_for :user, url: '/users' do |f| %> + 4: <div class="field"> + 5: <%= form.label :username %> + 6: <%= f.text_field :name %> + 7: </div> + 8: <div class="field"> + +app/views/user/new.html.erb:5:in `block in _app_views_user_new_html_erb__730383279890859005_69990291257400' +app/views/user/new.html.erb:3:in `_app_views_user_new_html_erb__730383279890859005_69990291257400' +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:31:25 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 22ms (Views: 20.7ms) + + +Started POST "/users" for 127.0.0.1 at 2018-06-02 20:31:43 -0300 +Processing by UserController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zgbieZ+BRhPN4LrO43g7mJu3cTCOELoLS74GtWGl1wB678jbQG2V/lXbgTgODf7n/YPsDOdJTZmZhodW7d8XgQ==", "user"=>{"name"=>"panda", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Submit"} +Completed 500 Internal Server Error in 3ms + + + +LoadError (cannot load such file -- bcrypt): + +app/models/user.rb:2:in `<class:User>' +app/models/user.rb:1:in `<top (required)>' +app/controllers/user_controller.rb:7:in `create' +Started POST "/users" for 127.0.0.1 at 2018-06-02 20:33:44 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by UserController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"zgbieZ+BRhPN4LrO43g7mJu3cTCOELoLS74GtWGl1wB678jbQG2V/lXbgTgODf7n/YPsDOdJTZmZhodW7d8XgQ==", "user"=>{"name"=>"panda", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Submit"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "panda"], ["email", "wellingtongabrielvs@gmail.com"], ["password_digest", "$2a$10$ajzguBrTHmKMbZG9KuJwaOT3bou2YiA2Kh/Fy5gvY/1fDf/ReWoYa"], ["created_at", "2018-06-02 23:33:44.365707"], ["updated_at", "2018-06-02 23:33:44.365707"]] + [1m[35m (47.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/ +Completed 302 Found in 118ms (ActiveRecord: 48.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:33:44 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (195.8ms) + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 223ms (Views: 221.8ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:33:51 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (19.4ms) +Completed 200 OK in 50ms (Views: 37.3ms | ActiveRecord: 1.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:34:21 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 0.5ms) + + +Started GET "/logout" for 127.0.0.1 at 2018-06-02 20:34:23 -0300 +Processing by SessionsController#destroy as HTML +Redirected to http://localhost:3081/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:34:23 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 40ms (Views: 38.6ms | ActiveRecord: 0.0ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:34:26 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (12.3ms) +Completed 200 OK in 35ms (Views: 33.1ms | ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:34:27 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 24ms (Views: 22.9ms | ActiveRecord: 0.0ms) + + +Started POST "/login" for 127.0.0.1 at 2018-06-02 20:34:31 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"oT6HnZMCQ8EIzcdeL5NQwxNFOhdozyFn4snxoEpfVcAOm1rfOM57NnOtskdRL/7QsykOs2pn8PsB0RIbAkPKgw==", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "commit"=>"Submit"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "wellingtongabrielvs@gmail.com"], ["LIMIT", 1]] +Redirected to http://localhost:3081/ +Completed 302 Found in 57ms (ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:34:31 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 20ms (Views: 18.9ms | ActiveRecord: 0.1ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:34:36 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.5ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 23ms (Views: 22.1ms | ActiveRecord: 0.1ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:40:36 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.6ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 19ms (Views: 18.5ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:40:39 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (2.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 30ms (Views: 28.0ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:40:50 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 35ms (Views: 34.1ms | ActiveRecord: 1.1ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:40:54 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.2ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 21ms (Views: 19.8ms | ActiveRecord: 0.1ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:40:59 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 27ms (Views: 26.4ms | ActiveRecord: 0.9ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:41:37 -0300 +Processing by UserController#new as HTML +Redirected to http://localhost:3081/ +Completed 302 Found in 0ms + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:41:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 35ms (Views: 34.5ms | ActiveRecord: 1.1ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:41:40 -0300 +Processing by UserController#new as HTML +Redirected to http://localhost:3081/ +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:41:40 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 19ms (Views: 18.4ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:42:18 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 29ms (Views: 27.8ms | ActiveRecord: 0.8ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:42:21 -0300 +Processing by SessionsController#new as HTML +Redirected to http://localhost:3081/ +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:42:21 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.1ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:42:23 -0300 +Processing by UserController#new as HTML +Redirected to http://localhost:3081/ +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:42:23 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 21ms (Views: 20.6ms | ActiveRecord: 0.1ms) + + +Started GET "/logout" for 127.0.0.1 at 2018-06-02 20:42:25 -0300 +Processing by SessionsController#destroy as HTML +Redirected to http://localhost:3081/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:42:25 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 21ms (Views: 20.0ms | ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:42:26 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 24ms (Views: 22.3ms | ActiveRecord: 0.0ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:42:26 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 22ms (Views: 21.5ms | ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 20:42:27 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 29ms (Views: 28.2ms | ActiveRecord: 0.0ms) + + +Started POST "/login" for 127.0.0.1 at 2018-06-02 20:42:31 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ig/oqMG8wJ7/Dub4C3CzjSf4B4ZgUfqZtZtPgqHz0yYlqjXqanD4aYRuk+F1zB2eh5QzImL5KwVWg6w56e9MZQ==", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "commit"=>"Submit"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "wellingtongabrielvs@gmail.com"], ["LIMIT", 1]] +Redirected to http://localhost:3081/ +Completed 302 Found in 59ms (ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:42:31 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 19ms (Views: 18.7ms | ActiveRecord: 0.1ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (69.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (56.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (57.5ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (95.6ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (61.1ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (56.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (46.3ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateUsers (20180602230646) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "role" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602230646"]] + [1m[35m (48.0ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-02 23:50:15.905961"], ["updated_at", "2018-06-02 23:50:15.905961"]] + [1m[35m (38.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m +Started GET "/" for 127.0.0.1 at 2018-06-02 20:50:26 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.0ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::RecordNotFound (Couldn't find User with 'id'=1): + +app/controllers/application_controller.rb:7:in `current_user' +app/views/layouts/application.html.erb:21:in `_app_views_layouts_application_html_erb___3489169817141058777_70087089648000' +Started GET "/" for 127.0.0.1 at 2018-06-02 20:50:32 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find User with 'id'=1): + +app/controllers/application_controller.rb:7:in `current_user' +app/views/layouts/application.html.erb:21:in `_app_views_layouts_application_html_erb___3489169817141058777_70087170475320' +Started GET "/" for 127.0.0.1 at 2018-06-02 20:50:34 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 500 Internal Server Error in 22ms (ActiveRecord: 0.1ms) + + + +ActiveRecord::RecordNotFound (Couldn't find User with 'id'=1): + +app/controllers/application_controller.rb:7:in `current_user' +app/views/layouts/application.html.erb:21:in `_app_views_layouts_application_html_erb___3489169817141058777_70087190612260' +Started GET "/" for 127.0.0.1 at 2018-06-02 20:50:54 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 28ms (Views: 26.9ms | ActiveRecord: 0.0ms) + + +Started GET "/signup" for 127.0.0.1 at 2018-06-02 20:50:56 -0300 +Processing by UserController#new as HTML + Rendering user/new.html.erb within layouts/application + Rendered user/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 34ms (Views: 33.3ms | ActiveRecord: 0.0ms) + + +Started POST "/users" for 127.0.0.1 at 2018-06-02 20:51:07 -0300 +Processing by UserController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"UrjSeUeTOI0k7LpexkSE2JHZgSLu57yxIhh9lTnXgE55C7js0KQry7fqOhReai0aWuGY99qkr/6npjAo3vENVg==", "user"=>{"name"=>"wellington", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Submit"} + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "wellington"], ["email", "wellingtongabrielvs@gmail.com"], ["password_digest", "$2a$10$gUj9pYqZdlCszSPlgxx75uJlHRT3nZRmoXh4uSH6z9muWkOBDpIsa"], ["role", 2], ["created_at", "2018-06-02 23:51:07.416228"], ["updated_at", "2018-06-02 23:51:07.416228"]] + [1m[35m (109.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/ +Completed 302 Found in 175ms (ActiveRecord: 110.7ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 20:51:07 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 22ms (Views: 20.6ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:51:10 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 26ms (Views: 19.9ms | ActiveRecord: 0.5ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 20:51:12 -0300 +Processing by GamesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (10.7ms) + Rendered games/new.html.erb within layouts/application (11.8ms) +Completed 200 OK in 40ms (Views: 29.9ms | ActiveRecord: 1.0ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:51:16 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 29ms (Views: 26.3ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 20:51:17 -0300 +Processing by DevelopersController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.7ms) + Rendered developers/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 29ms (Views: 22.0ms | ActiveRecord: 0.4ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 20:51:20 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"XPjB1TNJk7XLyYFz31JK7aaM8TvebgJUaJUYPhZ3CWvZJc1QAaK56JA7JC7Pbwf3cXJi/uqQRAyc76GkIXZfoA==", "developer"=>{"name"=>"aaa", "country"=>"aaa"}, "commit"=>"Create Developer"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "aaa"], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["country", "aaa"], ["created_at", "2018-06-02 23:51:20.528452"], ["updated_at", "2018-06-02 23:51:20.528452"]] + [1m[35m (98.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/1 +Completed 302 Found in 107ms (ActiveRecord: 99.6ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 20:51:20 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.3ms) +Completed 200 OK in 23ms (Views: 20.9ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:51:22 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 25ms (Views: 23.2ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:51:28 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 21.9ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:51:36 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 26ms (Views: 22.0ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:51:37 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.3ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 20:51:38 -0300 +Processing by GamesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.1ms) + Rendered games/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 25ms (Views: 22.3ms | ActiveRecord: 0.4ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 20:51:41 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"we3dXEY9M5smDVAF7DPgdauSXHnAQQJb82lCfscuLIK0aTM9gKXFfBD/gfDWa241n96AqZaqUpKZVtD5eP2Oiw==", "game"=>{"name"=>"aaa", "description"=>"aaa", "is_released"=>"1", "developer_id"=>"1", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "aaa"], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "aaa"], ["description", "aaa"], ["is_released", "t"], ["developer_id", 1], ["created_at", "2018-06-02 23:51:41.331200"], ["updated_at", "2018-06-02 23:51:41.331200"]] + [1m[35m (116.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/1 +Completed 302 Found in 131ms (ActiveRecord: 117.3ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 20:51:41 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (7.3ms) +Completed 200 OK in 27ms (Views: 25.0ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:51:43 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 20:51:44 -0300 +Processing by PricesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (6.9ms) + Rendered prices/new.html.erb within layouts/application (7.7ms) +Completed 200 OK in 35ms (Views: 26.1ms | ActiveRecord: 0.8ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 20:51:48 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZArlAsP1m5JcPP3B+EsbshdLNS+xGdzR1yI191mW619fLQ0MFcMoiNqMz1J4umLBLchSfUKZ6cy9EGrchds+fA==", "price"=>{"game_id"=>"1", "price_us"=>"1", "price_br"=>"2", "price_ru"=>"3"}, "commit"=>"Create Price"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mPrice Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 1], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 1], ["price_br", 2], ["price_ru", 3], ["game_id", 1], ["created_at", "2018-06-02 23:51:48.996060"], ["updated_at", "2018-06-02 23:51:48.996060"]] + [1m[35m (50.6ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/1 +Completed 302 Found in 61ms (ActiveRecord: 51.8ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 20:51:49 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 24ms (Views: 22.0ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:51:50 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (4.4ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `role' for nil:NilClass): + 27: <td><%= price.price_br %></td> + 28: <td><%= price.price_ru %></td> + 29: <td><%= link_to 'Show', price %></td> + 30: <% if @currentUser.role == 1 %> + 31: <td><%= link_to 'Edit', edit_price_path(price) %></td> + 32: <td><%= link_to 'Destroy', price, method: :delete, data: { confirm: 'Are you sure?' } %></td> + 33: <% end %> + +app/views/prices/index.html.erb:30:in `block in _app_views_prices_index_html_erb__3377528355455011584_70087191660480' +app/views/prices/index.html.erb:23:in `_app_views_prices_index_html_erb__3377528355455011584_70087191660480' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:52:51 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + Rendered prices/index.html.erb within layouts/application (2.8ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `role' for nil:NilClass): + 9: <th>Price us</th> + 10: <th>Price br</th> + 11: <th>Price ru</th> + 12: <% if @currentUser.role == 1 %> + 13: <th colspan="3"></th> + 14: <% elsif @currentUser.role == 2 %> + 15: <th colspan="1"></th> + +app/views/prices/index.html.erb:12:in `_app_views_prices_index_html_erb__3377528355455011584_70087173200780' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:53:29 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/index.html.erb within layouts/application (156.9ms) +Completed 500 Internal Server Error in 161ms (ActiveRecord: 0.4ms) + + + +ActionView::Template::Error (undefined local variable or method `currentUser' for #<#<Class:0x00007f7ce1777148>:0x00007f7ce2377740> +Did you mean? current_user + @current_user): + 9: <th>Price us</th> + 10: <th>Price br</th> + 11: <th>Price ru</th> + 12: <% if currentUser.role == 1 %> + 13: <th colspan="3"></th> + 14: <% elsif currentUser.role == 2 %> + 15: <th colspan="1"></th> + +app/views/prices/index.html.erb:12:in `_app_views_prices_index_html_erb__3377528355455011584_70087021428820' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:54:25 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/index.html.erb within layouts/application (180.8ms) +Completed 500 Internal Server Error in 184ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined local variable or method `currentUser' for #<#<Class:0x00007f7ce1777148>:0x00007f7ce2335660> +Did you mean? current_user + @current_user): + 11: <th>Price ru</th> + 12: <% if current_user.role == 1 %> + 13: <th colspan="3"></th> + 14: <% elsif currentUser.role == 2 %> + 15: <th colspan="1"></th> + 16: <% end %> + 17: </tr> + +app/views/prices/index.html.erb:14:in `_app_views_prices_index_html_erb__3377528355455011584_70087173845980' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:54:37 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 34ms (Views: 32.5ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:55:06 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:55:12 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:55:14 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 29ms (Views: 27.3ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:55:30 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 20:57:04 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.5ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:57:05 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 26ms (Views: 23.9ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:58:56 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 20:58:57 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 30ms (Views: 28.5ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 20:58:58 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 20.4ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 20:58:59 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 20:59:02 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:00:31 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 25ms (Views: 23.1ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:00:32 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 26ms (Views: 23.6ms | ActiveRecord: 0.4ms) + + +Started GET "/games/1" for 127.0.0.1 at 2018-06-02 21:00:33 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 1]] + Rendered games/show.html.erb within layouts/application (2.9ms) +Completed 200 OK in 28ms (Views: 25.8ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:00:34 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 0.4ms) + + +Started GET "/developers/1" for 127.0.0.1 at 2018-06-02 21:00:35 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 25ms (Views: 21.1ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:00:36 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.0ms) +Completed 200 OK in 20ms (Views: 19.1ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:00:40 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 26ms (Views: 22.9ms | ActiveRecord: 0.6ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 21:00:42 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (2.8ms) +Completed 200 OK in 28ms (Views: 24.8ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:00:42 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 27ms (Views: 25.3ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:00:43 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 32ms (Views: 29.5ms | ActiveRecord: 0.7ms) + + +Started GET "/prices/1" for 127.0.0.1 at 2018-06-02 21:00:44 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 29ms (Views: 26.0ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:00:46 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.4ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 22ms (Views: 20.7ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:01:56 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.1ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:01:57 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 25ms (Views: 23.6ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:01:58 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:01:58 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:01:59 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:01:59 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.6ms) + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 25ms (Views: 24.0ms | ActiveRecord: 0.2ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:02:00 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 27.9ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:03:43 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:03:53 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 27ms (Views: 25.8ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:03:54 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 26ms (Views: 23.3ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:03:54 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 27ms (Views: 23.2ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:03:55 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 26ms (Views: 23.5ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:03:57 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 24ms (Views: 21.6ms | ActiveRecord: 0.5ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:03:58 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 25ms (Views: 24.5ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:03:59 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 26ms (Views: 23.2ms | ActiveRecord: 0.5ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:05:48 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 31ms (Views: 28.6ms | ActiveRecord: 0.4ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "role", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "admin"], ["email", "admin@admin.com"], ["password_digest", "$2a$10$vqiQEikfaJljasOX5xJxI.U/lJnHts3xdqnnHjY84tnsMoCSxMfuG"], ["role", 1], ["created_at", "2018-06-03 00:05:53.058893"], ["updated_at", "2018-06-03 00:05:53.058893"]] + [1m[35m (52.6ms)[0m [1m[36mcommit transaction[0m +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:05:55 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.5ms) + + +Started GET "/logout" for 127.0.0.1 at 2018-06-02 21:05:57 -0300 +Processing by SessionsController#destroy as HTML +Redirected to http://localhost:3081/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 21:05:57 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 23ms (Views: 22.3ms | ActiveRecord: 0.0ms) + + +Started POST "/login" for 127.0.0.1 at 2018-06-02 21:06:01 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"ggSkzH4TWeqf21eI7HGVpt5MM9bE8BCD3FmLfvOTPbQ1AO5+95Pr+6Dj7m6n31dUt7zdH5t3cF1HdAEXpu4fWw==", "email"=>"admin@admin.com", "password"=>"[FILTERED]", "commit"=>"Submit"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "admin@admin.com"], ["LIMIT", 1]] +Redirected to http://localhost:3081/ +Completed 302 Found in 59ms (ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:06:01 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 20ms (Views: 19.3ms | ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:06:03 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.7ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 28ms (Views: 26.8ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:06:03 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 27ms (Views: 24.4ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:06:04 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.4ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 31ms (Views: 27.9ms | ActiveRecord: 0.7ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:06:05 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 23ms (Views: 20.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:06:05 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 28ms (Views: 24.7ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:06:06 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 25ms (Views: 22.7ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:06:07 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 24ms (Views: 22.2ms | ActiveRecord: 0.1ms) + + +Started GET "/logout" for 127.0.0.1 at 2018-06-02 21:06:08 -0300 +Processing by SessionsController#destroy as HTML +Redirected to http://localhost:3081/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 21:06:08 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 24ms (Views: 23.3ms | ActiveRecord: 0.0ms) + + +Started POST "/login" for 127.0.0.1 at 2018-06-02 21:06:13 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"8EulToIyh2XtgE/Qu8GUmyagb9KvNC8iPo++OnBcaOhHT+/8C7I1dNK49jbwb1ZpT1CBG/CzT/ylojRTJSFKBw==", "email"=>"wellingtongabrielvs@gmail.com", "password"=>"[FILTERED]", "commit"=>"Submit"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "wellingtongabrielvs@gmail.com"], ["LIMIT", 1]] +Redirected to http://localhost:3081/ +Completed 302 Found in 57ms (ActiveRecord: 0.1ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:06:13 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.1ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 21ms (Views: 19.9ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:06:13 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/index.html.erb within layouts/application (3.8ms) +Completed 200 OK in 28ms (Views: 25.5ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:10:37 -0300 +Processing by GamesController#index as HTML +Redirected to http://localhost:3081/login +Filter chain halted as :authorize rendered or redirected +Completed 302 Found in 0ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 21:10:38 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 22ms (Views: 21.1ms | ActiveRecord: 0.0ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:35:57 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (2.4ms) + Rendered games/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 27ms (Views: 24.5ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:35:58 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (4.1ms) + Rendered games/index.html.erb within layouts/application (5.1ms) +Completed 200 OK in 27ms (Views: 24.7ms | ActiveRecord: 0.7ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:35:59 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (2.3ms) + Rendered developers/index.html.erb within layouts/application (4.4ms) +Completed 200 OK in 27ms (Views: 24.2ms | ActiveRecord: 0.5ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:36:00 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.1ms) + Rendered categories/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:36:01 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.5ms) + Rendered prices/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 26ms (Views: 23.9ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:36:42 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.4ms) + Rendered prices/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:36:43 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (3.2ms) + Rendered games/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 29ms (Views: 27.6ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:36:44 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.3ms) + Rendered developers/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 25ms (Views: 22.9ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:36:45 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.0ms) + Rendered categories/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 23ms (Views: 21.0ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:36:46 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.9ms) + Rendered prices/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 30ms (Views: 26.2ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:36:47 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.8ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 29ms (Views: 27.9ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 21:36:48 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (3.1ms) + Rendered games/index.html.erb within layouts/application (4.8ms) +Completed 200 OK in 33ms (Views: 30.4ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 21:36:49 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.9ms) + Rendered developers/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 28ms (Views: 25.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:36:50 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.9ms) + Rendered prices/index.html.erb within layouts/application (4.1ms) +Completed 200 OK in 32ms (Views: 29.7ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 21:38:25 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (1.9ms) + Rendered prices/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:38:26 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + [1m[36mCACHE Category Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" LIMIT ?[0m [["LIMIT", 11]] + Rendered categories/index.html.erb within layouts/application (152.1ms) +Completed 500 Internal Server Error in 155ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined local variable or method `form' for #<#<Class:0x00007f7cdc0b6ca0>:0x00007f7ce0d476f0> +Did you mean? fork): + 6: <fieldset> + 7: <legend>Search for a category</legend> + 8: <div class="field"> + 9: <%= form.label :name %> + 10: <%= text_field_tag :name %> + 11: </div> + 12: <div class="actions"> + +app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_html_erb___1609092851561326753_70087162366940' +app/views/categories/index.html.erb:5:in `_app_views_categories_index_html_erb___1609092851561326753_70087162366940' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:38:40 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/index.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (wrong number of arguments (given 1, expected 2..4)): + 6: <fieldset> + 7: <legend>Search for a category</legend> + 8: <div class="field"> + 9: <%= label :name %> + 10: <%= text_field_tag :name %> + 11: </div> + 12: <div class="actions"> + +app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_html_erb___1609092851561326753_70087173554940' +app/views/categories/index.html.erb:5:in `_app_views_categories_index_html_erb___1609092851561326753_70087173554940' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:40:20 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (4.0ms) +Completed 200 OK in 28ms (Views: 26.0ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:40:59 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.2ms) + Rendered categories/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 22ms (Views: 20.3ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:41:05 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.4ms) + Rendered categories/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:41:18 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.2ms) + Rendered categories/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:41:26 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (0.8ms) + Rendered categories/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 26ms (Views: 24.2ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:42:39 -0300 + +SyntaxError (/home/wellington/Documents/CI320/T5/app/controllers/categories_controller.rb:85: syntax error, unexpected end-of-input, expecting keyword_end): + +app/controllers/categories_controller.rb:85: syntax error, unexpected end-of-input, expecting keyword_end +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:43:08 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (1.5ms) + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 12: </thead> + 13: + 14: <tbody> + 15: <% @categories.each do |category| %> + 16: <tr> + 17: <td><%= category.name %></td> + 18: <td><%= category.description %></td> + +app/views/categories/_table_categories.html.erb:15:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087021279720' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087121972980' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:46:30 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.7ms) + Rendered categories/index.html.erb within layouts/application (2.2ms) +Completed 200 OK in 39ms (Views: 25.5ms | ActiveRecord: 0.8ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:46:34 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.6ms) + Rendered categories/index.html.erb within layouts/application (2.6ms) +Completed 200 OK in 24ms (Views: 21.7ms | ActiveRecord: 0.2ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 21:46:35 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.4ms) + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.1ms) + + +Started GET "/logout" for 127.0.0.1 at 2018-06-02 21:46:47 -0300 +Processing by SessionsController#destroy as HTML +Redirected to http://localhost:3081/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2018-06-02 21:46:47 -0300 +Processing by SessionsController#new as HTML + Rendering sessions/new.html.erb within layouts/application + Rendered sessions/new.html.erb within layouts/application (0.6ms) +Completed 200 OK in 27ms (Views: 26.7ms | ActiveRecord: 0.0ms) + + +Started POST "/login" for 127.0.0.1 at 2018-06-02 21:46:50 -0300 +Processing by SessionsController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OdV2LKWGj2EGkhlV+mKP5DJiPZ3SYw0MUKcjqI9IRc+O0TyeLAY9cDmqoLOxzE0WW5LTVI3kbdLLiqnB2jVnIA==", "email"=>"admin@admin.com", "password"=>"[FILTERED]", "commit"=>"Submit"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "admin@admin.com"], ["LIMIT", 1]] +Redirected to http://localhost:3081/ +Completed 302 Found in 59ms (ActiveRecord: 0.2ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 21:46:50 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 23ms (Views: 21.9ms | ActiveRecord: 0.1ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:46:52 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.6ms) + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 23ms (Views: 21.2ms | ActiveRecord: 0.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 21:46:54 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.0ms) + Rendered categories/new.html.erb within layouts/application (2.9ms) +Completed 200 OK in 33ms (Views: 23.6ms | ActiveRecord: 0.9ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 21:46:56 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"SkuFfV8/WUD4aNC6DMvUWd93rRO41TddzKUNhgisLdL1RhDqOjMaKBY98I1aNoFWuWfrxudqpMlkE3UNNhUTLA==", "category"=>{"name"=>"a", "description"=>"a"}, "commit"=>"Create Category"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "a"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "a"], ["description", "a"], ["created_at", "2018-06-03 00:46:56.809225"], ["updated_at", "2018-06-03 00:46:56.809225"]] + [1m[35m (100.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/1 +Completed 302 Found in 106ms (ActiveRecord: 101.3ms) + + +Started GET "/categories/1" for 127.0.0.1 at 2018-06-02 21:46:56 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"1"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.6ms) +Completed 200 OK in 23ms (Views: 20.0ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:46:57 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.9ms) + Rendered categories/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 24ms (Views: 22.6ms | ActiveRecord: 0.1ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:47:00 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.7ms) + Rendered categories/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 30ms (Views: 27.7ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:47:36 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (2.1ms) + Rendered categories/index.html.erb within layouts/application (4.0ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `empty?' for nil:NilClass): + 12: </thead> + 13: + 14: <tbody> + 15: <% if !(@categories.empty?) %> + 16: <% @categories.each do |category| %> + 17: <tr> + 18: <td><%= category.name %></td> + +app/views/categories/_table_categories.html.erb:15:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087189766840' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087189927320' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:47:44 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.5ms) + Rendered categories/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 22ms (Views: 20.2ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:47:49 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (2.6ms) + Rendered categories/index.html.erb within layouts/application (4.5ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 13: + 14: <tbody> + 15: <% if (@categories.blank?) %> + 16: <% @categories.each do |category| %> + 17: <tr> + 18: <td><%= category.name %></td> + 19: <td><%= category.description %></td> + +app/views/categories/_table_categories.html.erb:16:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087173871540' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087173879540' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:01 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (2.6ms) + Rendered categories/index.html.erb within layouts/application (4.3ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.2ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 13: + 14: <tbody> + 15: <% if (@categories.blank?) %> + 16: <% @categories.each do |category| %> + 17: <tr> + 18: <td><%= category.name %></td> + 19: <td><%= category.description %></td> + +app/views/categories/_table_categories.html.erb:16:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087021397880' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087191182040' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:06 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.7ms) + Rendered categories/index.html.erb within layouts/application (2.4ms) +Completed 200 OK in 33ms (Views: 31.7ms | ActiveRecord: 0.1ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 21:48:08 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.5ms) + Rendered categories/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.1ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 21:48:10 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"q6BJFqNzdPq8e3gc/9czo5vgjCzLVJrqjBLzwMGxPekUrdyBxn83klIuWCupKmas/fDK+ZTrCX4kpItL/wgDFw==", "category"=>{"name"=>"aaa", "description"=>"aaa"}, "commit"=>"Create Category"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "aaa"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["description", "aaa"], ["created_at", "2018-06-03 00:48:10.420305"], ["updated_at", "2018-06-03 00:48:10.420305"]] + [1m[35m (148.9ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/2 +Completed 302 Found in 153ms (ActiveRecord: 149.3ms) + + +Started GET "/categories/2" for 127.0.0.1 at 2018-06-02 21:48:10 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:11 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (0.8ms) + Rendered categories/index.html.erb within layouts/application (2.9ms) +Completed 200 OK in 26ms (Views: 23.8ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:20 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + Rendered categories/_table_categories.html.erb (2.4ms) + Rendered categories/index.html.erb within layouts/application (3.9ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 12: </thead> + 13: + 14: <tbody> + 15: <% @categories.each do |category| %> + 16: <tr> + 17: <td><%= category.name %></td> + 18: <td><%= category.description %></td> + +app/views/categories/_table_categories.html.erb:15:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087165958220' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087166196740' +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:45 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (5.4ms) + Rendered categories/index.html.erb within layouts/application (6.5ms) +Completed 200 OK in 35ms (Views: 23.5ms | ActiveRecord: 1.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:54 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 23ms (Views: 21.3ms | ActiveRecord: 0.3ms) + + +Started DELETE "/categories/2" for 127.0.0.1 at 2018-06-02 21:48:56 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"authenticity_token"=>"vpe/0oP7fmDjxuvsEsOvcLSG8BRSWjC2Wx9LyW82PQ/nV8+HNSRTdgDMzUCeBwu/EoDPgdkzhPX1qXLzRH96jA==", "id"=>"2"} + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 2]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 2]] + [1m[35m (90.7ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories +Completed 302 Found in 109ms (ActiveRecord: 92.1ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:56 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 24ms (Views: 22.4ms | ActiveRecord: 0.2ms) + + +Started DELETE "/categories/1" for 127.0.0.1 at 2018-06-02 21:48:58 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"authenticity_token"=>"B/kblpyMa8r1C7azAGginvhQg3V482uCVB+w1lJxZ+teOWvDKlNG3BYBkB+MrIZRXla84POa38H6qYnseTggaA==", "id"=>"1"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 1]] + [1m[35mSQL (0.3ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 1]] + [1m[35m (345.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories +Completed 302 Found in 352ms (ActiveRecord: 345.9ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:48:59 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.1ms) + Rendered categories/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 27ms (Views: 24.8ms | ActiveRecord: 0.3ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 21:49:01 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.4ms) + Rendered categories/new.html.erb within layouts/application (6.3ms) +Completed 200 OK in 33ms (Views: 31.0ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:49:03 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.4ms) + Rendered categories/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 27ms (Views: 24.9ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:50:31 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.3ms) + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 31ms (Views: 19.2ms | ActiveRecord: 1.2ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 21:50:35 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.2ms) + Rendered categories/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 34ms (Views: 27.3ms | ActiveRecord: 0.4ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 21:50:37 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"jGbIxeU5cOmKk2hc1relBf1Lg/pVPiTaC4XYWcJULpEza11SgDUzgWTGSGuASvAKm1vFLwqBt06jM6DS/O0Qbw==", "category"=>{"name"=>"aaa", "description"=>"aaa"}, "commit"=>"Create Category"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "aaa"], ["LIMIT", 1]] + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaa"], ["description", "aaa"], ["created_at", "2018-06-03 00:50:37.559074"], ["updated_at", "2018-06-03 00:50:37.559074"]] + [1m[35m (117.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/3 +Completed 302 Found in 124ms (ActiveRecord: 117.7ms) + + +Started GET "/categories/3" for 127.0.0.1 at 2018-06-02 21:50:37 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.2ms) +Completed 200 OK in 28ms (Views: 25.1ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 21:50:38 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 24ms (Views: 22.1ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=aaa&commit=Search" for 127.0.0.1 at 2018-06-02 21:50:41 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"aaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.0ms) + Rendered categories/index.html.erb within layouts/application (2.7ms) +Completed 200 OK in 23ms (Views: 20.8ms | ActiveRecord: 0.2ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=aaaa&commit=Search" for 127.0.0.1 at 2018-06-02 21:50:44 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"aaaa", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 25ms (Views: 22.5ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=adff&commit=Search" for 127.0.0.1 at 2018-06-02 21:50:56 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"adff", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.8ms) + Rendered categories/index.html.erb within layouts/application (4.2ms) +Completed 200 OK in 32ms (Views: 29.3ms | ActiveRecord: 0.4ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=adff&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:13 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"adff", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (5.4ms) + Rendered categories/index.html.erb within layouts/application (6.8ms) +Completed 200 OK in 39ms (Views: 27.1ms | ActiveRecord: 1.4ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=aaaa&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:15 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"aaaa", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.0ms) + Rendered categories/index.html.erb within layouts/application (2.1ms) +Completed 200 OK in 25ms (Views: 22.8ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:17 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.1ms) + Rendered categories/index.html.erb within layouts/application (2.3ms) +Completed 200 OK in 27ms (Views: 25.6ms | ActiveRecord: 0.2ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:18 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (2.1ms) + Rendered categories/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 30ms (Views: 28.2ms | ActiveRecord: 0.4ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:40 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.4ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (nome LIKE '%b%')[0m + Rendered categories/_table_categories.html.erb (1.7ms) + Rendered categories/index.html.erb within layouts/application (2.9ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.3ms) + + + +ActionView::Template::Error (SQLite3::SQLException: no such column: nome: SELECT "categories".* FROM "categories" WHERE (nome LIKE '%b%')): + 12: </thead> + 13: + 14: <tbody> + 15: <% @categories.each do |category| %> + 16: <tr> + 17: <td><%= category.name %></td> + 18: <td><%= category.description %></td> + +app/views/categories/_table_categories.html.erb:15:in `_app_views_categories__table_categories_html_erb___3421099487188062718_70087173290740' +app/views/categories/index.html.erb:19:in `_app_views_categories_index_html_erb___1609092851561326753_70087173479520' +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:52 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%b%')[0m + Rendered categories/_table_categories.html.erb (1.4ms) + Rendered categories/index.html.erb within layouts/application (2.5ms) +Completed 200 OK in 37ms (Views: 25.5ms | ActiveRecord: 1.1ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=aaaa&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:55 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"aaaa", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%aaaa%')[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 26ms (Views: 23.7ms | ActiveRecord: 0.5ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:51:57 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%a%')[0m + Rendered categories/_table_categories.html.erb (6.0ms) + Rendered categories/index.html.erb within layouts/application (7.3ms) +Completed 200 OK in 31ms (Views: 28.8ms | ActiveRecord: 0.5ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:54:14 -0300 + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%a%')[0m + Rendered categories/_table_categories.html.erb (5.6ms) + Rendered categories/index.html.erb within layouts/application (7.1ms) +Completed 200 OK in 827ms (Views: 806.2ms | ActiveRecord: 1.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 21:54:25 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.4ms) + Rendered categories/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 104ms (Views: 101.7ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 21:54:46 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.9ms) + Rendered categories/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 113ms (Views: 111.1ms | ActiveRecord: 0.4ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=aaaaaa&commit=Search" for 127.0.0.1 at 2018-06-02 21:54:50 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aaaaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%aaaaaa%')[0m + Rendered categories/_table_categories.html.erb (0.8ms) + Rendered categories/index.js.erb (1.6ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 21:54:54 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (2.0ms) + Rendered categories/index.js.erb (3.6ms) +Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.5ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 21:55:09 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%b%')[0m + Rendered categories/_table_categories.html.erb (1.5ms) + Rendered categories/index.js.erb (3.1ms) +Completed 200 OK in 8ms (Views: 5.2ms | ActiveRecord: 0.4ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:55:13 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%a%')[0m + Rendered categories/_table_categories.html.erb (1.7ms) + Rendered categories/index.js.erb (2.7ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 21:55:15 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.7ms) + Rendered categories/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 112ms (Views: 109.3ms | ActiveRecord: 0.5ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 21:55:17 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%a%')[0m + Rendered categories/_table_categories.html.erb (1.7ms) + Rendered categories/index.js.erb (3.0ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:16:43 -0300 +Processing by CategoriesController#index as HTML + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (6.6ms) + Rendered categories/index.html.erb within layouts/application (7.9ms) +Completed 200 OK in 137ms (Views: 121.7ms | ActiveRecord: 1.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:16:45 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.2ms) + + + +NameError (uninitialized constant GamesController::Games): + +app/controllers/games_controller.rb:11:in `index' +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:16:59 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (19.0ms) + Rendered games/index.html.erb within layouts/application (20.0ms) +Completed 200 OK in 135ms (Views: 117.6ms | ActiveRecord: 2.1ms) + + +Started GET "/games?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:17:04 -0300 +Processing by GamesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.js.erb + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendered games/_table_games.html.erb (1.4ms) + Rendered games/index.js.erb (2.7ms) +Completed 200 OK in 7ms (Views: 4.6ms | ActiveRecord: 0.4ms) + + +Started GET "/games?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:17:06 -0300 +Processing by GamesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (1.7ms) + Rendered games/index.js.erb (2.5ms) +Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:17:08 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (2.1ms) + Rendered developers/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 103ms (Views: 101.1ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 22:17:09 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (7.2ms) + Rendered categories/index.html.erb within layouts/application (8.4ms) +Completed 200 OK in 110ms (Views: 104.4ms | ActiveRecord: 1.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:17:09 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (11.4ms) + Rendered prices/index.html.erb within layouts/application (13.0ms) +Completed 200 OK in 118ms (Views: 112.7ms | ActiveRecord: 1.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:23:35 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (18.2ms) + Rendered prices/index.html.erb within layouts/application (19.4ms) +Completed 200 OK in 176ms (Views: 163.1ms | ActiveRecord: 2.2ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:37 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.1ms) + Rendered prices/index.js.erb (4.9ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e8768c4f0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159426628700' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159426628700' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159426671440' +Started GET "/prices?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:39 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.6ms) + Rendered prices/index.js.erb (1.7ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:39 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.4ms) + Rendered prices/index.js.erb (1.2ms) +Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:41 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.4ms) + Rendered prices/index.js.erb (5.2ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85b8dcd0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159411973440' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159411973440' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159412494980' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:42 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.9ms) + Rendered prices/index.js.erb (7.0ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86a75ba8>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159420223860' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159420223860' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159420308960' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:42 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.9ms) + Rendered prices/index.js.erb (7.4ms) +Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x000000000579df10>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_45536280' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_45536280' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_45962800' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:42 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.2ms) + Rendered prices/index.js.erb (6.4ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85fad9a0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159414432820' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159414432820' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159414680720' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:42 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.4ms) + Rendered prices/index.js.erb (5.4ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86ee2010>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159422400800' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159422400800' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159422438500' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:43 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.8ms) + Rendered prices/index.js.erb (7.1ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e8514ad68>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159406980280' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159406980280' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159407116560' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:43 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.5ms) + Rendered prices/index.js.erb (4.2ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e865471e0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159417555400' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159417555400' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159417616620' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:43 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.7ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.7ms) + Rendered prices/index.js.erb (7.0ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e87249bb8>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159424133940' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159424133940' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159424429800' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:43 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.1ms) + Rendered prices/index.js.erb (6.1ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85530388>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159409020980' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159409020980' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159409150920' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:23:44 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.2ms) + Rendered prices/index.html.erb within layouts/application (3.7ms) +Completed 200 OK in 103ms (Views: 101.6ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:46 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.9ms) + Rendered prices/index.js.erb (4.3ms) +Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:47 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (1.8ms) + Rendered prices/index.js.erb (3.4ms) +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:47 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.6ms) + Rendered prices/index.js.erb (3.8ms) +Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:48 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.0ms) + Rendered prices/index.js.erb (4.8ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85e88660>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159414036120' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159414036120' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159414072280' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:49 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.7ms) + Rendered prices/index.js.erb (4.5ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86acd498>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159420340860' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159420340860' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159420463100' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:50 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.5ms) + Rendered prices/index.js.erb (7.8ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e87720470>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159426921220' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159426921220' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159426966320' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:50 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.0ms) + Rendered prices/index.js.erb (4.9ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85605d30>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159409425880' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159409425880' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159409594580' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:50 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.6ms) + Rendered prices/index.js.erb (4.4ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.7ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e867e9790>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159418963320' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159418963320' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159418997980' +Started GET "/prices?utf8=%E2%9C%93&name=aaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:52 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aaa", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aaa%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.2ms) + Rendered prices/index.js.erb (6.7ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86fe9058>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159423144880' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159423144880' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159423182160' +Started GET "/prices?utf8=%E2%9C%93&name=aaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:53 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aaaa", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aaaa%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (1.0ms) + Rendered prices/index.js.erb (2.5ms) +Completed 200 OK in 9ms (Views: 5.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:56 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.5ms) + Rendered prices/index.js.erb (7.9ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e84d06f40>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159403702900' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159403702900' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159404878660' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:56 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.2ms) + Rendered prices/index.js.erb (7.3ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85e2e318>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159413833180' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159413833180' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159413886860' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:56 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.2ms) + Rendered prices/index.js.erb (5.0ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86916a00>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159419580300' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159419580300' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159419614480' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:56 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.7ms) + Rendered prices/index.js.erb (7.9ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.9ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e87367db0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159424759240' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159424759240' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159425023780' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:56 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (7.1ms) + Rendered prices/index.js.erb (8.3ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.2ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e850a2758>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159406633720' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159406633720' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159406770720' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:57 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.3ms) + Rendered prices/index.js.erb (7.5ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85f0b740>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159414321000' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159414321000' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159414348180' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:57 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.7ms) + Rendered prices/index.js.erb (7.3ms) +Completed 500 Internal Server Error in 14ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e869d96b8>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159419927160' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159419927160' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159419997240' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:57 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.6ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.0ms) + Rendered prices/index.js.erb (7.3ms) +Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.1ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e87390f58>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159424782120' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159424782120' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159425082700' +Started GET "/prices?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:58 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.9ms) + Rendered prices/index.js.erb (2.4ms) +Completed 200 OK in 8ms (Views: 4.8ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:23:59 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.5ms) + Rendered prices/index.js.erb (1.4ms) +Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:24:00 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.1ms) + Rendered prices/index.js.erb (4.9ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e84d34940>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159404760660' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159404760660' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159404954760' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:24:00 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.9ms) + Rendered prices/index.js.erb (5.1ms) +Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e85c4d1e8>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159412661560' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159412661560' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159412876880' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:24:11 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.9ms) + Rendered prices/index.js.erb (4.6ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e867cfed0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159417732160' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159417732160' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159418945500' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:24:12 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (5.4ms) + Rendered prices/index.js.erb (6.4ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.9ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e86cf7458>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159421609900' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159421609900' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159421647680' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:24:56 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (17.6ms) + Rendered prices/index.html.erb within layouts/application (18.7ms) +Completed 200 OK in 135ms (Views: 122.3ms | ActiveRecord: 2.1ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:24:58 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (3.8ms) + Rendered prices/index.js.erb (4.6ms) +Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.6ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e877232d8>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159426923420' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159426923420' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159426979760' +Started GET "/prices?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:25:02 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%b%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.5ms) + Rendered prices/index.js.erb (1.5ms) +Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:25:05 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (6.3ms) + Rendered prices/index.js.erb (7.5ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x0000000005668fa0>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_45207140' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_45207140' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_45295420' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:25:40 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (24.5ms) + Rendered prices/index.html.erb within layouts/application (26.0ms) +Completed 200 OK in 177ms (Views: 156.9ms | ActiveRecord: 2.7ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:25:42 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms) + + + +ActiveRecord::StatementInvalid (SQLite3::SQLException: near ")": syntax error: SELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?): + +app/controllers/prices_controller.rb:14:in `inspect' +app/controllers/prices_controller.rb:14:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:26:28 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (23.2ms) + Rendered prices/index.html.erb within layouts/application (24.5ms) +Completed 200 OK in 142ms (Views: 128.7ms | ActiveRecord: 2.1ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:26:30 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.5ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.9ms) + + + +ActiveRecord::StatementInvalid (SQLite3::SQLException: near ")": syntax error: SELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?): + +app/controllers/prices_controller.rb:16:in `inspect' +app/controllers/prices_controller.rb:16:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:27:02 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (17.8ms) + Rendered prices/index.html.erb within layouts/application (19.1ms) +Completed 200 OK in 138ms (Views: 126.4ms | ActiveRecord: 1.9ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:27:04 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.6ms) + + + +ActiveRecord::StatementInvalid (SQLite3::SQLException: near ")": syntax error: SELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?): + +app/controllers/prices_controller.rb:16:in `inspect' +app/controllers/prices_controller.rb:16:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:27:29 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (28.2ms) + Rendered prices/index.html.erb within layouts/application (29.4ms) +Completed 200 OK in 213ms (Views: 198.8ms | ActiveRecord: 2.8ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:27:32 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%') LIMIT ?[0m [["LIMIT", 11]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.7ms) + + + +ActiveRecord::StatementInvalid (SQLite3::SQLException: near ")": syntax error: SELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?): + +app/controllers/prices_controller.rb:17:in `inspect' +app/controllers/prices_controller.rb:17:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:27:42 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (18.6ms) + Rendered prices/index.html.erb within layouts/application (19.8ms) +Completed 200 OK in 140ms (Views: 127.5ms | ActiveRecord: 2.2ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:27:44 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%') LIMIT ?[0m [["LIMIT", 11]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.4ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE (game_id = ) LIMIT ?[0m [["LIMIT", 11]] + Rendered prices/_table_prices.html.erb (4.9ms) + Rendered prices/index.js.erb (6.2ms) +Completed 500 Internal Server Error in 23ms (ActiveRecord: 0.8ms) + + + +ActionView::Template::Error (undefined method `game' for #<Price::ActiveRecord_Relation:0x00007f9e870eb140>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159423613620' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159423613620' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159423706860' +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:07 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (15.8ms) + Rendered prices/index.js.erb (16.6ms) +Completed 200 OK in 34ms (Views: 17.0ms | ActiveRecord: 2.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:28:09 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (1.9ms) + Rendered prices/index.html.erb within layouts/application (3.2ms) +Completed 200 OK in 143ms (Views: 141.6ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:11 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.9ms) + Rendered prices/index.js.erb (4.4ms) +Completed 200 OK in 9ms (Views: 6.2ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:11 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.5ms) + Rendered prices/index.js.erb (3.6ms) +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:11 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.1ms) + Rendered prices/index.js.erb (4.3ms) +Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:12 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.6ms) + Rendered prices/index.js.erb (3.9ms) +Completed 200 OK in 8ms (Views: 5.4ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:12 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.1ms) + Rendered prices/index.js.erb (3.4ms) +Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ab&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:15 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ab", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (1.8ms) + Rendered prices/index.js.erb (2.7ms) +Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ab&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:24 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ab", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.2ms) + Rendered prices/index.js.erb (4.8ms) +Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 0.7ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:28:41 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (17.9ms) + Rendered prices/index.html.erb within layouts/application (19.0ms) +Completed 200 OK in 155ms (Views: 142.2ms | ActiveRecord: 1.9ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ab&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:43 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ab", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%ab%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.2ms) + Rendered prices/index.js.erb (3.3ms) +Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aba&commit=Search" for 127.0.0.1 at 2018-06-02 22:28:45 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aba", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aba%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.3ms) + Rendered prices/index.js.erb (4.9ms) +Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 0.7ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aba&commit=Search" for 127.0.0.1 at 2018-06-02 22:29:07 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aba", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aba%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (23.8ms) + Rendered prices/index.js.erb (25.2ms) +Completed 200 OK in 50ms (Views: 26.1ms | ActiveRecord: 2.8ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:29:08 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.1ms) + Rendered prices/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 157ms (Views: 153.8ms | ActiveRecord: 0.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aba&commit=Search" for 127.0.0.1 at 2018-06-02 22:29:10 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aba", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aba%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.8ms) + Rendered prices/index.js.erb (4.0ms) +Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aba&commit=Search" for 127.0.0.1 at 2018-06-02 22:29:11 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aba", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aba%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.5ms) + Rendered prices/index.js.erb (3.9ms) +Completed 200 OK in 9ms (Views: 5.6ms | ActiveRecord: 0.7ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=abaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:29:15 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"abaaa", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%abaaa%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.6ms) + Rendered prices/index.js.erb (4.1ms) +Completed 200 OK in 9ms (Views: 5.9ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:29:31 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (16.1ms) + Rendered prices/index.html.erb within layouts/application (18.2ms) +Completed 200 OK in 221ms (Views: 193.0ms | ActiveRecord: 3.0ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=abaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:29:32 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"abaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%abaaa%') LIMIT ?[0m [["LIMIT", 11]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.0ms) + Rendered prices/index.js.erb (2.8ms) +Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:30:14 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (18.5ms) + Rendered prices/index.html.erb within layouts/application (19.7ms) +Completed 200 OK in 168ms (Views: 155.6ms | ActiveRecord: 1.9ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=abaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:30:16 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"abaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%abaaa%')[0m + Rendering prices/index.js.erb + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (1.7ms) + Rendered prices/index.js.erb (2.5ms) +Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:33:00 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (18.4ms) + Rendered prices/index.html.erb within layouts/application (19.5ms) +Completed 200 OK in 140ms (Views: 128.2ms | ActiveRecord: 2.0ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=abaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:33:02 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"abaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%abaaa%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (2.8ms) + Rendered prices/index.js.erb (3.9ms) +Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.3ms) + + + +ActionView::Template::Error (undefined method `each' for nil:NilClass): + 14: </thead> + 15: + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159407689400' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159407820140' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:33:33 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (32.9ms) + Rendered prices/index.html.erb within layouts/application (34.8ms) +Completed 200 OK in 156ms (Views: 143.1ms | ActiveRecord: 2.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=abaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:33:35 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"abaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%abaaa%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.8ms) + Rendered prices/index.js.erb (1.6ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.2ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:33:40 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms) + + + +NoMethodError (undefined method `<<' for nil:NilClass): + +app/controllers/prices_controller.rb:13:in `block in index' +app/controllers/prices_controller.rb:12:in `index' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:34:25 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (19.2ms) + Rendered prices/index.html.erb within layouts/application (20.4ms) +Completed 200 OK in 143ms (Views: 130.2ms | ActiveRecord: 2.1ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:34:28 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (3.2ms) + Rendered prices/index.js.erb (4.4ms) +Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.5ms) + + + +ActionView::Template::Error (undefined method `game' for #<Array:0x00007f9e877c4f98>): + 16: <tbody> + 17: <% @prices.each do |price| %> + 18: <tr> + 19: <td><%= price.game.name %></td> + 20: <td><%= price.price_us %></td> + 21: <td><%= price.price_br %></td> + 22: <td><%= price.price_ru %></td> + +app/views/prices/_table_prices.html.erb:19:in `block in _app_views_prices__table_prices_html_erb___2283315295025078092_70159427011060' +app/views/prices/_table_prices.html.erb:17:in `each' +app/views/prices/_table_prices.html.erb:17:in `_app_views_prices__table_prices_html_erb___2283315295025078092_70159427011060' +app/views/prices/index.js.erb:2:in `_app_views_prices_index_js_erb___2417563623318163970_70159427280080' +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:35:11 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.4ms) + Rendered prices/index.html.erb within layouts/application (4.3ms) +Completed 200 OK in 113ms (Views: 110.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:35:13 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.2ms) + Rendered prices/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 128ms (Views: 126.1ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:35:14 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.8ms) + Rendered prices/index.html.erb within layouts/application (5.0ms) +Completed 200 OK in 165ms (Views: 161.8ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/1/edit" for 127.0.0.1 at 2018-06-02 22:35:15 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"1"} + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (19.0ms) + Rendered prices/edit.html.erb within layouts/application (20.1ms) +Completed 200 OK in 127ms (Views: 123.4ms | ActiveRecord: 0.7ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:35:18 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (10.7ms) + Rendered games/index.html.erb within layouts/application (12.5ms) +Completed 200 OK in 104ms (Views: 101.2ms | ActiveRecord: 1.0ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:35:19 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.3ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (4.2ms) + Rendered prices/index.html.erb within layouts/application (6.2ms) +Completed 200 OK in 124ms (Views: 121.7ms | ActiveRecord: 0.5ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:36:29 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (17.5ms) + Rendered prices/index.html.erb within layouts/application (18.6ms) +Completed 200 OK in 124ms (Views: 112.4ms | ActiveRecord: 2.0ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:36:32 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.6ms) + Rendered prices/index.js.erb (4.1ms) +Completed 200 OK in 10ms (Views: 6.4ms | ActiveRecord: 0.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ab&commit=Search" for 127.0.0.1 at 2018-06-02 22:36:35 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ab", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%ab%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.9ms) + Rendered prices/index.js.erb (2.2ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aab&commit=Search" for 127.0.0.1 at 2018-06-02 22:36:37 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aab", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aab%')[0m + Rendering prices/index.js.erb + Rendered prices/_table_prices.html.erb (0.5ms) + Rendered prices/index.js.erb (1.4ms) +Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:36:40 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.1ms) + Rendered prices/index.js.erb (3.4ms) +Completed 200 OK in 9ms (Views: 5.3ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:36:44 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (13.9ms) + Rendered games/index.html.erb within layouts/application (15.9ms) +Completed 200 OK in 133ms (Views: 129.9ms | ActiveRecord: 1.2ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 22:36:46 -0300 +Processing by GamesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (84.1ms) + Rendered games/new.html.erb within layouts/application (85.2ms) +Completed 200 OK in 187ms (Views: 184.2ms | ActiveRecord: 1.2ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 22:36:50 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"xOZdMkrpFnJBOuJXhLo3nX+QSPQTWIEUYFY2lYuScH2xYrNTjHHglXfIM6K+4rndS9yUJEWz0d0KaaQSNEHSdA==", "game"=>{"name"=>"abacate", "description"=>"", "is_released"=>"0", "developer_id"=>"1", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "abacate"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.2ms) + Rendered games/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 114ms (Views: 99.4ms | ActiveRecord: 0.8ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 22:36:52 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"p/75qCjaebCIWZXCO07HPmXXUQS4qzjJtU8cenAoIdP+Pon9ngVUpmtTs263imPxw9FukTPCjIob+SVAW2FmUA==", "game"=>{"name"=>"abacate", "description"=>"asdsaad", "is_released"=>"0", "developer_id"=>"1", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "abacate"], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "abacate"], ["description", "asdsaad"], ["is_released", "f"], ["developer_id", 1], ["created_at", "2018-06-03 01:36:52.687878"], ["updated_at", "2018-06-03 01:36:52.687878"]] + [1m[35m (207.4ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/2 +Completed 302 Found in 215ms (ActiveRecord: 208.6ms) + + +Started GET "/games/2" for 127.0.0.1 at 2018-06-02 22:36:52 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 2]] + Rendered games/show.html.erb within layouts/application (8.4ms) +Completed 200 OK in 118ms (Views: 114.9ms | ActiveRecord: 0.8ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:36:54 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (13.3ms) + Rendered games/index.html.erb within layouts/application (15.3ms) +Completed 200 OK in 135ms (Views: 131.9ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:36:59 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (6.9ms) + Rendered games/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 137ms (Views: 134.7ms | ActiveRecord: 0.4ms) + + +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 22:37:00 -0300 +Processing by GamesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.2ms) + Rendered games/new.html.erb within layouts/application (5.7ms) +Completed 200 OK in 130ms (Views: 128.6ms | ActiveRecord: 0.4ms) + + +Started POST "/games" for 127.0.0.1 at 2018-06-02 22:37:04 -0300 +Processing by GamesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"pgf12IVBHNJMDJ+qs/Vqi31/hQGp3p3aTdZSggQYs87Tgxu5Q9nqNXr+Tl+JreTLSTNZ0f81zRMn6cAFu8sRxw==", "game"=>{"name"=>"batata", "description"=>"batata", "is_released"=>"0", "developer_id"=>"1", "category_ids"=>[""]}, "commit"=>"Create Game"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE 1=0[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "batata"], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["name", "batata"], ["description", "batata"], ["is_released", "f"], ["developer_id", 1], ["created_at", "2018-06-03 01:37:04.131905"], ["updated_at", "2018-06-03 01:37:04.131905"]] + [1m[35m (81.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/games/3 +Completed 302 Found in 87ms (ActiveRecord: 82.0ms) + + +Started GET "/games/3" for 127.0.0.1 at 2018-06-02 22:37:04 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 3]] + Rendered games/show.html.erb within layouts/application (3.4ms) +Completed 200 OK in 119ms (Views: 117.0ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:37:06 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (5.4ms) + Rendered games/index.html.erb within layouts/application (7.1ms) +Completed 200 OK in 131ms (Views: 128.6ms | ActiveRecord: 0.6ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:37:07 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.6ms) + Rendered prices/index.html.erb within layouts/application (4.7ms) +Completed 200 OK in 105ms (Views: 102.7ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:13 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.1ms) + Rendered prices/index.js.erb (3.4ms) +Completed 200 OK in 9ms (Views: 5.5ms | ActiveRecord: 0.4ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:14 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.3ms) + Rendered prices/index.js.erb (3.5ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.4ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 22:37:15 -0300 +Processing by PricesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (5.0ms) + Rendered prices/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 114ms (Views: 111.2ms | ActiveRecord: 0.5ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 22:37:20 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"dDImU9+ijrSP4v3/BjJa3ZDcJ7a4eALElR9lwLW4sC1PFc5dCZQ9rglSz2yGwyOuql9A5Ev4N9n/LTrrafVlDg==", "price"=>{"game_id"=>"2", "price_us"=>"12321", "price_br"=>"123123", "price_ru"=>"123123"}, "commit"=>"Create Price"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 2], ["LIMIT", 1]] + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 12321], ["price_br", 123123], ["price_ru", 123123], ["game_id", 2], ["created_at", "2018-06-03 01:37:20.874307"], ["updated_at", "2018-06-03 01:37:20.874307"]] + [1m[35m (49.0ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/2 +Completed 302 Found in 55ms (ActiveRecord: 49.9ms) + + +Started GET "/prices/2" for 127.0.0.1 at 2018-06-02 22:37:20 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.4ms) +Completed 200 OK in 112ms (Views: 109.3ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:37:22 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.7ms) + Rendered prices/index.html.erb within layouts/application (5.4ms) +Completed 200 OK in 119ms (Views: 117.2ms | ActiveRecord: 0.5ms) + + +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 22:37:24 -0300 +Processing by PricesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.6ms) + Rendered prices/new.html.erb within layouts/application (4.6ms) +Completed 200 OK in 103ms (Views: 101.5ms | ActiveRecord: 0.4ms) + + +Started POST "/prices" for 127.0.0.1 at 2018-06-02 22:37:27 -0300 +Processing by PricesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"mHBH5mD1z68pHRC6osaouE4iNVMr8/AbuwRVB43XyJ+jV6/otsN8ta+tIikiN9HLdKFSAdhzxQbRNgosUZodvA==", "price"=>{"game_id"=>"3", "price_us"=>"21321", "price_br"=>"123", "price_ru"=>"123"}, "commit"=>"Create Price"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 3], ["LIMIT", 1]] + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["price_us", 21321], ["price_br", 123], ["price_ru", 123], ["game_id", 3], ["created_at", "2018-06-03 01:37:27.887123"], ["updated_at", "2018-06-03 01:37:27.887123"]] + [1m[35m (45.5ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/prices/3 +Completed 302 Found in 59ms (ActiveRecord: 46.4ms) + + +Started GET "/prices/3" for 127.0.0.1 at 2018-06-02 22:37:27 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"3"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 97ms (Views: 95.2ms | ActiveRecord: 0.2ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:37:29 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (3.4ms) + Rendered prices/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 106ms (Views: 104.5ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:34 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%a%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.7ms) + Rendered prices/index.js.erb (3.6ms) +Completed 200 OK in 9ms (Views: 5.2ms | ActiveRecord: 0.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ab&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:37 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ab", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.4ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%ab%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.2ms) + Rendered prices/index.js.erb (4.1ms) +Completed 200 OK in 11ms (Views: 6.8ms | ActiveRecord: 0.9ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=ba&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:40 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"ba", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%ba%')[0m + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mCACHE Price Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.7ms) + Rendered prices/index.js.erb (4.2ms) +Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 0.7ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=aa&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:45 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%aa%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.2ms) + Rendered prices/index.js.erb (3.6ms) +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.5ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=batata&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:47 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"batata", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%batata%')[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.4ms) + Rendered prices/index.js.erb (4.0ms) +Completed 200 OK in 9ms (Views: 5.8ms | ActiveRecord: 0.6ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=batata&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:48 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"batata", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE (name LIKE '%batata%')[0m + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendering prices/index.js.erb + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (2.4ms) + Rendered prices/index.js.erb (4.0ms) +Completed 200 OK in 10ms (Views: 6.1ms | ActiveRecord: 0.7ms) + + +Started GET "/prices?utf8=%E2%9C%93&name=&commit=Search" for 127.0.0.1 at 2018-06-02 22:37:49 -0300 +Processing by PricesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.js.erb + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (5.6ms) + Rendered prices/index.js.erb (7.2ms) +Completed 200 OK in 11ms (Views: 8.7ms | ActiveRecord: 0.8ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 22:37:51 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.6ms) + Rendered categories/index.html.erb within layouts/application (3.1ms) +Completed 200 OK in 104ms (Views: 102.0ms | ActiveRecord: 0.3ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 22:37:54 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.0ms) + Rendered categories/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 118ms (Views: 116.1ms | ActiveRecord: 0.2ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 22:37:58 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"33G7ElLT+i07/V0666z5RbJJMcMQpXxcc7iYTSOwPolgfC6FN9+5RdWofQ29UaxK1Fl3Fk8a78jbDuDGHQkAdw==", "category"=>{"name"=>"aaaaa", "description"=>"aaaaa"}, "commit"=>"Create Category"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "aaaaa"], ["LIMIT", 1]] + [1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "aaaaa"], ["description", "aaaaa"], ["created_at", "2018-06-03 01:37:58.141696"], ["updated_at", "2018-06-03 01:37:58.141696"]] + [1m[35m (77.8ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/4 +Completed 302 Found in 83ms (ActiveRecord: 78.6ms) + + +Started GET "/categories/4" for 127.0.0.1 at 2018-06-02 22:37:58 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"4"} + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 4], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 118ms (Views: 115.8ms | ActiveRecord: 0.3ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 22:37:59 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (11.3ms) + Rendered categories/index.html.erb within layouts/application (13.1ms) +Completed 200 OK in 133ms (Views: 130.6ms | ActiveRecord: 0.4ms) + + +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 22:38:01 -0300 +Processing by CategoriesController#new as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (6.9ms) + Rendered categories/new.html.erb within layouts/application (7.9ms) +Completed 200 OK in 156ms (Views: 154.3ms | ActiveRecord: 0.1ms) + + +Started POST "/categories" for 127.0.0.1 at 2018-06-02 22:38:03 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"OA8s+CVhsMZx04WgoeqXiY90SUDqHSMhz8p6Ei+AQpiHArlvQG3zrp+GpZf3F8KG6WQPlbWisLVnfAKZETl8Zg==", "category"=>{"name"=>"bbbbbbb", "description"=>"b"}, "commit"=>"Create Category"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mCategory Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "bbbbbbb"], ["LIMIT", 1]] + [1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "bbbbbbb"], ["description", "b"], ["created_at", "2018-06-03 01:38:03.673248"], ["updated_at", "2018-06-03 01:38:03.673248"]] + [1m[35m (130.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/categories/5 +Completed 302 Found in 136ms (ActiveRecord: 131.1ms) + + +Started GET "/categories/5" for 127.0.0.1 at 2018-06-02 22:38:03 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"5"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 5], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.8ms) +Completed 200 OK in 111ms (Views: 109.1ms | ActiveRecord: 0.2ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 22:38:05 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (2.1ms) + Rendered categories/index.html.erb within layouts/application (3.6ms) +Completed 200 OK in 152ms (Views: 150.2ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:38:11 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%a%')[0m + Rendered categories/_table_categories.html.erb (2.1ms) + Rendered categories/index.js.erb (3.5ms) +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.3ms) + + +Started GET "/categories?utf8=%E2%9C%93&name=b&commit=Search" for 127.0.0.1 at 2018-06-02 22:38:12 -0300 +Processing by CategoriesController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"b", "commit"=>"Search"} + [1m[36mUser Load (0.3ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.js.erb + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE (name LIKE '%b%')[0m + Rendered categories/_table_categories.html.erb (1.7ms) + Rendered categories/index.js.erb (2.6ms) +Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:38:16 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.7ms) + Rendered developers/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 113ms (Views: 111.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 22:38:18 -0300 +Processing by DevelopersController#new as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.6ms) + Rendered developers/new.html.erb within layouts/application (4.0ms) +Completed 200 OK in 101ms (Views: 99.5ms | ActiveRecord: 0.2ms) + + +Started POST "/developers" for 127.0.0.1 at 2018-06-02 22:38:20 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"lEmXglbRbJrY+1GEMHAREIRGa8XkCu/3i8fV2GGmx8ARlJsHZDpGx4MJ9NkgTVwKU7j4AND0qa9/vWxCVqeRCw==", "developer"=>{"name"=>"bbbbbb", "country"=>"bbbbbbb"}, "commit"=>"Create Developer"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "bbbbbb"], ["LIMIT", 1]] + [1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "bbbbbb"], ["country", "bbbbbbb"], ["created_at", "2018-06-03 01:38:20.800072"], ["updated_at", "2018-06-03 01:38:20.800072"]] + [1m[35m (123.2ms)[0m [1m[36mcommit transaction[0m +Redirected to http://localhost:3081/developers/2 +Completed 302 Found in 128ms (ActiveRecord: 124.1ms) + + +Started GET "/developers/2" for 127.0.0.1 at 2018-06-02 22:38:20 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"2"} + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 108ms (Views: 105.7ms | ActiveRecord: 0.3ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:38:22 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.5ms) + Rendered developers/index.html.erb within layouts/application (2.8ms) +Completed 200 OK in 115ms (Views: 113.9ms | ActiveRecord: 0.2ms) + + +Started GET "/developers?utf8=%E2%9C%93&name=aaaa&commit=Search" for 127.0.0.1 at 2018-06-02 22:38:24 -0300 +Processing by DevelopersController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"aaaa", "commit"=>"Search"} + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.js.erb + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE (name LIKE '%aaaa%')[0m + Rendered developers/_table_developers.html.erb (0.8ms) + Rendered developers/index.js.erb (1.7ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms) + + +Started GET "/developers?utf8=%E2%9C%93&name=a&commit=Search" for 127.0.0.1 at 2018-06-02 22:38:26 -0300 +Processing by DevelopersController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"a", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.js.erb + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE (name LIKE '%a%')[0m + Rendered developers/_table_developers.html.erb (1.5ms) + Rendered developers/index.js.erb (2.7ms) +Completed 200 OK in 7ms (Views: 4.3ms | ActiveRecord: 0.4ms) + + +Started GET "/developers?utf8=%E2%9C%93&name=bbb&commit=Search" for 127.0.0.1 at 2018-06-02 22:38:27 -0300 +Processing by DevelopersController#index as JS + Parameters: {"utf8"=>"✓", "name"=>"bbb", "commit"=>"Search"} + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.js.erb + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE (name LIKE '%bbb%')[0m + Rendered developers/_table_developers.html.erb (1.8ms) + Rendered developers/index.js.erb (3.1ms) +Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 0.4ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:38:29 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (3.8ms) + Rendered games/index.html.erb within layouts/application (5.3ms) +Completed 200 OK in 113ms (Views: 111.3ms | ActiveRecord: 0.5ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:39:32 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (3.1ms) + Rendered games/index.html.erb within layouts/application (4.6ms) +Completed 200 OK in 105ms (Views: 103.6ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 22:39:34 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.5ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 111ms (Views: 110.7ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:39:35 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (5.4ms) + Rendered games/index.html.erb within layouts/application (7.8ms) +Completed 200 OK in 130ms (Views: 127.1ms | ActiveRecord: 0.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:39:36 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.7ms) + Rendered developers/index.html.erb within layouts/application (3.4ms) +Completed 200 OK in 106ms (Views: 103.3ms | ActiveRecord: 0.4ms) + + +Started GET "/categories" for 127.0.0.1 at 2018-06-02 22:39:36 -0300 +Processing by CategoriesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/_table_categories.html.erb (1.9ms) + Rendered categories/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 107ms (Views: 105.2ms | ActiveRecord: 0.3ms) + + +Started GET "/prices" for 127.0.0.1 at 2018-06-02 22:39:37 -0300 +Processing by PricesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 3], ["LIMIT", 1]] + Rendered prices/_table_prices.html.erb (6.5ms) + Rendered prices/index.html.erb within layouts/application (8.8ms) +Completed 200 OK in 115ms (Views: 112.2ms | ActiveRecord: 0.6ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:40:41 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (5.4ms) + Rendered games/index.html.erb within layouts/application (7.4ms) +Completed 200 OK in 146ms (Views: 143.6ms | ActiveRecord: 0.6ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 22:40:42 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.3ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 109ms (Views: 108.4ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:40:43 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (5.9ms) + Rendered games/index.html.erb within layouts/application (7.7ms) +Completed 200 OK in 122ms (Views: 120.2ms | ActiveRecord: 0.5ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:40:44 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (1.7ms) + Rendered developers/index.html.erb within layouts/application (3.5ms) +Completed 200 OK in 111ms (Views: 109.5ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2018-06-02 22:40:46 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (1.9ms) + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] +Completed 200 OK in 110ms (Views: 109.4ms | ActiveRecord: 0.1ms) + + +Started GET "/games" for 127.0.0.1 at 2018-06-02 22:40:47 -0300 +Processing by GamesController#index as HTML + [1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + [1m[36mCACHE Developer Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]] + Rendered games/_table_games.html.erb (4.5ms) + Rendered games/index.html.erb within layouts/application (7.0ms) +Completed 200 OK in 117ms (Views: 112.5ms | ActiveRecord: 0.6ms) + + +Started GET "/developers" for 127.0.0.1 at 2018-06-02 22:40:49 -0300 +Processing by DevelopersController#index as HTML + [1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]] + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/_table_developers.html.erb (2.1ms) + Rendered developers/index.html.erb within layouts/application (3.9ms) +Completed 200 OK in 121ms (Views: 119.6ms | ActiveRecord: 0.3ms) + + + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (58.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (64.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m +Migrating to CreateDevelopers (20180602004414) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004414"]] + [1m[35m (55.1ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateGames (20180602004723) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_41b61b6ee6" +FOREIGN KEY ("developer_id") + REFERENCES "developers" ("id") +)[0m + [1m[35m (0.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004723"]] + [1m[35m (84.2ms)[0m [1m[36mcommit transaction[0m +Migrating to CreatePrices (20180602004809) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, CONSTRAINT "fk_rails_55d44a1f59" +FOREIGN KEY ("game_id") + REFERENCES "games" ("id") +)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004809"]] + [1m[35m (64.8ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategories (20180602004848) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.4ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602004848"]] + [1m[35m (70.1ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateCategoryGames (20180602005412) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602005412"]] + [1m[35m (85.3ms)[0m [1m[36mcommit transaction[0m +Migrating to CreateUsers (20180602230646) + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.5ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "role" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20180602230646"]] + [1m[35m (71.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "development"], ["created_at", "2018-06-03 01:42:59.344296"], ["updated_at", "2018-06-03 01:42:59.344296"]] + [1m[35m (191.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_categories_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_categories_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_game_id' AND type='index' +[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_developers_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_developers_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_name' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_name' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_prices_on_game_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_prices_on_game_id' AND type='index' +[0m diff --git a/T5/log/test.log b/T5/log/test.log new file mode 100644 index 0000000000000000000000000000000000000000..b04f0ff736dd7db2c90b7c0b1beb88c43eeb9163 --- /dev/null +++ b/T5/log/test.log @@ -0,0 +1,27059 @@ + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (61.8ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (83.6ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (48.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (49.6ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.2ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (58.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (56.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (41.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (56.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 18:44:35.382326"], ["updated_at", "2018-06-02 18:44:35.382326"]] + [1m[35m (55.1ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 'f', '2018-06-02 18:44:52.541436', '2018-06-02 18:44:52.541436', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', 'f', '2018-06-02 18:44:52.541436', '2018-06-02 18:44:52.541436', 298486374)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2018-06-02 18:44:52.544129', '2018-06-02 18:44:52.544129', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', '2018-06-02 18:44:52.544129', '2018-06-02 18:44:52.544129', 298486374)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2018-06-02 18:44:52.545563', '2018-06-02 18:44:52.545563', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('MyString', 'MyText', '2018-06-02 18:44:52.545563', '2018-06-02 18:44:52.545563', 298486374)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 18:44:52.547477', '2018-06-02 18:44:52.547477', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 18:44:52.547477', '2018-06-02 18:44:52.547477', 298486374)[0m + [1m[35m (57.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.3ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 15:44:52 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (14.9ms) + Rendered categories/new.html.erb within layouts/application (16.9ms) +Completed 200 OK in 325ms (Views: 319.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started PATCH "/categories/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"MyText", "name"=>"MyString"}, "id"=>"980190962"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/980190962 +Completed 302 Found in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/categories/980190962/edit" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"980190962"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (1.4ms) + Rendered categories/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 17ms (Views: 3.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/categories/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"980190962"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.7ms) +Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"MyText", "name"=>"MyString"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "MyString"], ["description", "MyText"], ["created_at", "2018-06-02 18:44:53.174507"], ["updated_at", "2018-06-02 18:44:53.174507"]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/980190963 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" ORDER BY "categories"."id" DESC LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"980190962"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 980190962]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 980190962]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 15ms (ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/games/980190962/edit" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"980190962"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 980190962]] + Rendered games/_form.html.erb (80.8ms) + Rendered games/edit.html.erb within layouts/application (81.5ms) +Completed 200 OK in 85ms (Views: 83.2ms | ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started PATCH "/games/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"MyText", "is_released"=>"false", "name"=>"MyString"}, "id"=>"980190962"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.5ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 980190962]] + Rendered games/_form.html.erb (6.0ms) + Rendered games/edit.html.erb within layouts/application (6.2ms) +Completed 200 OK in 13ms (Views: 7.6ms | ActiveRecord: 0.9ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (3.5ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/games/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"980190962"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (2.1ms) +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"MyText", "is_released"=>"false", "name"=>"MyString"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.6ms) + Rendered games/new.html.erb within layouts/application (5.0ms) +Completed 200 OK in 9ms (Views: 6.7ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mGame Load (0.4ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.5ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.2ms) + Rendered games/new.html.erb within layouts/application (4.3ms) +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.5ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"980190962"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 980190962], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 980190962]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 980190962]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 6ms (ActiveRecord: 0.8ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (2.1ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.5ms) + Rendered prices/new.html.erb within layouts/application (3.1ms) +Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.5ms) + Rendered prices/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"980190962"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 980190962]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/prices/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"980190962"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/prices/980190962/edit" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"980190962"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.7ms) + Rendered prices/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started PATCH "/prices/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"980190962"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/developers/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"980190962"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/developers/980190962/edit" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"980190962"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.3ms) + Rendered developers/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 158ms (Views: 3.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started PATCH "/developers/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"MyString", "name"=>"MyString"}, "id"=>"980190962"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/980190962 +Completed 302 Found in 1ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"MyString", "name"=>"MyString"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "MyString"], ["country", "MyString"], ["created_at", "2018-06-02 18:44:53.626147"], ["updated_at", "2018-06-02 18:44:53.626147"]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/980190963 +Completed 302 Found in 1ms (ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" ORDER BY "developers"."id" DESC LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/980190962" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"980190962"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 980190962]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 980190962]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 980190962], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 15:44:53 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:38:35.342156', '2018-06-02 19:38:35.342156', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:38:35.345265', '2018-06-02 19:38:35.345265', 764988326)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:38:35.345265', '2018-06-02 19:38:35.345265', 72664401)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:38:35.345265', '2018-06-02 19:38:35.345265', 684368614)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:38:35.345265', '2018-06-02 19:38:35.345265', 104233458)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:38:35.345265', '2018-06-02 19:38:35.345265', 69730736)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:38:35.347286', '2018-06-02 19:38:35.347286', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:38:35.347286', '2018-06-02 19:38:35.347286', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:38:35.347286', '2018-06-02 19:38:35.347286', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:38:35.347286', '2018-06-02 19:38:35.347286', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:38:35.347286', '2018-06-02 19:38:35.347286', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:38:35.349153', '2018-06-02 19:38:35.349153', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:38:35.349153', '2018-06-02 19:38:35.349153', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:38:35.349153', '2018-06-02 19:38:35.349153', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:38:35.349153', '2018-06-02 19:38:35.349153', 845707144)[0m + [1m[35m (51.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:39:20.373216', '2018-06-02 19:39:20.373216', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:39:20.376644', '2018-06-02 19:39:20.376644', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:39:20.376644', '2018-06-02 19:39:20.376644', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:39:20.376644', '2018-06-02 19:39:20.376644', 777399603)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:39:20.376644', '2018-06-02 19:39:20.376644', 189923627)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:39:20.376644', '2018-06-02 19:39:20.376644', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:39:20.378615', '2018-06-02 19:39:20.378615', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:39:20.378615', '2018-06-02 19:39:20.378615', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:39:20.378615', '2018-06-02 19:39:20.378615', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:39:20.378615', '2018-06-02 19:39:20.378615', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:39:20.378615', '2018-06-02 19:39:20.378615', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:20.380515', '2018-06-02 19:39:20.380515', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:39:20.380515', '2018-06-02 19:39:20.380515', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:20.380515', '2018-06-02 19:39:20.380515', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:20.380515', '2018-06-02 19:39:20.380515', 845707144)[0m + [1m[35m (41.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:39:23.698065', '2018-06-02 19:39:23.698065', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:39:23.701312', '2018-06-02 19:39:23.701312', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:39:23.701312', '2018-06-02 19:39:23.701312', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:39:23.701312', '2018-06-02 19:39:23.701312', 777399603)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:39:23.701312', '2018-06-02 19:39:23.701312', 189923627)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:39:23.701312', '2018-06-02 19:39:23.701312', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:39:23.703382', '2018-06-02 19:39:23.703382', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:39:23.703382', '2018-06-02 19:39:23.703382', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:39:23.703382', '2018-06-02 19:39:23.703382', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:39:23.703382', '2018-06-02 19:39:23.703382', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:39:23.703382', '2018-06-02 19:39:23.703382', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:23.705243', '2018-06-02 19:39:23.705243', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:39:23.705243', '2018-06-02 19:39:23.705243', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:23.705243', '2018-06-02 19:39:23.705243', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:23.705243', '2018-06-02 19:39:23.705243', 845707144)[0m + [1m[35m (58.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:39:33.994496', '2018-06-02 19:39:33.994496', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:39:33.997630', '2018-06-02 19:39:33.997630', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:39:33.997630', '2018-06-02 19:39:33.997630', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:39:33.997630', '2018-06-02 19:39:33.997630', 777399603)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:39:33.997630', '2018-06-02 19:39:33.997630', 189923627)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:39:33.997630', '2018-06-02 19:39:33.997630', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:39:33.999568', '2018-06-02 19:39:33.999568', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:39:33.999568', '2018-06-02 19:39:33.999568', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:39:33.999568', '2018-06-02 19:39:33.999568', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:39:33.999568', '2018-06-02 19:39:33.999568', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:39:33.999568', '2018-06-02 19:39:33.999568', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:34.001498', '2018-06-02 19:39:34.001498', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:39:34.001498', '2018-06-02 19:39:34.001498', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:34.001498', '2018-06-02 19:39:34.001498', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:34.001498', '2018-06-02 19:39:34.001498', 845707144)[0m + [1m[35m (38.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:39:59.235534', '2018-06-02 19:39:59.235534', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:39:59.238557', '2018-06-02 19:39:59.238557', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:39:59.238557', '2018-06-02 19:39:59.238557', 1025681176)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:39:59.238557', '2018-06-02 19:39:59.238557', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:39:59.238557', '2018-06-02 19:39:59.238557', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:39:59.238557', '2018-06-02 19:39:59.238557', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:39:59.240406', '2018-06-02 19:39:59.240406', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:39:59.240406', '2018-06-02 19:39:59.240406', 530513826)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:39:59.240406', '2018-06-02 19:39:59.240406', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:39:59.240406', '2018-06-02 19:39:59.240406', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:39:59.240406', '2018-06-02 19:39:59.240406', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:59.242391', '2018-06-02 19:39:59.242391', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:39:59.242391', '2018-06-02 19:39:59.242391', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:59.242391', '2018-06-02 19:39:59.242391', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:39:59.242391', '2018-06-02 19:39:59.242391', 845707144)[0m + [1m[35m (34.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', NULL, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', NULL, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', NULL, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', NULL, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 761375089)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "developer_id", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', NULL, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 727159366)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 107438027)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:42:00.400307', '2018-06-02 19:42:00.400307', 196432181)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:42:00.403516', '2018-06-02 19:42:00.403516', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:42:00.403516', '2018-06-02 19:42:00.403516', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:42:00.403516', '2018-06-02 19:42:00.403516', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:42:00.403516', '2018-06-02 19:42:00.403516', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:42:00.403516', '2018-06-02 19:42:00.403516', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:42:00.405371', '2018-06-02 19:42:00.405371', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:42:00.405371', '2018-06-02 19:42:00.405371', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:42:00.405371', '2018-06-02 19:42:00.405371', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:42:00.405371', '2018-06-02 19:42:00.405371', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:42:00.405371', '2018-06-02 19:42:00.405371', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:42:00.407352', '2018-06-02 19:42:00.407352', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 0, 1, NULL, '2018-06-02 19:42:00.407352', '2018-06-02 19:42:00.407352', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:42:00.407352', '2018-06-02 19:42:00.407352', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "game_id", "created_at", "updated_at", "id") VALUES (1, 1, NULL, '2018-06-02 19:42:00.407352', '2018-06-02 19:42:00.407352', 845707144)[0m + [1m[35m (41.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 604672405)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 19:58:43.042797', '2018-06-02 19:58:43.042797', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 19:58:43.047038', '2018-06-02 19:58:43.047038', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 19:58:43.047038', '2018-06-02 19:58:43.047038', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 19:58:43.047038', '2018-06-02 19:58:43.047038', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 19:58:43.047038', '2018-06-02 19:58:43.047038', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 19:58:43.047038', '2018-06-02 19:58:43.047038', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 19:58:43.049689', '2018-06-02 19:58:43.049689', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 19:58:43.049689', '2018-06-02 19:58:43.049689', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 19:58:43.049689', '2018-06-02 19:58:43.049689', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 19:58:43.049689', '2018-06-02 19:58:43.049689', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 19:58:43.049689', '2018-06-02 19:58:43.049689', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 19:58:43.052325', '2018-06-02 19:58:43.052325', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 19:58:43.052325', '2018-06-02 19:58:43.052325', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 19:58:43.052325', '2018-06-02 19:58:43.052325', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 19:58:43.052325', '2018-06-02 19:58:43.052325', 845707144)[0m + [1m[35m (47.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:09:05.816964', '2018-06-02 20:09:05.816964', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 265087534)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:09:05.820348', '2018-06-02 20:09:05.820348', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:09:05.822456', '2018-06-02 20:09:05.822456', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:09:05.822456', '2018-06-02 20:09:05.822456', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:09:05.822456', '2018-06-02 20:09:05.822456', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:09:05.822456', '2018-06-02 20:09:05.822456', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:09:05.822456', '2018-06-02 20:09:05.822456', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:05.824378', '2018-06-02 20:09:05.824378', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:09:05.824378', '2018-06-02 20:09:05.824378', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:05.824378', '2018-06-02 20:09:05.824378', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:05.824378', '2018-06-02 20:09:05.824378', 845707144)[0m + [1m[35m (57.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:09:49.234611', '2018-06-02 20:09:49.234611', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:09:49.237921', '2018-06-02 20:09:49.237921', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:09:49.239946', '2018-06-02 20:09:49.239946', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:09:49.239946', '2018-06-02 20:09:49.239946', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:09:49.239946', '2018-06-02 20:09:49.239946', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:09:49.239946', '2018-06-02 20:09:49.239946', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:09:49.239946', '2018-06-02 20:09:49.239946', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:49.241847', '2018-06-02 20:09:49.241847', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:09:49.241847', '2018-06-02 20:09:49.241847', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:49.241847', '2018-06-02 20:09:49.241847', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:09:49.241847', '2018-06-02 20:09:49.241847', 845707144)[0m + [1m[35m (61.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:10:21.629529', '2018-06-02 20:10:21.629529', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:10:21.632789', '2018-06-02 20:10:21.632789', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:10:21.634921', '2018-06-02 20:10:21.634921', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:10:21.634921', '2018-06-02 20:10:21.634921', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:10:21.634921', '2018-06-02 20:10:21.634921', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:10:21.634921', '2018-06-02 20:10:21.634921', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:10:21.634921', '2018-06-02 20:10:21.634921', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:21.636875', '2018-06-02 20:10:21.636875', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:10:21.636875', '2018-06-02 20:10:21.636875', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:21.636875', '2018-06-02 20:10:21.636875', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:21.636875', '2018-06-02 20:10:21.636875', 845707144)[0m + [1m[35m (44.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:10:57.353134', '2018-06-02 20:10:57.353134', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:10:57.356332', '2018-06-02 20:10:57.356332', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:10:57.358438', '2018-06-02 20:10:57.358438', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:10:57.358438', '2018-06-02 20:10:57.358438', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:10:57.358438', '2018-06-02 20:10:57.358438', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:10:57.358438', '2018-06-02 20:10:57.358438', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:10:57.358438', '2018-06-02 20:10:57.358438', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:57.360349', '2018-06-02 20:10:57.360349', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:10:57.360349', '2018-06-02 20:10:57.360349', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:57.360349', '2018-06-02 20:10:57.360349', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:10:57.360349', '2018-06-02 20:10:57.360349', 845707144)[0m + [1m[35m (42.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:10:57.420915"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:10:57.428602"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:11:29.147533', '2018-06-02 20:11:29.147533', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:11:29.150803', '2018-06-02 20:11:29.150803', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:11:29.153037', '2018-06-02 20:11:29.153037', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:11:29.153037', '2018-06-02 20:11:29.153037', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:11:29.153037', '2018-06-02 20:11:29.153037', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:11:29.153037', '2018-06-02 20:11:29.153037', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:11:29.153037', '2018-06-02 20:11:29.153037', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:29.155088', '2018-06-02 20:11:29.155088', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:11:29.155088', '2018-06-02 20:11:29.155088', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:29.155088', '2018-06-02 20:11:29.155088', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:29.155088', '2018-06-02 20:11:29.155088', 845707144)[0m + [1m[35m (51.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:11:29.227927"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:11:29.231253"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:11:46.448523', '2018-06-02 20:11:46.448523', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:11:46.452087', '2018-06-02 20:11:46.452087', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:11:46.454190', '2018-06-02 20:11:46.454190', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:11:46.454190', '2018-06-02 20:11:46.454190', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:11:46.454190', '2018-06-02 20:11:46.454190', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:11:46.454190', '2018-06-02 20:11:46.454190', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:11:46.454190', '2018-06-02 20:11:46.454190', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:46.456104', '2018-06-02 20:11:46.456104', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:11:46.456104', '2018-06-02 20:11:46.456104', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:46.456104', '2018-06-02 20:11:46.456104', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:11:46.456104', '2018-06-02 20:11:46.456104', 845707144)[0m + [1m[35m (35.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:11:46.518879"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:11:46.530137"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 584880372)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:12:26.282926', '2018-06-02 20:12:26.282926', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 265087534)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:12:26.286068', '2018-06-02 20:12:26.286068', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:12:26.288223', '2018-06-02 20:12:26.288223', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:12:26.288223', '2018-06-02 20:12:26.288223', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:12:26.288223', '2018-06-02 20:12:26.288223', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:12:26.288223', '2018-06-02 20:12:26.288223', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:12:26.288223', '2018-06-02 20:12:26.288223', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:26.290454', '2018-06-02 20:12:26.290454', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:12:26.290454', '2018-06-02 20:12:26.290454', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:26.290454', '2018-06-02 20:12:26.290454', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:26.290454', '2018-06-02 20:12:26.290454', 845707144)[0m + [1m[35m (55.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:12:26.371995"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:12:26.378793"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:12:43.808744', '2018-06-02 20:12:43.808744', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:12:43.812703', '2018-06-02 20:12:43.812703', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:12:43.815987', '2018-06-02 20:12:43.815987', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:12:43.815987', '2018-06-02 20:12:43.815987', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:12:43.815987', '2018-06-02 20:12:43.815987', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:12:43.815987', '2018-06-02 20:12:43.815987', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:12:43.815987', '2018-06-02 20:12:43.815987', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:43.818302', '2018-06-02 20:12:43.818302', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:12:43.818302', '2018-06-02 20:12:43.818302', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:43.818302', '2018-06-02 20:12:43.818302', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:12:43.818302', '2018-06-02 20:12:43.818302', 845707144)[0m + [1m[35m (55.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:12:43.896737"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:12:43.908255"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:13:00.994058', '2018-06-02 20:13:00.994058', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:13:00.998232', '2018-06-02 20:13:00.998232', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:13:01.000359', '2018-06-02 20:13:01.000359', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:13:01.000359', '2018-06-02 20:13:01.000359', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:13:01.000359', '2018-06-02 20:13:01.000359', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:13:01.000359', '2018-06-02 20:13:01.000359', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:13:01.000359', '2018-06-02 20:13:01.000359', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:01.002326', '2018-06-02 20:13:01.002326', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:13:01.002326', '2018-06-02 20:13:01.002326', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:01.002326', '2018-06-02 20:13:01.002326', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:01.002326', '2018-06-02 20:13:01.002326', 845707144)[0m + [1m[35m (47.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:01.073390"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:01.085966"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:13:11.743695', '2018-06-02 20:13:11.743695', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:13:11.747068', '2018-06-02 20:13:11.747068', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:13:11.749166', '2018-06-02 20:13:11.749166', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:13:11.749166', '2018-06-02 20:13:11.749166', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:13:11.749166', '2018-06-02 20:13:11.749166', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:13:11.749166', '2018-06-02 20:13:11.749166', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:13:11.749166', '2018-06-02 20:13:11.749166', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:11.751121', '2018-06-02 20:13:11.751121', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:13:11.751121', '2018-06-02 20:13:11.751121', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:11.751121', '2018-06-02 20:13:11.751121', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:11.751121', '2018-06-02 20:13:11.751121', 845707144)[0m + [1m[35m (50.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:11.819849"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:11.838888"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:13:36.177988', '2018-06-02 20:13:36.177988', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 1025681176)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:13:36.182642', '2018-06-02 20:13:36.182642', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:13:36.185048', '2018-06-02 20:13:36.185048', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:13:36.185048', '2018-06-02 20:13:36.185048', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:13:36.185048', '2018-06-02 20:13:36.185048', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:13:36.185048', '2018-06-02 20:13:36.185048', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:13:36.185048', '2018-06-02 20:13:36.185048', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:36.187193', '2018-06-02 20:13:36.187193', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:13:36.187193', '2018-06-02 20:13:36.187193', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:36.187193', '2018-06-02 20:13:36.187193', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:36.187193', '2018-06-02 20:13:36.187193', 845707144)[0m + [1m[35m (41.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:36.249851"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:36.254215"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:13:49.579235', '2018-06-02 20:13:49.579235', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:13:49.582442', '2018-06-02 20:13:49.582442', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:13:49.584543', '2018-06-02 20:13:49.584543', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:13:49.584543', '2018-06-02 20:13:49.584543', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:13:49.584543', '2018-06-02 20:13:49.584543', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:13:49.584543', '2018-06-02 20:13:49.584543', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:13:49.584543', '2018-06-02 20:13:49.584543', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:49.586451', '2018-06-02 20:13:49.586451', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:13:49.586451', '2018-06-02 20:13:49.586451', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:49.586451', '2018-06-02 20:13:49.586451', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:13:49.586451', '2018-06-02 20:13:49.586451', 845707144)[0m + [1m[35m (52.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:49.657306"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:13:49.667070"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:14:32.000992', '2018-06-02 20:14:32.000992', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:14:32.004391', '2018-06-02 20:14:32.004391', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:14:32.006514', '2018-06-02 20:14:32.006514', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:14:32.006514', '2018-06-02 20:14:32.006514', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:14:32.006514', '2018-06-02 20:14:32.006514', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:14:32.006514', '2018-06-02 20:14:32.006514', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:14:32.006514', '2018-06-02 20:14:32.006514', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:32.008395', '2018-06-02 20:14:32.008395', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:14:32.008395', '2018-06-02 20:14:32.008395', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:32.008395', '2018-06-02 20:14:32.008395', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:32.008395', '2018-06-02 20:14:32.008395', 845707144)[0m + [1m[35m (43.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:32.070823"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:32.088014"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (3.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:14:48.530595', '2018-06-02 20:14:48.530595', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:14:48.533744', '2018-06-02 20:14:48.533744', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:14:48.535800', '2018-06-02 20:14:48.535800', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:14:48.535800', '2018-06-02 20:14:48.535800', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:14:48.535800', '2018-06-02 20:14:48.535800', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:14:48.535800', '2018-06-02 20:14:48.535800', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:14:48.535800', '2018-06-02 20:14:48.535800', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:48.537804', '2018-06-02 20:14:48.537804', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:14:48.537804', '2018-06-02 20:14:48.537804', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:48.537804', '2018-06-02 20:14:48.537804', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:48.537804', '2018-06-02 20:14:48.537804', 845707144)[0m + [1m[35m (49.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:48.607814"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:48.627638"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:14:59.261214', '2018-06-02 20:14:59.261214', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 265087534)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:14:59.264414', '2018-06-02 20:14:59.264414', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:14:59.266502', '2018-06-02 20:14:59.266502', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:14:59.266502', '2018-06-02 20:14:59.266502', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:14:59.266502', '2018-06-02 20:14:59.266502', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:14:59.266502', '2018-06-02 20:14:59.266502', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:14:59.266502', '2018-06-02 20:14:59.266502', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:59.268381', '2018-06-02 20:14:59.268381', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:14:59.268381', '2018-06-02 20:14:59.268381', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:59.268381', '2018-06-02 20:14:59.268381', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:14:59.268381', '2018-06-02 20:14:59.268381', 845707144)[0m + [1m[35m (45.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:59.331837"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:14:59.348155"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:15:17.260323', '2018-06-02 20:15:17.260323', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 265087534)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:15:17.263733', '2018-06-02 20:15:17.263733', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:15:17.265868', '2018-06-02 20:15:17.265868', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:15:17.265868', '2018-06-02 20:15:17.265868', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:15:17.265868', '2018-06-02 20:15:17.265868', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:15:17.265868', '2018-06-02 20:15:17.265868', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:15:17.265868', '2018-06-02 20:15:17.265868', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:15:17.267773', '2018-06-02 20:15:17.267773', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:15:17.267773', '2018-06-02 20:15:17.267773', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:15:17.267773', '2018-06-02 20:15:17.267773', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:15:17.267773', '2018-06-02 20:15:17.267773', 845707144)[0m + [1m[35m (39.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:15:17.337574"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "developers" SET "id" = ?, "updated_at" = ? WHERE "developers"."id" = ?[0m [["id", 0], ["updated_at", "2018-06-02 20:15:17.340744"], ["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 0], ["updated_at", "2018-06-02 20:15:17.346127"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:18:05.759047', '2018-06-02 20:18:05.759047', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:18:05.762604', '2018-06-02 20:18:05.762604', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:18:05.764876', '2018-06-02 20:18:05.764876', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:18:05.764876', '2018-06-02 20:18:05.764876', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:18:05.764876', '2018-06-02 20:18:05.764876', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:18:05.764876', '2018-06-02 20:18:05.764876', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:18:05.764876', '2018-06-02 20:18:05.764876', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:05.766961', '2018-06-02 20:18:05.766961', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:18:05.766961', '2018-06-02 20:18:05.766961', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:05.766961', '2018-06-02 20:18:05.766961', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:05.766961', '2018-06-02 20:18:05.766961', 845707144)[0m + [1m[35m (59.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:18:05.855401"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "developers" SET "id" = ?, "updated_at" = ? WHERE "developers"."id" = ?[0m [["id", 0], ["updated_at", "2018-06-02 20:18:05.858196"], ["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 0], ["updated_at", "2018-06-02 20:18:05.860343"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:18:16.053650', '2018-06-02 20:18:16.053650', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:18:16.056841', '2018-06-02 20:18:16.056841', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:18:16.058973', '2018-06-02 20:18:16.058973', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:18:16.058973', '2018-06-02 20:18:16.058973', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:18:16.058973', '2018-06-02 20:18:16.058973', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:18:16.058973', '2018-06-02 20:18:16.058973', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:18:16.058973', '2018-06-02 20:18:16.058973', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:16.060906', '2018-06-02 20:18:16.060906', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:18:16.060906', '2018-06-02 20:18:16.060906', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:16.060906', '2018-06-02 20:18:16.060906', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:18:16.060906', '2018-06-02 20:18:16.060906', 845707144)[0m + [1m[35m (50.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:18:16.139408"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "developers" SET "id" = ?, "updated_at" = ? WHERE "developers"."id" = ?[0m [["id", 0], ["updated_at", "2018-06-02 20:18:16.147527"], ["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 0], ["updated_at", "2018-06-02 20:18:16.152918"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:19:04.869170', '2018-06-02 20:19:04.869170', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:19:04.873613', '2018-06-02 20:19:04.873613', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:19:04.876826', '2018-06-02 20:19:04.876826', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:19:04.876826', '2018-06-02 20:19:04.876826', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:19:04.876826', '2018-06-02 20:19:04.876826', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:19:04.876826', '2018-06-02 20:19:04.876826', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:19:04.876826', '2018-06-02 20:19:04.876826', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:04.879743', '2018-06-02 20:19:04.879743', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:19:04.879743', '2018-06-02 20:19:04.879743', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:04.879743', '2018-06-02 20:19:04.879743', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:04.879743', '2018-06-02 20:19:04.879743', 845707144)[0m + [1m[35m (36.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:04.934965"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:04.947155"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:19:17.762664', '2018-06-02 20:19:17.762664', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:19:17.766927', '2018-06-02 20:19:17.766927', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:19:17.769009', '2018-06-02 20:19:17.769009', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:19:17.769009', '2018-06-02 20:19:17.769009', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:19:17.769009', '2018-06-02 20:19:17.769009', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:19:17.769009', '2018-06-02 20:19:17.769009', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:19:17.769009', '2018-06-02 20:19:17.769009', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:17.770962', '2018-06-02 20:19:17.770962', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:19:17.770962', '2018-06-02 20:19:17.770962', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:17.770962', '2018-06-02 20:19:17.770962', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:17.770962', '2018-06-02 20:19:17.770962', 845707144)[0m + [1m[35m (56.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:17.852142"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:17.859016"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "is_released" = ?, "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["is_released", "t"], ["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:17.860522"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:19:47.812360', '2018-06-02 20:19:47.812360', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:19:47.815622', '2018-06-02 20:19:47.815622', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:19:47.817774', '2018-06-02 20:19:47.817774', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:19:47.817774', '2018-06-02 20:19:47.817774', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:19:47.817774', '2018-06-02 20:19:47.817774', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:19:47.817774', '2018-06-02 20:19:47.817774', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:19:47.817774', '2018-06-02 20:19:47.817774', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:47.819658', '2018-06-02 20:19:47.819658', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:19:47.819658', '2018-06-02 20:19:47.819658', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:47.819658', '2018-06-02 20:19:47.819658', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:19:47.819658', '2018-06-02 20:19:47.819658', 845707144)[0m + [1m[35m (52.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 241467919], ["updated_at", "2018-06-02 20:19:47.906900"], ["id", 634109592]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:47.910774"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:47.915069"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:19:47.916563"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:22:27.005352', '2018-06-02 20:22:27.005352', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:22:27.008486', '2018-06-02 20:22:27.008486', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:22:27.012099', '2018-06-02 20:22:27.012099', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:22:27.012099', '2018-06-02 20:22:27.012099', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:22:27.012099', '2018-06-02 20:22:27.012099', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:22:27.012099', '2018-06-02 20:22:27.012099', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:22:27.012099', '2018-06-02 20:22:27.012099', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:27.015418', '2018-06-02 20:22:27.015418', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:22:27.015418', '2018-06-02 20:22:27.015418', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:27.015418', '2018-06-02 20:22:27.015418', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:27.015418', '2018-06-02 20:22:27.015418', 845707144)[0m + [1m[35m (57.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:27.096599"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:27.107123"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:27.108660"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:22:29.872625', '2018-06-02 20:22:29.872625', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:22:29.875764', '2018-06-02 20:22:29.875764', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:22:29.877970', '2018-06-02 20:22:29.877970', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:22:29.877970', '2018-06-02 20:22:29.877970', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:22:29.877970', '2018-06-02 20:22:29.877970', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:22:29.877970', '2018-06-02 20:22:29.877970', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:22:29.877970', '2018-06-02 20:22:29.877970', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:29.880064', '2018-06-02 20:22:29.880064', 476452521)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:22:29.880064', '2018-06-02 20:22:29.880064', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:29.880064', '2018-06-02 20:22:29.880064', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:22:29.880064', '2018-06-02 20:22:29.880064', 845707144)[0m + [1m[35m (50.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:29.958159"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:29.965113"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:22:29.966668"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:23:35.343074', '2018-06-02 20:23:35.343074', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:23:35.346326', '2018-06-02 20:23:35.346326', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:23:35.348385', '2018-06-02 20:23:35.348385', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:23:35.348385', '2018-06-02 20:23:35.348385', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:23:35.348385', '2018-06-02 20:23:35.348385', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:23:35.348385', '2018-06-02 20:23:35.348385', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:23:35.348385', '2018-06-02 20:23:35.348385', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:23:35.350395', '2018-06-02 20:23:35.350395', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:23:35.350395', '2018-06-02 20:23:35.350395', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:23:35.350395', '2018-06-02 20:23:35.350395', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:23:35.350395', '2018-06-02 20:23:35.350395', 845707144)[0m + [1m[35m (54.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:23:35.423856"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:23:35.437043"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:23:35.438994"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:25:38.239984', '2018-06-02 20:25:38.239984', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:25:38.243164', '2018-06-02 20:25:38.243164', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:25:38.245208', '2018-06-02 20:25:38.245208', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:25:38.245208', '2018-06-02 20:25:38.245208', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:25:38.245208', '2018-06-02 20:25:38.245208', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:25:38.245208', '2018-06-02 20:25:38.245208', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:25:38.245208', '2018-06-02 20:25:38.245208', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:25:38.247248', '2018-06-02 20:25:38.247248', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:25:38.247248', '2018-06-02 20:25:38.247248', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:25:38.247248', '2018-06-02 20:25:38.247248', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:25:38.247248', '2018-06-02 20:25:38.247248', 845707144)[0m + [1m[35m (128.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:25:38.411804"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:25:38.413972"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:25:38.419387"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:26:51.529639', '2018-06-02 20:26:51.529639', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:26:51.532726', '2018-06-02 20:26:51.532726', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:26:51.534936', '2018-06-02 20:26:51.534936', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:26:51.534936', '2018-06-02 20:26:51.534936', 530513826)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:26:51.534936', '2018-06-02 20:26:51.534936', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:26:51.534936', '2018-06-02 20:26:51.534936', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:26:51.534936', '2018-06-02 20:26:51.534936', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:26:51.536823', '2018-06-02 20:26:51.536823', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:26:51.536823', '2018-06-02 20:26:51.536823', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:26:51.536823', '2018-06-02 20:26:51.536823', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:26:51.536823', '2018-06-02 20:26:51.536823', 845707144)[0m + [1m[35m (46.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:26:51.614248"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:26:51.616141"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:26:51.621880"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 936641284)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:27:03.270372', '2018-06-02 20:27:03.270372', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:27:03.273715', '2018-06-02 20:27:03.273715', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:27:03.275798', '2018-06-02 20:27:03.275798', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:27:03.275798', '2018-06-02 20:27:03.275798', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:27:03.275798', '2018-06-02 20:27:03.275798', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:27:03.275798', '2018-06-02 20:27:03.275798', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:27:03.275798', '2018-06-02 20:27:03.275798', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:03.277782', '2018-06-02 20:27:03.277782', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:27:03.277782', '2018-06-02 20:27:03.277782', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:03.277782', '2018-06-02 20:27:03.277782', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:03.277782', '2018-06-02 20:27:03.277782', 845707144)[0m + [1m[35m (31.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:27:03.341178"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:27:03.343257"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:27:03.346866"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:27:41.741196', '2018-06-02 20:27:41.741196', 600038034)[0m + [1m[36mFixture Delete (0.3ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:27:41.744502', '2018-06-02 20:27:41.744502', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:27:41.746790', '2018-06-02 20:27:41.746790', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:27:41.746790', '2018-06-02 20:27:41.746790', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:27:41.746790', '2018-06-02 20:27:41.746790', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:27:41.746790', '2018-06-02 20:27:41.746790', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:27:41.746790', '2018-06-02 20:27:41.746790', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:41.748676', '2018-06-02 20:27:41.748676', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:27:41.748676', '2018-06-02 20:27:41.748676', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:41.748676', '2018-06-02 20:27:41.748676', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:27:41.748676', '2018-06-02 20:27:41.748676', 845707144)[0m + [1m[35m (48.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:27:41.832000"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:27:41.833911"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "batata"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "name" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["name", "batata"], ["updated_at", "2018-06-02 20:27:41.837255"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "batata"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (67.6ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (58.5ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (66.5ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (82.8ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (66.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (66.5ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (66.2ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (66.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (79.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (46.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 20:28:15.079064"], ["updated_at", "2018-06-02 20:28:15.079064"]] + [1m[35m (51.1ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:28:15.229239', '2018-06-02 20:28:15.229239', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:28:15.232510', '2018-06-02 20:28:15.232510', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:28:15.234660', '2018-06-02 20:28:15.234660', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:28:15.234660', '2018-06-02 20:28:15.234660', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:28:15.234660', '2018-06-02 20:28:15.234660', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:28:15.234660', '2018-06-02 20:28:15.234660', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:28:15.234660', '2018-06-02 20:28:15.234660', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:15.236525', '2018-06-02 20:28:15.236525', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:28:15.236525', '2018-06-02 20:28:15.236525', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:15.236525', '2018-06-02 20:28:15.236525', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:15.236525', '2018-06-02 20:28:15.236525', 845707144)[0m + [1m[35m (56.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:15.424826"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:15.432014"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:15.433717"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:28:35.230120', '2018-06-02 20:28:35.230120', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:28:35.233256', '2018-06-02 20:28:35.233256', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:28:35.235474', '2018-06-02 20:28:35.235474', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:28:35.235474', '2018-06-02 20:28:35.235474', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:28:35.235474', '2018-06-02 20:28:35.235474', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:28:35.235474', '2018-06-02 20:28:35.235474', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:28:35.235474', '2018-06-02 20:28:35.235474', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:35.237360', '2018-06-02 20:28:35.237360', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:28:35.237360', '2018-06-02 20:28:35.237360', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:35.237360', '2018-06-02 20:28:35.237360', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:28:35.237360', '2018-06-02 20:28:35.237360', 845707144)[0m + [1m[35m (61.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:35.336198"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:35.338098"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:28:35.341958"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:35:14.859347', '2018-06-02 20:35:14.859347', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:35:14.862676', '2018-06-02 20:35:14.862676', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:35:14.864806', '2018-06-02 20:35:14.864806', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:35:14.864806', '2018-06-02 20:35:14.864806', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:35:14.864806', '2018-06-02 20:35:14.864806', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:35:14.864806', '2018-06-02 20:35:14.864806', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:35:14.864806', '2018-06-02 20:35:14.864806', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:14.866710', '2018-06-02 20:35:14.866710', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:35:14.866710', '2018-06-02 20:35:14.866710', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:14.866710', '2018-06-02 20:35:14.866710', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:14.866710', '2018-06-02 20:35:14.866710', 845707144)[0m + [1m[35m (50.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:14.940199"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:14.946395"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:14.948271"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:35:31.024288', '2018-06-02 20:35:31.024288', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 177417774)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:35:31.027505', '2018-06-02 20:35:31.027505', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:35:31.029752', '2018-06-02 20:35:31.029752', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:35:31.029752', '2018-06-02 20:35:31.029752', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:35:31.029752', '2018-06-02 20:35:31.029752', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:35:31.029752', '2018-06-02 20:35:31.029752', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:35:31.029752', '2018-06-02 20:35:31.029752', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:31.031634', '2018-06-02 20:35:31.031634', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:35:31.031634', '2018-06-02 20:35:31.031634', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:31.031634', '2018-06-02 20:35:31.031634', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:35:31.031634', '2018-06-02 20:35:31.031634', 845707144)[0m + [1m[35m (158.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:31.214945"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:31.216882"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:35:31.230674"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:36:36.102437', '2018-06-02 20:36:36.102437', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 1025681176)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:36:36.105848', '2018-06-02 20:36:36.105848', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:36:36.107913', '2018-06-02 20:36:36.107913', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:36:36.107913', '2018-06-02 20:36:36.107913', 530513826)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:36:36.107913', '2018-06-02 20:36:36.107913', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:36:36.107913', '2018-06-02 20:36:36.107913', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:36:36.107913', '2018-06-02 20:36:36.107913', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:36:36.109810', '2018-06-02 20:36:36.109810', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:36:36.109810', '2018-06-02 20:36:36.109810', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:36:36.109810', '2018-06-02 20:36:36.109810', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:36:36.109810', '2018-06-02 20:36:36.109810', 845707144)[0m + [1m[35m (54.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:36:36.197753"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:36:36.202631"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:36:36.207018"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:38:47.114619', '2018-06-02 20:38:47.114619', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:38:47.117782', '2018-06-02 20:38:47.117782', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:38:47.119875', '2018-06-02 20:38:47.119875', 475197514)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:38:47.119875', '2018-06-02 20:38:47.119875', 530513826)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:38:47.119875', '2018-06-02 20:38:47.119875', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:38:47.119875', '2018-06-02 20:38:47.119875', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:38:47.119875', '2018-06-02 20:38:47.119875', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:38:47.121873', '2018-06-02 20:38:47.121873', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:38:47.121873', '2018-06-02 20:38:47.121873', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:38:47.121873', '2018-06-02 20:38:47.121873', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:38:47.121873', '2018-06-02 20:38:47.121873', 845707144)[0m + [1m[35m (56.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:38:47.214934"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:38:47.216910"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:38:47.220361"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:39:11.395446', '2018-06-02 20:39:11.395446', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:39:11.398634', '2018-06-02 20:39:11.398634', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:39:11.400740', '2018-06-02 20:39:11.400740', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:39:11.400740', '2018-06-02 20:39:11.400740', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:39:11.400740', '2018-06-02 20:39:11.400740', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:39:11.400740', '2018-06-02 20:39:11.400740', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:39:11.400740', '2018-06-02 20:39:11.400740', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:11.402678', '2018-06-02 20:39:11.402678', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:39:11.402678', '2018-06-02 20:39:11.402678', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:11.402678', '2018-06-02 20:39:11.402678', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:11.402678', '2018-06-02 20:39:11.402678', 845707144)[0m + [1m[35m (57.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."test" IS NULL LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:39:32.271064', '2018-06-02 20:39:32.271064', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 1025681176)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:39:32.274223', '2018-06-02 20:39:32.274223', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:39:32.276288', '2018-06-02 20:39:32.276288', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:39:32.276288', '2018-06-02 20:39:32.276288', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:39:32.276288', '2018-06-02 20:39:32.276288', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:39:32.276288', '2018-06-02 20:39:32.276288', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:39:32.276288', '2018-06-02 20:39:32.276288', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:32.278190', '2018-06-02 20:39:32.278190', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:39:32.278190', '2018-06-02 20:39:32.278190', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:32.278190', '2018-06-02 20:39:32.278190', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:39:32.278190', '2018-06-02 20:39:32.278190', 845707144)[0m + [1m[35m (55.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["name", "Divine Divinity"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["name", "Dark Souls"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:39:32.361310"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:39:32.366641"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["name", "Fallout 2"], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:39:32.368432"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["name", "Divinity II"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."name" = ? LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["name", "Pokemon Ruby"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) AND "games"."name" IS NULL LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:40:26.019595', '2018-06-02 20:40:26.019595', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:40:26.022860', '2018-06-02 20:40:26.022860', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:40:26.024962', '2018-06-02 20:40:26.024962', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:40:26.024962', '2018-06-02 20:40:26.024962', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:40:26.024962', '2018-06-02 20:40:26.024962', 496405980)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:40:26.024962', '2018-06-02 20:40:26.024962', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:40:26.024962', '2018-06-02 20:40:26.024962', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:40:26.026887', '2018-06-02 20:40:26.026887', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:40:26.026887', '2018-06-02 20:40:26.026887', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:40:26.026887', '2018-06-02 20:40:26.026887', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:40:26.026887', '2018-06-02 20:40:26.026887', 845707144)[0m + [1m[35m (54.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:40:26.100794"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:40:26.112119"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:40:26.114092"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:41:00.016511', '2018-06-02 20:41:00.016511', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:41:00.019589', '2018-06-02 20:41:00.019589', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:41:00.021690', '2018-06-02 20:41:00.021690', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:41:00.021690', '2018-06-02 20:41:00.021690', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:41:00.021690', '2018-06-02 20:41:00.021690', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:41:00.021690', '2018-06-02 20:41:00.021690', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:41:00.021690', '2018-06-02 20:41:00.021690', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:41:00.023624', '2018-06-02 20:41:00.023624', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:41:00.023624', '2018-06-02 20:41:00.023624', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:41:00.023624', '2018-06-02 20:41:00.023624', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:41:00.023624', '2018-06-02 20:41:00.023624', 845707144)[0m + [1m[35m (56.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:41:00.119645"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:41:00.121465"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:41:00.124808"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:42:45.361897', '2018-06-02 20:42:45.361897', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:42:45.365064', '2018-06-02 20:42:45.365064', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:42:45.367343', '2018-06-02 20:42:45.367343', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:42:45.367343', '2018-06-02 20:42:45.367343', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:42:45.367343', '2018-06-02 20:42:45.367343', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:42:45.367343', '2018-06-02 20:42:45.367343', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:42:45.367343', '2018-06-02 20:42:45.367343', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:42:45.369226', '2018-06-02 20:42:45.369226', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:42:45.369226', '2018-06-02 20:42:45.369226', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:42:45.369226', '2018-06-02 20:42:45.369226', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:42:45.369226', '2018-06-02 20:42:45.369226', 845707144)[0m + [1m[35m (81.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:42:45.470089"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:42:45.472033"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:42:45.476266"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:44:42.575324', '2018-06-02 20:44:42.575324', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 177417774)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:44:42.578488', '2018-06-02 20:44:42.578488', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:44:42.580583', '2018-06-02 20:44:42.580583', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:44:42.580583', '2018-06-02 20:44:42.580583', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:44:42.580583', '2018-06-02 20:44:42.580583', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:44:42.580583', '2018-06-02 20:44:42.580583', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:44:42.580583', '2018-06-02 20:44:42.580583', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:42.582510', '2018-06-02 20:44:42.582510', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:44:42.582510', '2018-06-02 20:44:42.582510', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:42.582510', '2018-06-02 20:44:42.582510', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:42.582510', '2018-06-02 20:44:42.582510', 845707144)[0m + [1m[35m (69.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:42.682550"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:42.684444"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:42.693119"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:44:52.207329', '2018-06-02 20:44:52.207329', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:44:52.210471', '2018-06-02 20:44:52.210471', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:44:52.212575', '2018-06-02 20:44:52.212575', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:44:52.212575', '2018-06-02 20:44:52.212575', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:44:52.212575', '2018-06-02 20:44:52.212575', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:44:52.212575', '2018-06-02 20:44:52.212575', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:44:52.212575', '2018-06-02 20:44:52.212575', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:52.214602', '2018-06-02 20:44:52.214602', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:44:52.214602', '2018-06-02 20:44:52.214602', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:52.214602', '2018-06-02 20:44:52.214602', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:44:52.214602', '2018-06-02 20:44:52.214602', 845707144)[0m + [1m[35m (58.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["developer_id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:52.292772"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["developer_id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:52.294753"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["id", 705244826], ["developer_id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["developer_id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["developer_id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["developer_id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:44:52.309247"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["developer_id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" IS NULL LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) AND "games"."developer_id" = ? LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["developer_id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:48:02.377090', '2018-06-02 20:48:02.377090', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 241467919)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:48:02.380314', '2018-06-02 20:48:02.380314', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:48:02.382422', '2018-06-02 20:48:02.382422', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:48:02.382422', '2018-06-02 20:48:02.382422', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:48:02.382422', '2018-06-02 20:48:02.382422', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:48:02.382422', '2018-06-02 20:48:02.382422', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:48:02.382422', '2018-06-02 20:48:02.382422', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:48:02.384360', '2018-06-02 20:48:02.384360', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:48:02.384360', '2018-06-02 20:48:02.384360', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:48:02.384360', '2018-06-02 20:48:02.384360', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:48:02.384360', '2018-06-02 20:48:02.384360', 845707144)[0m + [1m[35m (64.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:48:02.475444"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:48:02.477288"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:48:02.480656"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:49:01.292344', '2018-06-02 20:49:01.292344', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 241467919)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:49:01.295625', '2018-06-02 20:49:01.295625', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:49:01.297853', '2018-06-02 20:49:01.297853', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:49:01.297853', '2018-06-02 20:49:01.297853', 530513826)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:49:01.297853', '2018-06-02 20:49:01.297853', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:49:01.297853', '2018-06-02 20:49:01.297853', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:49:01.297853', '2018-06-02 20:49:01.297853', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:01.299727', '2018-06-02 20:49:01.299727', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:49:01.299727', '2018-06-02 20:49:01.299727', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:01.299727', '2018-06-02 20:49:01.299727', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:01.299727', '2018-06-02 20:49:01.299727', 845707144)[0m + [1m[35m (101.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:01.419734"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:01.437414"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:01.439282"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 20:49:15.953878', '2018-06-02 20:49:15.953878', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 1025681176)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 20:49:15.957167', '2018-06-02 20:49:15.957167', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 20:49:15.959353', '2018-06-02 20:49:15.959353', 475197514)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 20:49:15.959353', '2018-06-02 20:49:15.959353', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 20:49:15.959353', '2018-06-02 20:49:15.959353', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 20:49:15.959353', '2018-06-02 20:49:15.959353', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 20:49:15.959353', '2018-06-02 20:49:15.959353', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:15.961275', '2018-06-02 20:49:15.961275', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 20:49:15.961275', '2018-06-02 20:49:15.961275', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:15.961275', '2018-06-02 20:49:15.961275', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 20:49:15.961275', '2018-06-02 20:49:15.961275', 845707144)[0m + [1m[35m (49.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:16.036145"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:16.037932"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 20:49:16.050046"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (64.4ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (77.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (66.1ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (74.5ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (92.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (74.7ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.2ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (90.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (74.4ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (59.0ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (91.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (53.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (49.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (82.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 21:08:40.789878"], ["updated_at", "2018-06-02 21:08:40.789878"]] + [1m[35m (45.2ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:08:40.936546', '2018-06-02 21:08:40.936546', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:08:40.940042', '2018-06-02 21:08:40.940042', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:08:40.942275', '2018-06-02 21:08:40.942275', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:08:40.942275', '2018-06-02 21:08:40.942275', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:08:40.942275', '2018-06-02 21:08:40.942275', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:08:40.942275', '2018-06-02 21:08:40.942275', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:08:40.942275', '2018-06-02 21:08:40.942275', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:08:40.944347', '2018-06-02 21:08:40.944347', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:08:40.944347', '2018-06-02 21:08:40.944347', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:08:40.944347', '2018-06-02 21:08:40.944347', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:08:40.944347', '2018-06-02 21:08:40.944347', 845707144)[0m + [1m[35m (61.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:08:41.201989"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:08:41.209333"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:08:41.210723"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (57.2ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (66.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (66.0ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.3ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (91.4ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.3ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (57.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (57.8ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.3ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (166.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (37.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (91.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (110.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 21:20:47.296937"], ["updated_at", "2018-06-02 21:20:47.296937"]] + [1m[35m (35.4ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:20:47.384704', '2018-06-02 21:20:47.384704', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:20:47.388323', '2018-06-02 21:20:47.388323', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:20:47.390502', '2018-06-02 21:20:47.390502', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:20:47.390502', '2018-06-02 21:20:47.390502', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:20:47.390502', '2018-06-02 21:20:47.390502', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:20:47.390502', '2018-06-02 21:20:47.390502', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:20:47.390502', '2018-06-02 21:20:47.390502', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:20:47.392512', '2018-06-02 21:20:47.392512', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:20:47.392512', '2018-06-02 21:20:47.392512', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:20:47.392512', '2018-06-02 21:20:47.392512', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:20:47.392512', '2018-06-02 21:20:47.392512', 845707144)[0m + [1m[35m (39.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:20:47.462323"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:20:47.464493"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:20:47.472748"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:21:49.955612', '2018-06-02 21:21:49.955612', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:21:49.958802', '2018-06-02 21:21:49.958802', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:21:49.960863', '2018-06-02 21:21:49.960863', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:21:49.960863', '2018-06-02 21:21:49.960863', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:21:49.960863', '2018-06-02 21:21:49.960863', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:21:49.960863', '2018-06-02 21:21:49.960863', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:21:49.960863', '2018-06-02 21:21:49.960863', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:21:49.962772', '2018-06-02 21:21:49.962772', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:21:49.962772', '2018-06-02 21:21:49.962772', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:21:49.962772', '2018-06-02 21:21:49.962772', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:21:49.962772', '2018-06-02 21:21:49.962772', 845707144)[0m + [1m[35m (59.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:21:50.059867"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:21:50.068949"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:21:50.070965"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:25:46.430659', '2018-06-02 21:25:46.430659', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:25:46.433851', '2018-06-02 21:25:46.433851', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:25:46.436002', '2018-06-02 21:25:46.436002', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:25:46.436002', '2018-06-02 21:25:46.436002', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:25:46.436002', '2018-06-02 21:25:46.436002', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:25:46.436002', '2018-06-02 21:25:46.436002', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:25:46.436002', '2018-06-02 21:25:46.436002', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:25:46.438018', '2018-06-02 21:25:46.438018', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:25:46.438018', '2018-06-02 21:25:46.438018', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:25:46.438018', '2018-06-02 21:25:46.438018', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:25:46.438018', '2018-06-02 21:25:46.438018', 845707144)[0m + [1m[35m (54.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:25:46.522372"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:25:46.524402"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:25:46.529128"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (2.8ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:26:23.108818', '2018-06-02 21:26:23.108818', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:26:23.112034', '2018-06-02 21:26:23.112034', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:26:23.114120', '2018-06-02 21:26:23.114120', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:26:23.114120', '2018-06-02 21:26:23.114120', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:26:23.114120', '2018-06-02 21:26:23.114120', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:26:23.114120', '2018-06-02 21:26:23.114120', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:26:23.114120', '2018-06-02 21:26:23.114120', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:23.116085', '2018-06-02 21:26:23.116085', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:26:23.116085', '2018-06-02 21:26:23.116085', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:23.116085', '2018-06-02 21:26:23.116085', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:23.116085', '2018-06-02 21:26:23.116085', 845707144)[0m + [1m[35m (46.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:23.183114"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:23.185326"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:23.196346"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:26:35.405551', '2018-06-02 21:26:35.405551', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:26:35.408867', '2018-06-02 21:26:35.408867', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:26:35.410979', '2018-06-02 21:26:35.410979', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:26:35.410979', '2018-06-02 21:26:35.410979', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:26:35.410979', '2018-06-02 21:26:35.410979', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:26:35.410979', '2018-06-02 21:26:35.410979', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:26:35.410979', '2018-06-02 21:26:35.410979', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:35.412893', '2018-06-02 21:26:35.412893', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:26:35.412893', '2018-06-02 21:26:35.412893', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:35.412893', '2018-06-02 21:26:35.412893', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:35.412893', '2018-06-02 21:26:35.412893', 845707144)[0m + [1m[35m (51.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:35.493357"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:35.506566"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:35.508536"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:26:54.139170', '2018-06-02 21:26:54.139170', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:26:54.142341', '2018-06-02 21:26:54.142341', 215549783)[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:26:54.144514', '2018-06-02 21:26:54.144514', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:26:54.144514', '2018-06-02 21:26:54.144514', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:26:54.144514', '2018-06-02 21:26:54.144514', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:26:54.144514', '2018-06-02 21:26:54.144514', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:26:54.144514', '2018-06-02 21:26:54.144514', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:54.146636', '2018-06-02 21:26:54.146636', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:26:54.146636', '2018-06-02 21:26:54.146636', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:54.146636', '2018-06-02 21:26:54.146636', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:26:54.146636', '2018-06-02 21:26:54.146636', 845707144)[0m + [1m[35m (45.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:54.218237"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:54.235875"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:26:54.237788"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:27:11.951172', '2018-06-02 21:27:11.951172', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:27:11.954776', '2018-06-02 21:27:11.954776', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:27:11.956857', '2018-06-02 21:27:11.956857', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:27:11.956857', '2018-06-02 21:27:11.956857', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:27:11.956857', '2018-06-02 21:27:11.956857', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:27:11.956857', '2018-06-02 21:27:11.956857', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:27:11.956857', '2018-06-02 21:27:11.956857', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:11.958811', '2018-06-02 21:27:11.958811', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:27:11.958811', '2018-06-02 21:27:11.958811', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:11.958811', '2018-06-02 21:27:11.958811', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:11.958811', '2018-06-02 21:27:11.958811', 845707144)[0m + [1m[35m (44.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:12.040575"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:12.048113"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:12.050065"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:27:38.465664', '2018-06-02 21:27:38.465664', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:27:38.469036', '2018-06-02 21:27:38.469036', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:27:38.471331', '2018-06-02 21:27:38.471331', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:27:38.471331', '2018-06-02 21:27:38.471331', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:27:38.471331', '2018-06-02 21:27:38.471331', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:27:38.471331', '2018-06-02 21:27:38.471331', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:27:38.471331', '2018-06-02 21:27:38.471331', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:38.473396', '2018-06-02 21:27:38.473396', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:27:38.473396', '2018-06-02 21:27:38.473396', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:38.473396', '2018-06-02 21:27:38.473396', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:27:38.473396', '2018-06-02 21:27:38.473396', 845707144)[0m + [1m[35m (57.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:38.562643"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:38.564545"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:27:38.575865"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:29:35.218850', '2018-06-02 21:29:35.218850', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:29:35.222162', '2018-06-02 21:29:35.222162', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:29:35.224259', '2018-06-02 21:29:35.224259', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:29:35.224259', '2018-06-02 21:29:35.224259', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:29:35.224259', '2018-06-02 21:29:35.224259', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:29:35.224259', '2018-06-02 21:29:35.224259', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:29:35.224259', '2018-06-02 21:29:35.224259', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:29:35.226282', '2018-06-02 21:29:35.226282', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:29:35.226282', '2018-06-02 21:29:35.226282', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:29:35.226282', '2018-06-02 21:29:35.226282', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:29:35.226282', '2018-06-02 21:29:35.226282', 845707144)[0m + [1m[35m (43.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:29:35.297901"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:29:35.311515"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:29:35.313448"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (2.9ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:30:32.638416', '2018-06-02 21:30:32.638416', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:30:32.641591', '2018-06-02 21:30:32.641591', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:30:32.643673', '2018-06-02 21:30:32.643673', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:30:32.643673', '2018-06-02 21:30:32.643673', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:30:32.643673', '2018-06-02 21:30:32.643673', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:30:32.643673', '2018-06-02 21:30:32.643673', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:30:32.643673', '2018-06-02 21:30:32.643673', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:32.645690', '2018-06-02 21:30:32.645690', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:30:32.645690', '2018-06-02 21:30:32.645690', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:32.645690', '2018-06-02 21:30:32.645690', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:32.645690', '2018-06-02 21:30:32.645690', 845707144)[0m + [1m[35m (47.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:32.719296"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:32.725541"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:32.741026"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:30:44.600197', '2018-06-02 21:30:44.600197', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:30:44.603398', '2018-06-02 21:30:44.603398', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:30:44.605653', '2018-06-02 21:30:44.605653', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:30:44.605653', '2018-06-02 21:30:44.605653', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:30:44.605653', '2018-06-02 21:30:44.605653', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:30:44.605653', '2018-06-02 21:30:44.605653', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:30:44.605653', '2018-06-02 21:30:44.605653', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:44.607707', '2018-06-02 21:30:44.607707', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:30:44.607707', '2018-06-02 21:30:44.607707', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:44.607707', '2018-06-02 21:30:44.607707', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:44.607707', '2018-06-02 21:30:44.607707', 845707144)[0m + [1m[35m (45.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:44.679279"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:44.699490"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:44.701421"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:30:55.619453', '2018-06-02 21:30:55.619453', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:30:55.622998', '2018-06-02 21:30:55.622998', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:30:55.625080', '2018-06-02 21:30:55.625080', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:30:55.625080', '2018-06-02 21:30:55.625080', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:30:55.625080', '2018-06-02 21:30:55.625080', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:30:55.625080', '2018-06-02 21:30:55.625080', 41593518)[0m + [1m[36mFixture Insert (0.0ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:30:55.625080', '2018-06-02 21:30:55.625080', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:55.626976', '2018-06-02 21:30:55.626976', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:30:55.626976', '2018-06-02 21:30:55.626976', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:55.626976', '2018-06-02 21:30:55.626976', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:30:55.626976', '2018-06-02 21:30:55.626976', 845707144)[0m + [1m[35m (44.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:55.701045"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:55.716506"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:30:55.718531"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:31:23.784661', '2018-06-02 21:31:23.784661', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:31:23.788007', '2018-06-02 21:31:23.788007', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:31:23.790120', '2018-06-02 21:31:23.790120', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:31:23.790120', '2018-06-02 21:31:23.790120', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:31:23.790120', '2018-06-02 21:31:23.790120', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:31:23.790120', '2018-06-02 21:31:23.790120', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:31:23.790120', '2018-06-02 21:31:23.790120', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:31:23.792020', '2018-06-02 21:31:23.792020', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:31:23.792020', '2018-06-02 21:31:23.792020', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:31:23.792020', '2018-06-02 21:31:23.792020', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:31:23.792020', '2018-06-02 21:31:23.792020', 845707144)[0m + [1m[35m (265.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:31:24.090710"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:31:24.092530"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:31:24.096173"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:36:21.066974', '2018-06-02 21:36:21.066974', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:36:21.070222', '2018-06-02 21:36:21.070222', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:36:21.072294', '2018-06-02 21:36:21.072294', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:36:21.072294', '2018-06-02 21:36:21.072294', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:36:21.072294', '2018-06-02 21:36:21.072294', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:36:21.072294', '2018-06-02 21:36:21.072294', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:36:21.072294', '2018-06-02 21:36:21.072294', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:36:21.074172', '2018-06-02 21:36:21.074172', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:36:21.074172', '2018-06-02 21:36:21.074172', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:36:21.074172', '2018-06-02 21:36:21.074172', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:36:21.074172', '2018-06-02 21:36:21.074172', 845707144)[0m + [1m[35m (320.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:36:21.420348"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:36:21.422416"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:37:18.236519', '2018-06-02 21:37:18.236519', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:37:18.239794', '2018-06-02 21:37:18.239794', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:37:18.241880', '2018-06-02 21:37:18.241880', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:37:18.241880', '2018-06-02 21:37:18.241880', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:37:18.241880', '2018-06-02 21:37:18.241880', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:37:18.241880', '2018-06-02 21:37:18.241880', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:37:18.241880', '2018-06-02 21:37:18.241880', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:18.243857', '2018-06-02 21:37:18.243857', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:37:18.243857', '2018-06-02 21:37:18.243857', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:18.243857', '2018-06-02 21:37:18.243857', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:18.243857', '2018-06-02 21:37:18.243857', 845707144)[0m + [1m[35m (57.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:37:18.326600"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:37:18.328495"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (2.8ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:37:18.347149"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:37:32.597429', '2018-06-02 21:37:32.597429', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:37:32.600731', '2018-06-02 21:37:32.600731', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:37:32.602839', '2018-06-02 21:37:32.602839', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:37:32.602839', '2018-06-02 21:37:32.602839', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:37:32.602839', '2018-06-02 21:37:32.602839', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:37:32.602839', '2018-06-02 21:37:32.602839', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:37:32.602839', '2018-06-02 21:37:32.602839', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:32.604738', '2018-06-02 21:37:32.604738', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:37:32.604738', '2018-06-02 21:37:32.604738', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:32.604738', '2018-06-02 21:37:32.604738', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:37:32.604738', '2018-06-02 21:37:32.604738', 845707144)[0m + [1m[35m (56.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:37:32.700773"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:37:32.705441"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:39:18.913798', '2018-06-02 21:39:18.913798', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:39:18.916934', '2018-06-02 21:39:18.916934', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:39:18.919060', '2018-06-02 21:39:18.919060', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:39:18.919060', '2018-06-02 21:39:18.919060', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:39:18.919060', '2018-06-02 21:39:18.919060', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:39:18.919060', '2018-06-02 21:39:18.919060', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:39:18.919060', '2018-06-02 21:39:18.919060', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:39:18.920920', '2018-06-02 21:39:18.920920', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:39:18.920920', '2018-06-02 21:39:18.920920', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:39:18.920920', '2018-06-02 21:39:18.920920', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:39:18.920920', '2018-06-02 21:39:18.920920', 845707144)[0m + [1m[35m (60.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:39:19.001725"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:39:19.003741"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:41:46.824333', '2018-06-02 21:41:46.824333', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 265087534)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:41:46.827836', '2018-06-02 21:41:46.827836', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:41:46.830038', '2018-06-02 21:41:46.830038', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:41:46.830038', '2018-06-02 21:41:46.830038', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:41:46.830038', '2018-06-02 21:41:46.830038', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:41:46.830038', '2018-06-02 21:41:46.830038', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:41:46.830038', '2018-06-02 21:41:46.830038', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:41:46.831931', '2018-06-02 21:41:46.831931', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:41:46.831931', '2018-06-02 21:41:46.831931', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:41:46.831931', '2018-06-02 21:41:46.831931', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:41:46.831931', '2018-06-02 21:41:46.831931', 845707144)[0m + [1m[35m (58.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:41:46.922333"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:41:46.930615"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:41:46.932403"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:43:29.226807', '2018-06-02 21:43:29.226807', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:43:29.230046', '2018-06-02 21:43:29.230046', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:43:29.232166', '2018-06-02 21:43:29.232166', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:43:29.232166', '2018-06-02 21:43:29.232166', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:43:29.232166', '2018-06-02 21:43:29.232166', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:43:29.232166', '2018-06-02 21:43:29.232166', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:43:29.232166', '2018-06-02 21:43:29.232166', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:43:29.234226', '2018-06-02 21:43:29.234226', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:43:29.234226', '2018-06-02 21:43:29.234226', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:43:29.234226', '2018-06-02 21:43:29.234226', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:43:29.234226', '2018-06-02 21:43:29.234226', 845707144)[0m + [1m[35m (60.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:43:29.327085"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:43:29.339233"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (2.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:43:29.343861"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:44:02.402451', '2018-06-02 21:44:02.402451', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:44:02.405681', '2018-06-02 21:44:02.405681', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:44:02.407776', '2018-06-02 21:44:02.407776', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:44:02.407776', '2018-06-02 21:44:02.407776', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:44:02.407776', '2018-06-02 21:44:02.407776', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:44:02.407776', '2018-06-02 21:44:02.407776', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:44:02.407776', '2018-06-02 21:44:02.407776', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:44:02.409709', '2018-06-02 21:44:02.409709', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:44:02.409709', '2018-06-02 21:44:02.409709', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:44:02.409709', '2018-06-02 21:44:02.409709', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:44:02.409709', '2018-06-02 21:44:02.409709', 845707144)[0m + [1m[35m (46.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.3ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:44:02.496115"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:44:02.506063"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:44:02.508334"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:46:02.054295', '2018-06-02 21:46:02.054295', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:46:02.057521', '2018-06-02 21:46:02.057521', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:46:02.059612', '2018-06-02 21:46:02.059612', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:46:02.059612', '2018-06-02 21:46:02.059612', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:46:02.059612', '2018-06-02 21:46:02.059612', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:46:02.059612', '2018-06-02 21:46:02.059612', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:46:02.059612', '2018-06-02 21:46:02.059612', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:02.061531', '2018-06-02 21:46:02.061531', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:46:02.061531', '2018-06-02 21:46:02.061531', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:02.061531', '2018-06-02 21:46:02.061531', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:02.061531', '2018-06-02 21:46:02.061531', 845707144)[0m + [1m[35m (58.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:46:02.147130"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:46:02.166902"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 21:46:02.168824"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:46:08.328391', '2018-06-02 21:46:08.328391', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 241467919)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:46:08.331636', '2018-06-02 21:46:08.331636', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:46:08.333943', '2018-06-02 21:46:08.333943', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:46:08.333943', '2018-06-02 21:46:08.333943', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:46:08.333943', '2018-06-02 21:46:08.333943', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:46:08.333943', '2018-06-02 21:46:08.333943', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:46:08.333943', '2018-06-02 21:46:08.333943', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:08.335873', '2018-06-02 21:46:08.335873', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:46:08.335873', '2018-06-02 21:46:08.335873', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:08.335873', '2018-06-02 21:46:08.335873', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:08.335873', '2018-06-02 21:46:08.335873', 845707144)[0m + [1m[35m (51.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:46:23.548432', '2018-06-02 21:46:23.548432', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:46:23.551704', '2018-06-02 21:46:23.551704', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:46:23.553970', '2018-06-02 21:46:23.553970', 475197514)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:46:23.553970', '2018-06-02 21:46:23.553970', 530513826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:46:23.553970', '2018-06-02 21:46:23.553970', 496405980)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:46:23.553970', '2018-06-02 21:46:23.553970', 41593518)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:46:23.553970', '2018-06-02 21:46:23.553970', 1024296144)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:23.555906', '2018-06-02 21:46:23.555906', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:46:23.555906', '2018-06-02 21:46:23.555906', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:23.555906', '2018-06-02 21:46:23.555906', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:46:23.555906', '2018-06-02 21:46:23.555906', 845707144)[0m + [1m[35m (41.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:52:52.922533', '2018-06-02 21:52:52.922533', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:52:52.925837', '2018-06-02 21:52:52.925837', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:52:52.928071', '2018-06-02 21:52:52.928071', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:52:52.928071', '2018-06-02 21:52:52.928071', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:52:52.928071', '2018-06-02 21:52:52.928071', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:52:52.928071', '2018-06-02 21:52:52.928071', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:52:52.928071', '2018-06-02 21:52:52.928071', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:52.930086', '2018-06-02 21:52:52.930086', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:52:52.930086', '2018-06-02 21:52:52.930086', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:52.930086', '2018-06-02 21:52:52.930086', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:52.930086', '2018-06-02 21:52:52.930086', 845707144)[0m + [1m[35m (54.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 21:52:58.055404', '2018-06-02 21:52:58.055404', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 21:52:58.058754', '2018-06-02 21:52:58.058754', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 21:52:58.060899', '2018-06-02 21:52:58.060899', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 21:52:58.060899', '2018-06-02 21:52:58.060899', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 21:52:58.060899', '2018-06-02 21:52:58.060899', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 21:52:58.060899', '2018-06-02 21:52:58.060899', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 21:52:58.060899', '2018-06-02 21:52:58.060899', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:58.062981', '2018-06-02 21:52:58.062981', 476452521)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 21:52:58.062981', '2018-06-02 21:52:58.062981', 91178773)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:58.062981', '2018-06-02 21:52:58.062981', 765799344)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 21:52:58.062981', '2018-06-02 21:52:58.062981', 845707144)[0m + [1m[35m (38.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:01:24.858788', '2018-06-02 22:01:24.858788', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:01:24.861964', '2018-06-02 22:01:24.861964', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:01:24.863998', '2018-06-02 22:01:24.863998', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:01:24.863998', '2018-06-02 22:01:24.863998', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:01:24.863998', '2018-06-02 22:01:24.863998', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:01:24.863998', '2018-06-02 22:01:24.863998', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:01:24.863998', '2018-06-02 22:01:24.863998', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:01:24.865893', '2018-06-02 22:01:24.865893', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:01:24.865893', '2018-06-02 22:01:24.865893', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:24.865893', '2018-06-02 22:01:24.865893', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:24.865893', '2018-06-02 22:01:24.865893', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:24.865893', '2018-06-02 22:01:24.865893', 346228358)[0m + [1m[35m (44.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:01:31.193264', '2018-06-02 22:01:31.193264', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:01:31.196616', '2018-06-02 22:01:31.196616', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:01:31.198768', '2018-06-02 22:01:31.198768', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:01:31.198768', '2018-06-02 22:01:31.198768', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:01:31.198768', '2018-06-02 22:01:31.198768', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:01:31.198768', '2018-06-02 22:01:31.198768', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:01:31.198768', '2018-06-02 22:01:31.198768', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:01:31.200691', '2018-06-02 22:01:31.200691', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:01:31.200691', '2018-06-02 22:01:31.200691', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:31.200691', '2018-06-02 22:01:31.200691', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:31.200691', '2018-06-02 22:01:31.200691', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:01:31.200691', '2018-06-02 22:01:31.200691', 346228358)[0m + [1m[35m (43.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.269134"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:01:31.278647"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.287608"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:01:31.292770"], ["id", 258524408]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.297668"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.304076"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:01:31.306416"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.310544"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:01:31.316998"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:02:19.292230', '2018-06-02 22:02:19.292230', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:02:19.295586', '2018-06-02 22:02:19.295586', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:02:19.297725', '2018-06-02 22:02:19.297725', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:02:19.297725', '2018-06-02 22:02:19.297725', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:02:19.297725', '2018-06-02 22:02:19.297725', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:02:19.297725', '2018-06-02 22:02:19.297725', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:02:19.297725', '2018-06-02 22:02:19.297725', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:02:19.299615', '2018-06-02 22:02:19.299615', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:02:19.299615', '2018-06-02 22:02:19.299615', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:19.299615', '2018-06-02 22:02:19.299615', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:19.299615', '2018-06-02 22:02:19.299615', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:19.299615', '2018-06-02 22:02:19.299615', 346228358)[0m + [1m[35m (309.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.628161"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.643940"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:02:19.646339"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.654956"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:02:19.657203"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.661186"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:02:19.663379"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.667634"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:19.673841"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:02:33.026693', '2018-06-02 22:02:33.026693', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:02:33.029931', '2018-06-02 22:02:33.029931', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:02:33.032085', '2018-06-02 22:02:33.032085', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:02:33.032085', '2018-06-02 22:02:33.032085', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:02:33.032085', '2018-06-02 22:02:33.032085', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:02:33.032085', '2018-06-02 22:02:33.032085', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:02:33.032085', '2018-06-02 22:02:33.032085', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:02:33.034047', '2018-06-02 22:02:33.034047', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:02:33.034047', '2018-06-02 22:02:33.034047', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:33.034047', '2018-06-02 22:02:33.034047', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:33.034047', '2018-06-02 22:02:33.034047', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:02:33.034047', '2018-06-02 22:02:33.034047', 346228358)[0m + [1m[35m (59.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.113627"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:02:33.122808"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.129913"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.140198"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.146191"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:02:33.148523"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.153602"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:02:33.156056"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:02:33.161652"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 992431567)[0m + [1m[36mFixture Insert (0.3ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:03:09.831198', '2018-06-02 22:03:09.831198', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:03:09.834749', '2018-06-02 22:03:09.834749', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:03:09.836816', '2018-06-02 22:03:09.836816', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:03:09.836816', '2018-06-02 22:03:09.836816', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:03:09.836816', '2018-06-02 22:03:09.836816', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:03:09.836816', '2018-06-02 22:03:09.836816', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:03:09.836816', '2018-06-02 22:03:09.836816', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:03:09.838746', '2018-06-02 22:03:09.838746', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:03:09.838746', '2018-06-02 22:03:09.838746', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:09.838746', '2018-06-02 22:03:09.838746', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:09.838746', '2018-06-02 22:03:09.838746', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:09.838746', '2018-06-02 22:03:09.838746', 346228358)[0m + [1m[35m (42.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:09.901140"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:09.903094"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:09.912394"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:03:25.672825', '2018-06-02 22:03:25.672825', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:03:25.676121', '2018-06-02 22:03:25.676121', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:03:25.678407', '2018-06-02 22:03:25.678407', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:03:25.678407', '2018-06-02 22:03:25.678407', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:03:25.678407', '2018-06-02 22:03:25.678407', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:03:25.678407', '2018-06-02 22:03:25.678407', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:03:25.678407', '2018-06-02 22:03:25.678407', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:03:25.680343', '2018-06-02 22:03:25.680343', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:03:25.680343', '2018-06-02 22:03:25.680343', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:25.680343', '2018-06-02 22:03:25.680343', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:25.680343', '2018-06-02 22:03:25.680343', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:03:25.680343', '2018-06-02 22:03:25.680343', 346228358)[0m + [1m[35m (44.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:25.754845"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:25.769750"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:03:25.771729"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:04:43.397643', '2018-06-02 22:04:43.397643', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:04:43.400768', '2018-06-02 22:04:43.400768', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:04:43.402873', '2018-06-02 22:04:43.402873', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:04:43.402873', '2018-06-02 22:04:43.402873', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:04:43.402873', '2018-06-02 22:04:43.402873', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:04:43.402873', '2018-06-02 22:04:43.402873', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:04:43.402873', '2018-06-02 22:04:43.402873', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:04:43.404782', '2018-06-02 22:04:43.404782', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:04:43.404782', '2018-06-02 22:04:43.404782', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:04:43.404782', '2018-06-02 22:04:43.404782', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:04:43.404782', '2018-06-02 22:04:43.404782', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:04:43.404782', '2018-06-02 22:04:43.404782', 346228358)[0m + [1m[35m (53.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:04:43.483946"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:04:43.486034"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:04:43.490443"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:05:18.615009', '2018-06-02 22:05:18.615009', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:05:18.618519', '2018-06-02 22:05:18.618519', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:05:18.621131', '2018-06-02 22:05:18.621131', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:05:18.621131', '2018-06-02 22:05:18.621131', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:05:18.621131', '2018-06-02 22:05:18.621131', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:05:18.621131', '2018-06-02 22:05:18.621131', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:05:18.621131', '2018-06-02 22:05:18.621131', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:05:18.623325', '2018-06-02 22:05:18.623325', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:05:18.623325', '2018-06-02 22:05:18.623325', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:05:18.623325', '2018-06-02 22:05:18.623325', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:05:18.623325', '2018-06-02 22:05:18.623325', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:05:18.623325', '2018-06-02 22:05:18.623325', 346228358)[0m + [1m[35m (46.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.2ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.813368"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.815604"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.824671"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.839356"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.853221"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:05:18.855409"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.859682"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:05:18.862436"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.866474"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:05:18.868623"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.873564"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:05:18.879895"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:07:29.991355', '2018-06-02 22:07:29.991355', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:07:29.994900', '2018-06-02 22:07:29.994900', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:07:29.997391', '2018-06-02 22:07:29.997391', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:07:29.997391', '2018-06-02 22:07:29.997391', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:07:29.997391', '2018-06-02 22:07:29.997391', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:07:29.997391', '2018-06-02 22:07:29.997391', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:07:29.997391', '2018-06-02 22:07:29.997391', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:07:30.000617', '2018-06-02 22:07:30.000617', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:07:30.000617', '2018-06-02 22:07:30.000617', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:07:30.000617', '2018-06-02 22:07:30.000617', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:07:30.000617', '2018-06-02 22:07:30.000617', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:07:30.000617', '2018-06-02 22:07:30.000617', 346228358)[0m + [1m[35m (58.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (80.8ms) + Rendered games/edit.html.erb within layouts/application (81.8ms) +Completed 200 OK in 195ms (Views: 188.4ms | ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (3.6ms) +Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.7ms) + Rendered games/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 7ms (Views: 6.1ms | ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (4.2ms) + Rendered games/new.html.erb within layouts/application (4.4ms) +Completed 200 OK in 9ms (Views: 5.4ms | ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 5ms (ActiveRecord: 0.5ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.6ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (12.3ms) + Rendered games/edit.html.erb within layouts/application (12.7ms) +Completed 200 OK in 17ms (Views: 13.9ms | ActiveRecord: 1.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.4ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.5ms) + Rendered developers/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.3ms) +Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 6ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (2.1ms) + Rendered developers/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.3ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.7ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.536502"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.547215"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.548946"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.8ms) + Rendered prices/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.9ms) + Rendered prices/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.9ms) + Rendered prices/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.9ms) + Rendered prices/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.607484"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:07:30.610205"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.614133"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.620512"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.626407"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.632072"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:07:30.634211"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:07:30.639321"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:07:30.641440"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.3ms) + Rendered categories/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.0ms) + Rendered categories/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:07:30 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:08:27.659487', '2018-06-02 22:08:27.659487', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:08:27.663032', '2018-06-02 22:08:27.663032', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:08:27.665516', '2018-06-02 22:08:27.665516', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:08:27.665516', '2018-06-02 22:08:27.665516', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:08:27.665516', '2018-06-02 22:08:27.665516', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:08:27.665516', '2018-06-02 22:08:27.665516', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:08:27.665516', '2018-06-02 22:08:27.665516', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:08:27.667788', '2018-06-02 22:08:27.667788', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:08:27.667788', '2018-06-02 22:08:27.667788', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:27.667788', '2018-06-02 22:08:27.667788', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:27.667788', '2018-06-02 22:08:27.667788', 842783930)[0m + [1m[36mFixture Insert (0.6ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:27.667788', '2018-06-02 22:08:27.667788', 346228358)[0m + [1m[35m (45.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:08:27 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (5.0ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:27 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:08:27 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (11.2ms) + Rendered prices/edit.html.erb within layouts/application (11.8ms) +Completed 200 OK in 107ms (Views: 105.9ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.7ms) + Rendered prices/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (93.4ms) + Rendered games/edit.html.erb within layouts/application (94.2ms) +Completed 200 OK in 113ms (Views: 96.1ms | ActiveRecord: 0.7ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mGame Load (0.4ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (7.4ms) + Rendered games/new.html.erb within layouts/application (7.8ms) +Completed 200 OK in 15ms (Views: 10.1ms | ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (6.3ms) + Rendered games/new.html.erb within layouts/application (6.5ms) +Completed 200 OK in 10ms (Views: 8.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (2.4ms) +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (6.3ms) + Rendered games/edit.html.erb within layouts/application (6.9ms) +Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.5ms) + [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 17ms (ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.244256"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.251213"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.257302"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:08:28.259597"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.263530"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.269270"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:08:28.271460"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.275132"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:08:28.277249"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.283231"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.285154"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:28.299436"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.3ms) + Rendered categories/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.7ms) + Rendered categories/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.2ms) + Rendered developers/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.7ms) + Rendered developers/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:28 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:08:42.189173', '2018-06-02 22:08:42.189173', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:08:42.192657', '2018-06-02 22:08:42.192657', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:08:42.195060', '2018-06-02 22:08:42.195060', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:08:42.195060', '2018-06-02 22:08:42.195060', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:08:42.195060', '2018-06-02 22:08:42.195060', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:08:42.195060', '2018-06-02 22:08:42.195060', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:08:42.195060', '2018-06-02 22:08:42.195060', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:08:42.197193', '2018-06-02 22:08:42.197193', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:08:42.197193', '2018-06-02 22:08:42.197193', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:42.197193', '2018-06-02 22:08:42.197193', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:42.197193', '2018-06-02 22:08:42.197193', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:08:42.197193', '2018-06-02 22:08:42.197193', 346228358)[0m + [1m[35m (61.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.7ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (5.1ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 15ms (ActiveRecord: 0.7ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (70.4ms) + Rendered games/new.html.erb within layouts/application (71.0ms) +Completed 200 OK in 174ms (Views: 173.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (5.6ms) + Rendered games/edit.html.erb within layouts/application (6.2ms) +Completed 200 OK in 11ms (Views: 7.5ms | ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (5.7ms) + Rendered games/edit.html.erb within layouts/application (5.9ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (2.2ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (6.0ms) + Rendered games/new.html.erb within layouts/application (6.6ms) +Completed 200 OK in 12ms (Views: 8.9ms | ActiveRecord: 0.7ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (1.1ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (3.1ms) + Rendered categories/new.html.erb within layouts/application (3.7ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.6ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 6ms (ActiveRecord: 1.0ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 4ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.7ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (2.0ms) + Rendered categories/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.8ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (1.3ms) + Rendered categories/edit.html.erb within layouts/application (2.9ms) +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.8ms) + Rendered prices/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.5ms) + Rendered prices/new.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.823397"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:08:42.825986"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.830922"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.836364"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.841867"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:08:42.843907"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.847645"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:08:42.849731"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.853177"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.866746"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.875718"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:08:42.878641"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.2ms) + Rendered developers/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:08:42 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (75.7ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (83.4ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (66.5ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (57.4ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (58.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (58.1ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.1ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (66.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (58.2ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (76.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (61.3ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (49.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (89.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 22:11:00.400022"], ["updated_at", "2018-06-02 22:11:00.400022"]] + [1m[35m (44.6ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.7ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:11:00.574784', '2018-06-02 22:11:00.574784', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:11:00.579166', '2018-06-02 22:11:00.579166', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:11:00.582786', '2018-06-02 22:11:00.582786', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:11:00.582786', '2018-06-02 22:11:00.582786', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:11:00.582786', '2018-06-02 22:11:00.582786', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:11:00.582786', '2018-06-02 22:11:00.582786', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:11:00.582786', '2018-06-02 22:11:00.582786', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:11:00.585769', '2018-06-02 22:11:00.585769', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:11:00.585769', '2018-06-02 22:11:00.585769', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:11:00.585769', '2018-06-02 22:11:00.585769', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:11:00.585769', '2018-06-02 22:11:00.585769', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:11:00.585769', '2018-06-02 22:11:00.585769', 346228358)[0m + [1m[35m (48.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:00.660463"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:00.662554"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:00.666288"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 6ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (3.1ms) +Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (6.5ms) + Rendered prices/edit.html.erb within layouts/application (7.2ms) +Completed 200 OK in 101ms (Views: 97.9ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.0ms) + Rendered prices/new.html.erb within layouts/application (2.4ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.2ms) + Rendered prices/edit.html.erb within layouts/application (2.4ms) +Completed 200 OK in 19ms (Views: 18.2ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:11:00 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (2.0ms) + Rendered developers/new.html.erb within layouts/application (3.0ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.6ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.8ms) + Rendered developers/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (3.0ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 3ms (ActiveRecord: 0.7ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.7ms) + Rendered developers/edit.html.erb within layouts/application (2.8ms) +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 7ms (ActiveRecord: 0.4ms) + [1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 10ms (ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.3ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (1.9ms) + Rendered categories/edit.html.erb within layouts/application (2.5ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.129613"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:11:01.133223"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.138613"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.145175"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.152447"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:11:01.154733"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.158558"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:11:01.160675"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:11:01.164440"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (59.0ms) + Rendered games/edit.html.erb within layouts/application (59.7ms) +Completed 200 OK in 64ms (Views: 61.0ms | ActiveRecord: 0.6ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.1ms) + Rendered games/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.6ms) + Rendered games/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.7ms) + Rendered games/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:11:01 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (71.7ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (75.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (57.9ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (74.9ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (57.6ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (83.3ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.3ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (82.9ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (74.6ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (91.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (100.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (41.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (58.1ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (58.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 22:13:22.951268"], ["updated_at", "2018-06-02 22:13:22.951268"]] + [1m[35m (59.6ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.5ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:13:23.139867', '2018-06-02 22:13:23.139867', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:13:23.143348', '2018-06-02 22:13:23.143348', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:13:23.145646', '2018-06-02 22:13:23.145646', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:13:23.145646', '2018-06-02 22:13:23.145646', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:13:23.145646', '2018-06-02 22:13:23.145646', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:13:23.145646', '2018-06-02 22:13:23.145646', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:13:23.145646', '2018-06-02 22:13:23.145646', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:13:23.147690', '2018-06-02 22:13:23.147690', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:13:23.147690', '2018-06-02 22:13:23.147690', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:13:23.147690', '2018-06-02 22:13:23.147690', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:13:23.147690', '2018-06-02 22:13:23.147690', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:13:23.147690', '2018-06-02 22:13:23.147690', 346228358)[0m + [1m[35m (45.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (5.2ms) +Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (84.8ms) + Rendered games/edit.html.erb within layouts/application (85.5ms) +Completed 200 OK in 189ms (Views: 186.8ms | ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.6ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.6ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (10.7ms) + Rendered games/new.html.erb within layouts/application (11.6ms) +Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 1.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (7.6ms) + Rendered games/edit.html.erb within layouts/application (7.9ms) +Completed 200 OK in 14ms (Views: 10.2ms | ActiveRecord: 0.5ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 7ms (ActiveRecord: 0.5ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (7.8ms) + Rendered games/new.html.erb within layouts/application (8.0ms) +Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.2ms) + [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (1.0ms) +Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.5ms) + Rendered developers/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.6ms) + Rendered developers/new.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (1.3ms) + Rendered categories/edit.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.9ms) + Rendered categories/new.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.729525"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.734762"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.736979"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------------- +GameTest: test_should_not_save_with_a_string_for_a_developer_id +--------------------------------------------------------------- + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 0], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divinity II"], ["id", 600038034], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.9ms) + Rendered prices/edit.html.erb within layouts/application (3.6ms) +Completed 200 OK in 8ms (Views: 5.1ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/new.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.5ms) + Rendered prices/new.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:13:23 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.801367"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:13:23.803898"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +PriceTest: test_should_not_save_with_a_price_as_a_string +-------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.807576"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 258524408], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 258524408], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 876978088], ["updated_at", "2018-06-02 22:13:23.809698"], ["id", 258524408]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.813568"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.819160"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.824537"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:13:23.826981"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:13:23.832223"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "environment"]] + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (63.0ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.1ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (58.3ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (57.7ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (83.2ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (66.3ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.6ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.3ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (74.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (84.0ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (58.4ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (40.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602005412)[0m + [1m[35m (58.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809); + +[0m + [1m[35m (60.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-02 22:14:13.037901"], ["updated_at", "2018-06-02 22:14:13.037901"]] + [1m[35m (54.1ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:14:13.207257', '2018-06-02 22:14:13.207257', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:14:13.210403', '2018-06-02 22:14:13.210403', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:14:13.212403', '2018-06-02 22:14:13.212403', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:14:13.212403', '2018-06-02 22:14:13.212403', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:14:13.212403', '2018-06-02 22:14:13.212403', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:14:13.212403', '2018-06-02 22:14:13.212403', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:14:13.212403', '2018-06-02 22:14:13.212403', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:14:13.214245', '2018-06-02 22:14:13.214245', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:14:13.214245', '2018-06-02 22:14:13.214245', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:13.214245', '2018-06-02 22:14:13.214245', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:13.214245', '2018-06-02 22:14:13.214245', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:13.214245', '2018-06-02 22:14:13.214245', 346228358)[0m + [1m[35m (51.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.287114"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:14:13.295579"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.299441"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.307843"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.313451"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.318886"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:14:13.320864"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.336061"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.337832"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:13.341514"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (6.2ms) + Rendered prices/new.html.erb within layouts/application (7.2ms) +Completed 200 OK in 115ms (Views: 108.6ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.1ms) + Rendered prices/edit.html.erb within layouts/application (2.6ms) +Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.4ms) + Rendered prices/edit.html.erb within layouts/application (2.7ms) +Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (5.1ms) +Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (3.0ms) + Rendered prices/new.html.erb within layouts/application (3.2ms) +Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (1.5ms) + Rendered categories/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 12ms (ActiveRecord: 0.6ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.9ms) + Rendered categories/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.3ms) + Rendered developers/new.html.erb within layouts/application (2.0ms) +Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.7ms) + Rendered developers/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 4ms (ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (58.8ms) + Rendered games/new.html.erb within layouts/application (59.5ms) +Completed 200 OK in 61ms (Views: 60.3ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.3ms) + Rendered games/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.4ms) + Rendered games/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.9ms) + Rendered games/edit.html.erb within layouts/application (4.2ms) +Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:14:13 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.7ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:14:35.980822', '2018-06-02 22:14:35.980822', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:14:35.984014', '2018-06-02 22:14:35.984014', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:14:35.986331', '2018-06-02 22:14:35.986331', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:14:35.986331', '2018-06-02 22:14:35.986331', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:14:35.986331', '2018-06-02 22:14:35.986331', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:14:35.986331', '2018-06-02 22:14:35.986331', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:14:35.986331', '2018-06-02 22:14:35.986331', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:14:35.988517', '2018-06-02 22:14:35.988517', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:14:35.988517', '2018-06-02 22:14:35.988517', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:35.988517', '2018-06-02 22:14:35.988517', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:35.988517', '2018-06-02 22:14:35.988517', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:14:35.988517', '2018-06-02 22:14:35.988517', 346228358)[0m + [1m[35m (46.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 21ms (ActiveRecord: 0.7ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (74.0ms) + Rendered games/edit.html.erb within layouts/application (75.0ms) +Completed 200 OK in 209ms (Views: 207.4ms | ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.4ms) + Rendered games/new.html.erb within layouts/application (3.8ms) +Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.7ms) + Rendered games/edit.html.erb within layouts/application (3.9ms) +Completed 200 OK in 8ms (Views: 4.6ms | ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.3ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.5ms) + Rendered games/new.html.erb within layouts/application (3.6ms) +Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.456960"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.459290"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.468159"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.479489"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:14:36.487168"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.492572"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:14:36.494715"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.498332"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.504119"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:14:36.510034"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.7ms) + Rendered prices/edit.html.erb within layouts/application (3.4ms) +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.7ms) + Rendered prices/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.5ms) + Rendered prices/edit.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.2ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.4ms) + Rendered categories/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (0.7ms) + Rendered categories/edit.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.4ms) + Rendered developers/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.2ms) +Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:14:36 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.7ms) + Rendered developers/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:15:24.610982', '2018-06-02 22:15:24.610982', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:15:24.614459', '2018-06-02 22:15:24.614459', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:15:24.616759', '2018-06-02 22:15:24.616759', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:15:24.616759', '2018-06-02 22:15:24.616759', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:15:24.616759', '2018-06-02 22:15:24.616759', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:15:24.616759', '2018-06-02 22:15:24.616759', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:15:24.616759', '2018-06-02 22:15:24.616759', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:15:24.618878', '2018-06-02 22:15:24.618878', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:15:24.618878', '2018-06-02 22:15:24.618878', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:15:24.618878', '2018-06-02 22:15:24.618878', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:15:24.618878', '2018-06-02 22:15:24.618878', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:15:24.618878', '2018-06-02 22:15:24.618878', 346228358)[0m + [1m[35m (46.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:24.824131"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:15:24.833158"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:24.838811"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:24.845197"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:24.851095"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:15:24.853282"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:24.857092"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:15:24 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (7.6ms) + Rendered developers/edit.html.erb within layouts/application (8.7ms) +Completed 200 OK in 99ms (Views: 93.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:15:24 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.0ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:15:24 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (16.4ms) +Completed 200 OK in 18ms (Views: 17.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (2.6ms) +Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (102.9ms) + Rendered games/new.html.erb within layouts/application (103.6ms) +Completed 200 OK in 108ms (Views: 105.8ms | ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.3ms) + Rendered games/new.html.erb within layouts/application (3.4ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (6.8ms) + Rendered games/edit.html.erb within layouts/application (7.3ms) +Completed 200 OK in 11ms (Views: 8.2ms | ActiveRecord: 0.6ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.5ms) + Rendered games/edit.html.erb within layouts/application (3.7ms) +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 3ms (ActiveRecord: 0.5ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.4ms) + Rendered categories/new.html.erb within layouts/application (2.1ms) +Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/edit.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.7ms) + Rendered categories/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:25.264006"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:25.266076"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:15:25.270573"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 1ms (ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (2.6ms) + Rendered prices/edit.html.erb within layouts/application (3.3ms) +Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.6ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.7ms) + Rendered prices/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:15:25 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.9ms) + Rendered prices/edit.html.erb within layouts/application (2.1ms) +Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:16:34.350459', '2018-06-02 22:16:34.350459', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:16:34.353446', '2018-06-02 22:16:34.353446', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:16:34.355506', '2018-06-02 22:16:34.355506', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:16:34.355506', '2018-06-02 22:16:34.355506', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:16:34.355506', '2018-06-02 22:16:34.355506', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:16:34.355506', '2018-06-02 22:16:34.355506', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:16:34.355506', '2018-06-02 22:16:34.355506', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:16:34.357359', '2018-06-02 22:16:34.357359', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:16:34.357359', '2018-06-02 22:16:34.357359', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:34.357359', '2018-06-02 22:16:34.357359', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:34.357359', '2018-06-02 22:16:34.357359', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:34.357359', '2018-06-02 22:16:34.357359', 346228358)[0m + [1m[35m (49.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_create_price +---------------------------------------------- + [1m[36mPrice Load (0.2ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started POST "/prices" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#create as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL LIMIT ?[0m [["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (10.6ms) + Rendered prices/new.html.erb within layouts/application (11.5ms) +Completed 200 OK in 160ms (Views: 147.8ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +PricesControllerTest: test_should_update_price +---------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started PATCH "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#update as HTML + Parameters: {"price"=>{"price_br"=>"1", "price_ru"=>"1", "price_us"=>"1"}, "id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" IS NULL AND ("prices"."id" != ?) LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.8ms) + Rendered prices/edit.html.erb within layouts/application (2.2ms) +Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +PricesControllerTest: test_should_show_price +-------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#show as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/show.html.erb within layouts/application + Rendered prices/show.html.erb within layouts/application (1.9ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------- +PricesControllerTest: test_should_get_index +------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#index as HTML + Rendering prices/index.html.erb within layouts/application + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices"[0m + Rendered prices/index.html.erb within layouts/application (1.5ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +PricesControllerTest: test_should_get_edit +------------------------------------------ + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/375493968/edit" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#edit as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + Rendering prices/edit.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/edit.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +PricesControllerTest: test_should_get_new +----------------------------------------- + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] +Started GET "/prices/new" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#new as HTML + Rendering prices/new.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered prices/_form.html.erb (1.6ms) + Rendered prices/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +PricesControllerTest: test_should_destroy_price +----------------------------------------------- + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m +Started DELETE "/prices/375493968" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by PricesController#destroy as HTML + Parameters: {"id"=>"375493968"} + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "prices" WHERE "prices"."id" = ?[0m [["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/prices +Completed 302 Found in 1ms (ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "prices"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +CategoriesControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#index as HTML + Rendering categories/index.html.erb within layouts/application + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered categories/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +CategoriesControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/new" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#new as HTML + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (1.6ms) + Rendered categories/new.html.erb within layouts/application (2.3ms) +Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +CategoriesControllerTest: test_should_show_category +--------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#show as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/show.html.erb within layouts/application + Rendered categories/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_create_category +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started POST "/categories" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#create as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering categories/new.html.erb within layouts/application + Rendered categories/_form.html.erb (0.8ms) + Rendered categories/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoriesControllerTest: test_should_update_category +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started PATCH "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#update as HTML + Parameters: {"category"=>{"description"=>"boom", "name"=>"Post-apocalyptic"}, "id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories/795862987 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +CategoriesControllerTest: test_should_destroy_category +------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m +Started DELETE "/categories/795862987" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#destroy as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" INNER JOIN "category_games" ON "games"."id" = "category_games"."game_id" WHERE "category_games"."category_id" = ?[0m [["category_id", 795862987]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "categories" WHERE "categories"."id" = ?[0m [["id", 795862987]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/categories +Completed 302 Found in 14ms (ActiveRecord: 0.7ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +CategoriesControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] +Started GET "/categories/795862987/edit" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by CategoriesController#edit as HTML + Parameters: {"id"=>"795862987"} + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + Rendering categories/edit.html.erb within layouts/application + Rendered categories/_form.html.erb (0.9ms) + Rendered categories/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:34.777657"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:34.789954"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:34.791810"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_create_game +-------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started POST "/games" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#create as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (56.7ms) + Rendered games/new.html.erb within layouts/application (57.4ms) +Completed 200 OK in 61ms (Views: 58.8ms | ActiveRecord: 0.3ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +GamesControllerTest: test_should_get_edit +----------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567/edit" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#edit as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.4ms) + Rendered games/edit.html.erb within layouts/application (3.8ms) +Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_get_index +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#index as HTML + Rendering games/index.html.erb within layouts/application + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games"[0m + Rendered games/index.html.erb within layouts/application (1.8ms) +Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------- +GamesControllerTest: test_should_get_new +---------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/new" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#new as HTML + Rendering games/new.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + Rendered games/_form.html.erb (3.4ms) + Rendered games/new.html.erb within layouts/application (3.5ms) +Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------- +GamesControllerTest: test_should_update_game +-------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started PATCH "/games/992431567" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#update as HTML + Parameters: {"game"=>{"description"=>"Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.", "is_released"=>"true", "name"=>"Fallout 1"}, "id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering games/edit.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "categories"."id" FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + Rendered games/_form.html.erb (3.7ms) + Rendered games/edit.html.erb within layouts/application (4.0ms) +Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +GamesControllerTest: test_should_destroy_game +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m +Started DELETE "/games/992431567" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#destroy as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" INNER JOIN "category_games" ON "categories"."id" = "category_games"."category_id" WHERE "category_games"."game_id" = ?[0m [["game_id", 992431567]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "games" WHERE "games"."id" = ?[0m [["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/games +Completed 302 Found in 4ms (ActiveRecord: 0.5ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "games"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------ +GamesControllerTest: test_should_show_game +------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] +Started GET "/games/992431567" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by GamesController#show as HTML + Parameters: {"id"=>"992431567"} + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + Rendering games/show.html.erb within layouts/application + Rendered games/show.html.erb within layouts/application (1.3ms) +Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.3ms) + Rendered developers/new.html.erb within layouts/application (1.9ms) +Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 3ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:16:34 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.7ms) + Rendered developers/new.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:34.996474"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:16:34.999098"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:35.004193"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:35.011277"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:35.019434"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:16:35.021693"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:35.025465"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:16:47.447203', '2018-06-02 22:16:47.447203', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:16:47.451052', '2018-06-02 22:16:47.451052', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:16:47.453194', '2018-06-02 22:16:47.453194', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:16:47.453194', '2018-06-02 22:16:47.453194', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:16:47.453194', '2018-06-02 22:16:47.453194', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:16:47.453194', '2018-06-02 22:16:47.453194', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:16:47.453194', '2018-06-02 22:16:47.453194', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:16:47.455088', '2018-06-02 22:16:47.455088', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:16:47.455088', '2018-06-02 22:16:47.455088', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:47.455088', '2018-06-02 22:16:47.455088', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:47.455088', '2018-06-02 22:16:47.455088', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:16:47.455088', '2018-06-02 22:16:47.455088', 346228358)[0m + [1m[35m (44.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.519413"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.535757"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:16:47.538120"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.542047"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:16:47.544650"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.550850"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.561831"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.568652"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.570521"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:16:47.585228"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:17:11.556115', '2018-06-02 22:17:11.556115', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:17:11.559212', '2018-06-02 22:17:11.559212', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:17:11.561284', '2018-06-02 22:17:11.561284', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:17:11.561284', '2018-06-02 22:17:11.561284', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:17:11.561284', '2018-06-02 22:17:11.561284', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:17:11.561284', '2018-06-02 22:17:11.561284', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:17:11.561284', '2018-06-02 22:17:11.561284', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:17:11.563211', '2018-06-02 22:17:11.563211', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:17:11.563211', '2018-06-02 22:17:11.563211', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:11.563211', '2018-06-02 22:17:11.563211', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:11.563211', '2018-06-02 22:17:11.563211', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:11.563211', '2018-06-02 22:17:11.563211', 346228358)[0m + [1m[35m (39.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.635759"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:11.644677"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.648556"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:11.650737"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.655761"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.661315"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.666768"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.676223"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.686514"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:11.688217"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:17:46.656487', '2018-06-02 22:17:46.656487', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:17:46.659768', '2018-06-02 22:17:46.659768', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:17:46.661844', '2018-06-02 22:17:46.661844', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:17:46.661844', '2018-06-02 22:17:46.661844', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:17:46.661844', '2018-06-02 22:17:46.661844', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:17:46.661844', '2018-06-02 22:17:46.661844', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:17:46.661844', '2018-06-02 22:17:46.661844', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:17:46.663777', '2018-06-02 22:17:46.663777', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:17:46.663777', '2018-06-02 22:17:46.663777', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:46.663777', '2018-06-02 22:17:46.663777', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:46.663777', '2018-06-02 22:17:46.663777', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:46.663777', '2018-06-02 22:17:46.663777', 346228358)[0m + [1m[35m (51.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.733989"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.749307"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.754905"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:46.756981"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.760675"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:46.762785"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.767637"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.786357"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.794521"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:46.796160"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:17:59.065461', '2018-06-02 22:17:59.065461', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:17:59.068712', '2018-06-02 22:17:59.068712', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:17:59.070830', '2018-06-02 22:17:59.070830', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:17:59.070830', '2018-06-02 22:17:59.070830', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:17:59.070830', '2018-06-02 22:17:59.070830', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:17:59.070830', '2018-06-02 22:17:59.070830', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:17:59.070830', '2018-06-02 22:17:59.070830', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:17:59.072778', '2018-06-02 22:17:59.072778', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:17:59.072778', '2018-06-02 22:17:59.072778', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:59.072778', '2018-06-02 22:17:59.072778', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:59.072778', '2018-06-02 22:17:59.072778', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:17:59.072778', '2018-06-02 22:17:59.072778', 346228358)[0m + [1m[35m (51.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.167669"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.169650"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.175739"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:17:59 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (131.7ms) +Completed 200 OK in 140ms (Views: 134.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.426208"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:59.435013"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.438766"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.444959"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.450557"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:17:59.456042"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:17:59.458120"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:18:25.023949', '2018-06-02 22:18:25.023949', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:18:25.027057', '2018-06-02 22:18:25.027057', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:18:25.029098', '2018-06-02 22:18:25.029098', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:18:25.029098', '2018-06-02 22:18:25.029098', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:18:25.029098', '2018-06-02 22:18:25.029098', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:18:25.029098', '2018-06-02 22:18:25.029098', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:18:25.029098', '2018-06-02 22:18:25.029098', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:18:25.031017', '2018-06-02 22:18:25.031017', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:18:25.031017', '2018-06-02 22:18:25.031017', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:18:25.031017', '2018-06-02 22:18:25.031017', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:18:25.031017', '2018-06-02 22:18:25.031017', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:18:25.031017', '2018-06-02 22:18:25.031017', 346228358)[0m + [1m[35m (46.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.106136"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.116406"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.118316"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (125.3ms) +Completed 200 OK in 143ms (Views: 138.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (4.5ms) + Rendered developers/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 7ms (Views: 6.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.0ms) + Rendered developers/edit.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:18:25 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.408680"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:18:25.417860"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.422279"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.428286"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.433935"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:18:25.439429"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:18:25.441456"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:19:22.712726', '2018-06-02 22:19:22.712726', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 265087534)[0m + [1m[36mFixture Insert (0.2ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:19:22.715798', '2018-06-02 22:19:22.715798', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:19:22.718105', '2018-06-02 22:19:22.718105', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:19:22.718105', '2018-06-02 22:19:22.718105', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:19:22.718105', '2018-06-02 22:19:22.718105', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:19:22.718105', '2018-06-02 22:19:22.718105', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:19:22.718105', '2018-06-02 22:19:22.718105', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:19:22.720055', '2018-06-02 22:19:22.720055', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:19:22.720055', '2018-06-02 22:19:22.720055', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:22.720055', '2018-06-02 22:19:22.720055', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:22.720055', '2018-06-02 22:19:22.720055', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:22.720055', '2018-06-02 22:19:22.720055', 346228358)[0m + [1m[35m (55.6ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:19:22 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (125.1ms) +Completed 200 OK in 133ms (Views: 128.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.020530"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.022582"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.043172"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.8ms) +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.7ms) + Rendered developers/edit.html.erb within layouts/application (5.5ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.1ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:23 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.114913"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.128742"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:19:23.130929"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.137182"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.143032"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:23.149036"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:19:23.151143"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:19:49.530183', '2018-06-02 22:19:49.530183', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:19:49.533270', '2018-06-02 22:19:49.533270', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:19:49.535464', '2018-06-02 22:19:49.535464', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:19:49.535464', '2018-06-02 22:19:49.535464', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:19:49.535464', '2018-06-02 22:19:49.535464', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:19:49.535464', '2018-06-02 22:19:49.535464', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:19:49.535464', '2018-06-02 22:19:49.535464', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:19:49.537357', '2018-06-02 22:19:49.537357', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:19:49.537357', '2018-06-02 22:19:49.537357', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:49.537357', '2018-06-02 22:19:49.537357', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:49.537357', '2018-06-02 22:19:49.537357', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:19:49.537357', '2018-06-02 22:19:49.537357', 346228358)[0m + [1m[35m (60.1ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (4.4ms) + Rendered developers/new.html.erb within layouts/application (5.3ms) +Completed 200 OK in 149ms (Views: 139.0ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 3ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (1.1ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 8ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.911513"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.918501"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.920152"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:19:49 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.931881"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:19:49.940700"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.946316"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.951854"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:19:49.953928"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.957414"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:19:49.962767"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:28:06.076517', '2018-06-02 22:28:06.076517', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:28:06.079758', '2018-06-02 22:28:06.079758', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:28:06.081872', '2018-06-02 22:28:06.081872', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:28:06.081872', '2018-06-02 22:28:06.081872', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:28:06.081872', '2018-06-02 22:28:06.081872', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:28:06.081872', '2018-06-02 22:28:06.081872', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:28:06.081872', '2018-06-02 22:28:06.081872', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:28:06.083779', '2018-06-02 22:28:06.083779', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:28:06.083779', '2018-06-02 22:28:06.083779', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:28:06.083779', '2018-06-02 22:28:06.083779', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:28:06.083779', '2018-06-02 22:28:06.083779', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:28:06.083779', '2018-06-02 22:28:06.083779', 346228358)[0m + [1m[35m (53.5ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.158551"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.174737"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:28:06.176919"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.180797"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.186945"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:28:06.194068"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.199734"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 7ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (5.2ms) + Rendered developers/new.html.erb within layouts/application (6.2ms) +Completed 200 OK in 149ms (Views: 147.8ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/edit.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:28:06 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.521112"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.529479"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:28:06.531176"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:30:32.106785', '2018-06-02 22:30:32.106785', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:30:32.110010', '2018-06-02 22:30:32.110010', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:30:32.112057', '2018-06-02 22:30:32.112057', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:30:32.112057', '2018-06-02 22:30:32.112057', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:30:32.112057', '2018-06-02 22:30:32.112057', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:30:32.112057', '2018-06-02 22:30:32.112057', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:30:32.112057', '2018-06-02 22:30:32.112057', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:30:32.113991', '2018-06-02 22:30:32.113991', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:30:32.113991', '2018-06-02 22:30:32.113991', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:30:32.113991', '2018-06-02 22:30:32.113991', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:30:32.113991', '2018-06-02 22:30:32.113991', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:30:32.113991', '2018-06-02 22:30:32.113991', 346228358)[0m + [1m[35m (48.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.182835"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.184883"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.188914"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (4.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:30:32 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (135.3ms) +Completed 200 OK in 143ms (Views: 138.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.485307"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:30:32.494551"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.498389"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.504101"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.509909"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:30:32.512483"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:30:32.517474"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:31:37.382977', '2018-06-02 22:31:37.382977', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:31:37.386087', '2018-06-02 22:31:37.386087', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:31:37.388107', '2018-06-02 22:31:37.388107', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:31:37.388107', '2018-06-02 22:31:37.388107', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:31:37.388107', '2018-06-02 22:31:37.388107', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:31:37.388107', '2018-06-02 22:31:37.388107', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:31:37.388107', '2018-06-02 22:31:37.388107', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:31:37.390012', '2018-06-02 22:31:37.390012', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:31:37.390012', '2018-06-02 22:31:37.390012', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:37.390012', '2018-06-02 22:31:37.390012', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:37.390012', '2018-06-02 22:31:37.390012', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:37.390012', '2018-06-02 22:31:37.390012', 346228358)[0m + [1m[35m (54.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.492487"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.494620"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.507815"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.9ms) +Completed 200 OK in 145ms (Views: 138.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.3ms) + Rendered developers/edit.html.erb within layouts/application (5.0ms) +Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.7ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.790859"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.803045"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:31:37.805099"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.809107"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:31:37.811519"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.816550"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:37.822226"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:31:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:31:50.681902', '2018-06-02 22:31:50.681902', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:31:50.685031', '2018-06-02 22:31:50.685031', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:31:50.687121', '2018-06-02 22:31:50.687121', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:31:50.687121', '2018-06-02 22:31:50.687121', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:31:50.687121', '2018-06-02 22:31:50.687121', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:31:50.687121', '2018-06-02 22:31:50.687121', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:31:50.687121', '2018-06-02 22:31:50.687121', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:31:50.689002', '2018-06-02 22:31:50.689002', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:31:50.689002', '2018-06-02 22:31:50.689002', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:50.689002', '2018-06-02 22:31:50.689002', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:50.689002', '2018-06-02 22:31:50.689002', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:31:50.689002', '2018-06-02 22:31:50.689002', 346228358)[0m + [1m[35m (56.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:50.768584"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:50.784296"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:31:50.786422"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:50.789994"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:31:50.792124"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:50.797097"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:50.802476"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:31:50 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (136.7ms) +Completed 200 OK in 145ms (Views: 140.2ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (2.0ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (4.8ms) + Rendered developers/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/edit.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:31:51 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:51.093289"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:51.101981"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:31:51.103777"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:37:58.305988', '2018-06-02 22:37:58.305988', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:37:58.309187', '2018-06-02 22:37:58.309187', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:37:58.311371', '2018-06-02 22:37:58.311371', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:37:58.311371', '2018-06-02 22:37:58.311371', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:37:58.311371', '2018-06-02 22:37:58.311371', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:37:58.311371', '2018-06-02 22:37:58.311371', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:37:58.311371', '2018-06-02 22:37:58.311371', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:37:58.313879', '2018-06-02 22:37:58.313879', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:37:58.313879', '2018-06-02 22:37:58.313879', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:37:58.313879', '2018-06-02 22:37:58.313879', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:37:58.313879', '2018-06-02 22:37:58.313879', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:37:58.313879', '2018-06-02 22:37:58.313879', 346228358)[0m + [1m[35m (48.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.398567"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.400809"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.405060"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (140.2ms) +Completed 200 OK in 149ms (Views: 143.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.656222"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.669042"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.674746"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:37:58.676900"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.680858"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:37:58.683174"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:37:58.688523"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.5ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (4.6ms) + Rendered developers/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:37:58 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/edit.html.erb within layouts/application (1.4ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:38:11.475640', '2018-06-02 22:38:11.475640', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:38:11.478972', '2018-06-02 22:38:11.478972', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:38:11.481156', '2018-06-02 22:38:11.481156', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:38:11.481156', '2018-06-02 22:38:11.481156', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:38:11.481156', '2018-06-02 22:38:11.481156', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:38:11.481156', '2018-06-02 22:38:11.481156', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:38:11.481156', '2018-06-02 22:38:11.481156', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:38:11.483104', '2018-06-02 22:38:11.483104', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:38:11.483104', '2018-06-02 22:38:11.483104', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:11.483104', '2018-06-02 22:38:11.483104', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:11.483104', '2018-06-02 22:38:11.483104', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:11.483104', '2018-06-02 22:38:11.483104', 346228358)[0m + [1m[35m (47.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.558893"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.561105"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.566055"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (4.9ms) + Rendered developers/new.html.erb within layouts/application (5.8ms) +Completed 200 OK in 155ms (Views: 148.7ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (1.0ms) + Rendered developers/edit.html.erb within layouts/application (1.5ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.866933"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.880098"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.885494"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:11.887502"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.891506"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:11.893670"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:11.898514"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:38:11 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:38:19.768718', '2018-06-02 22:38:19.768718', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:38:19.772222', '2018-06-02 22:38:19.772222', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:38:19.774311', '2018-06-02 22:38:19.774311', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:38:19.774311', '2018-06-02 22:38:19.774311', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:38:19.774311', '2018-06-02 22:38:19.774311', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:38:19.774311', '2018-06-02 22:38:19.774311', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:38:19.774311', '2018-06-02 22:38:19.774311', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:38:19.776434', '2018-06-02 22:38:19.776434', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:38:19.776434', '2018-06-02 22:38:19.776434', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:19.776434', '2018-06-02 22:38:19.776434', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:19.776434', '2018-06-02 22:38:19.776434', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:19.776434', '2018-06-02 22:38:19.776434', 346228358)[0m + [1m[35m (46.8ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:38:19 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (138.3ms) +Completed 200 OK in 147ms (Views: 141.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.082515"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.095117"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.096950"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.122399"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.136124"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.142270"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:20.144486"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.148428"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:20.150603"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:20.155970"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.5ms) + Rendered developers/edit.html.erb within layouts/application (5.2ms) +Completed 200 OK in 8ms (Views: 6.6ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:20 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:38:37.170823', '2018-06-02 22:38:37.170823', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:38:37.175502', '2018-06-02 22:38:37.175502', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:38:37.177708', '2018-06-02 22:38:37.177708', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:38:37.177708', '2018-06-02 22:38:37.177708', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:38:37.177708', '2018-06-02 22:38:37.177708', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:38:37.177708', '2018-06-02 22:38:37.177708', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:38:37.177708', '2018-06-02 22:38:37.177708', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:38:37.179617', '2018-06-02 22:38:37.179617', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:38:37.179617', '2018-06-02 22:38:37.179617', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:37.179617', '2018-06-02 22:38:37.179617', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:37.179617', '2018-06-02 22:38:37.179617', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:38:37.179617', '2018-06-02 22:38:37.179617', 346228358)[0m + [1m[35m (45.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.255838"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.261439"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.263305"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.9ms) + Rendered developers/edit.html.erb within layouts/application (5.9ms) +Completed 200 OK in 153ms (Views: 147.2ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.1ms) +Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.575592"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.588821"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:37.591150"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.597643"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:38:37.600361"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.604227"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:38:37.610826"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:38:37 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:40:20.215625', '2018-06-02 22:40:20.215625', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:40:20.218897', '2018-06-02 22:40:20.218897', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:40:20.220961', '2018-06-02 22:40:20.220961', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:40:20.220961', '2018-06-02 22:40:20.220961', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:40:20.220961', '2018-06-02 22:40:20.220961', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:40:20.220961', '2018-06-02 22:40:20.220961', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:40:20.220961', '2018-06-02 22:40:20.220961', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:40:20.223153', '2018-06-02 22:40:20.223153', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:40:20.223153', '2018-06-02 22:40:20.223153', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:20.223153', '2018-06-02 22:40:20.223153', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:20.223153', '2018-06-02 22:40:20.223153', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:20.223153', '2018-06-02 22:40:20.223153', 346228358)[0m + [1m[35m (57.3ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (7.4ms) + Rendered developers/edit.html.erb within layouts/application (8.7ms) +Completed 200 OK in 153ms (Views: 146.9ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 3ms (ActiveRecord: 0.3ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.2ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 8ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.7ms) +Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.610115"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.623641"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:20.626309"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.632912"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.640783"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:20.642954"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.646812"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:40:20 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.664240"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.665987"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:20.673090"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:40:51.450889', '2018-06-02 22:40:51.450889', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:40:51.454097', '2018-06-02 22:40:51.454097', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:40:51.456243', '2018-06-02 22:40:51.456243', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:40:51.456243', '2018-06-02 22:40:51.456243', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:40:51.456243', '2018-06-02 22:40:51.456243', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:40:51.456243', '2018-06-02 22:40:51.456243', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:40:51.456243', '2018-06-02 22:40:51.456243', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:40:51.458499', '2018-06-02 22:40:51.458499', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:40:51.458499', '2018-06-02 22:40:51.458499', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:51.458499', '2018-06-02 22:40:51.458499', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:51.458499', '2018-06-02 22:40:51.458499', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:51.458499', '2018-06-02 22:40:51.458499', 346228358)[0m + [1m[35m (67.2ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.558081"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.569726"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.571722"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.590753"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:51.600081"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.605803"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.614743"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:51.618158"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.623745"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:51.629785"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (140.5ms) +Completed 200 OK in 149ms (Views: 143.8ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.4ms) + Rendered developers/edit.html.erb within layouts/application (5.1ms) +Completed 200 OK in 8ms (Views: 6.7ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (0.9ms) +Completed 200 OK in 3ms (Views: 1.8ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:51 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:40:58.598473', '2018-06-02 22:40:58.598473', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:40:58.602027', '2018-06-02 22:40:58.602027', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:40:58.604333', '2018-06-02 22:40:58.604333', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:40:58.604333', '2018-06-02 22:40:58.604333', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:40:58.604333', '2018-06-02 22:40:58.604333', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:40:58.604333', '2018-06-02 22:40:58.604333', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:40:58.604333', '2018-06-02 22:40:58.604333', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:40:58.606401', '2018-06-02 22:40:58.606401', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:40:58.606401', '2018-06-02 22:40:58.606401', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:58.606401', '2018-06-02 22:40:58.606401', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:58.606401', '2018-06-02 22:40:58.606401', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:40:58.606401', '2018-06-02 22:40:58.606401', 346228358)[0m + [1m[35m (61.7ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------- +HomeControllerTest: test_should_get_index +----------------------------------------- +Started GET "/" for 127.0.0.1 at 2018-06-02 19:40:58 -0300 +Processing by HomeController#index as HTML + Rendering home/index.html.erb within layouts/application + Rendered home/index.html.erb within layouts/application (134.9ms) +Completed 200 OK in 143ms (Views: 138.3ms | ActiveRecord: 0.0ms) + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:58.923412"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:58.943680"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:58.952563"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:58.958595"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:58.964386"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:58.970099"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:40:58.972378"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------- +DevelopersControllerTest: test_should_destroy_developer +------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started DELETE "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:58 -0300 +Processing by DevelopersController#destroy as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."developer_id" = ?[0m [["developer_id", 795429121]] + [1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "developers" WHERE "developers"."id" = ?[0m [["id", 795429121]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers +Completed 302 Found in 5ms (ActiveRecord: 0.4ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +DevelopersControllerTest: test_should_get_edit +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121/edit" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#edit as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/edit.html.erb within layouts/application + Rendered developers/_form.html.erb (4.7ms) + Rendered developers/edit.html.erb within layouts/application (5.5ms) +Completed 200 OK in 8ms (Views: 6.9ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------- +DevelopersControllerTest: test_should_get_index +----------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#index as HTML + Rendering developers/index.html.erb within layouts/application + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers"[0m + Rendered developers/index.html.erb within layouts/application (1.6ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------- +DevelopersControllerTest: test_should_get_new +--------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/new" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#new as HTML + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.9ms) + Rendered developers/new.html.erb within layouts/application (1.3ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_update_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started PATCH "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#update as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}, "id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m +Redirected to http://www.example.com/developers/795429121 +Completed 302 Found in 2ms (ActiveRecord: 0.2ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DevelopersControllerTest: test_should_create_developer +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m +Started POST "/developers/" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#create as HTML + Parameters: {"developer"=>{"country"=>"USA", "name"=>"Interplay"}} + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + Rendering developers/new.html.erb within layouts/application + Rendered developers/_form.html.erb (0.8ms) + Rendered developers/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms) + [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "developers"[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------------- +DevelopersControllerTest: test_should_show_developer +---------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] +Started GET "/developers/795429121" for 127.0.0.1 at 2018-06-02 19:40:59 -0300 +Processing by DevelopersController#show as HTML + Parameters: {"id"=>"795429121"} + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + Rendering developers/show.html.erb within layouts/application + Rendered developers/show.html.erb within layouts/application (0.4ms) +Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:59.050157"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:59.051933"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:40:59.056004"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-02 22:41:45.884693', '2018-06-02 22:41:45.884693', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-02 22:41:45.887922', '2018-06-02 22:41:45.887922', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-02 22:41:45.890180', '2018-06-02 22:41:45.890180', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-02 22:41:45.890180', '2018-06-02 22:41:45.890180', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-02 22:41:45.890180', '2018-06-02 22:41:45.890180', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-02 22:41:45.890180', '2018-06-02 22:41:45.890180', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-02 22:41:45.890180', '2018-06-02 22:41:45.890180', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-02 22:41:45.892364', '2018-06-02 22:41:45.892364', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-02 22:41:45.892364', '2018-06-02 22:41:45.892364', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:41:45.892364', '2018-06-02 22:41:45.892364', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:41:45.892364', '2018-06-02 22:41:45.892364', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-02 22:41:45.892364', '2018-06-02 22:41:45.892364', 346228358)[0m + [1m[35m (63.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.006799"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.024901"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:41:46.027249"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.032470"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.038243"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-02 22:41:46.040762"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.044879"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.051128"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.062986"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-02 22:41:46.064917"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "categories"[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m + [1m[35m (78.6ms)[0m [1m[35mCREATE TABLE "categories" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (74.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_categories_on_name" ON "categories" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "category_games"[0m + [1m[35m (57.9ms)[0m [1m[35mCREATE TABLE "category_games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "category_id" integer, "game_id" integer)[0m + [1m[35m (75.0ms)[0m [1m[35mCREATE INDEX "index_category_games_on_category_id" ON "category_games" ("category_id")[0m + [1m[35m (0.2ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_category_games_on_category_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_category_games_on_category_id' AND type='index' +[0m + [1m[35m (49.5ms)[0m [1m[35mCREATE INDEX "index_category_games_on_game_id" ON "category_games" ("game_id")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "developers"[0m + [1m[35m (91.9ms)[0m [1m[35mCREATE TABLE "developers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "country" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (49.8ms)[0m [1m[35mCREATE UNIQUE INDEX "index_developers_on_name" ON "developers" ("name")[0m + [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "games"[0m + [1m[35m (58.0ms)[0m [1m[35mCREATE TABLE "games" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "description" text, "is_released" boolean, "developer_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (49.6ms)[0m [1m[35mCREATE INDEX "index_games_on_developer_id" ON "games" ("developer_id")[0m + [1m[35m (0.1ms)[0m [1m[34m SELECT sql + FROM sqlite_master + WHERE name='index_games_on_developer_id' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_games_on_developer_id' AND type='index' +[0m + [1m[35m (75.2ms)[0m [1m[35mCREATE UNIQUE INDEX "index_games_on_name" ON "games" ("name")[0m + [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "prices"[0m + [1m[35m (58.7ms)[0m [1m[35mCREATE TABLE "prices" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "price_us" integer, "price_br" integer, "price_ru" integer, "game_id" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (83.7ms)[0m [1m[35mCREATE INDEX "index_prices_on_game_id" ON "prices" ("game_id")[0m + [1m[35m (0.3ms)[0m [1m[35mDROP TABLE IF EXISTS "users"[0m + [1m[35m (90.8ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "password_digest" varchar, "role" integer, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[35m (66.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m + [1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (84.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20180602230646)[0m + [1m[35m (58.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES +(20180602004414), +(20180602004848), +(20180602004723), +(20180602004809), +(20180602005412); + +[0m + [1m[35m (75.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m + [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2018-06-03 00:06:39.481564"], ["updated_at", "2018-06-03 00:06:39.481564"]] + [1m[35m (53.3ms)[0m [1m[36mcommit transaction[0m + [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m + [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.0ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-03 00:06:39.589880', '2018-06-03 00:06:39.589880', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "users"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2018-06-03 00:06:39.593066', '2018-06-03 00:06:39.593066', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2018-06-03 00:06:39.593066', '2018-06-03 00:06:39.593066', 298486374)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-03 00:06:39.594584', '2018-06-03 00:06:39.594584', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-03 00:06:39.597778', '2018-06-03 00:06:39.597778', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-03 00:06:39.597778', '2018-06-03 00:06:39.597778', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-03 00:06:39.597778', '2018-06-03 00:06:39.597778', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-03 00:06:39.597778', '2018-06-03 00:06:39.597778', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-03 00:06:39.597778', '2018-06-03 00:06:39.597778', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-03 00:06:39.600935', '2018-06-03 00:06:39.600935', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-03 00:06:39.600935', '2018-06-03 00:06:39.600935', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 00:06:39.600935', '2018-06-03 00:06:39.600935', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 00:06:39.600935', '2018-06-03 00:06:39.600935', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 00:06:39.600935', '2018-06-03 00:06:39.600935', 346228358)[0m + [1m[35m (41.4ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.2ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.2ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.672362"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.690696"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.692459"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.702669"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.719931"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.726936"], ["id", 876978088]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.733155"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-03 00:06:39.735914"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 00:06:39.740136"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-03 00:06:39.742880"], ["id", 375493968]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = OFF[0m + [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m + [1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "games"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 1', 'Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997.', 't', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 992431567)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Fallout 2', 'muito bom', 'f', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 876978088)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("description", "is_released", "created_at", "updated_at", "id") VALUES ('deveria jogar', 't', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 705244826)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "is_released", "created_at", "updated_at", "id") VALUES ('Pokemon Ruby', 't', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 584880372)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "created_at", "updated_at", "id") VALUES ('Dark Souls', 'bom', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 634109592)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "created_at", "updated_at", "id") VALUES ('Divine Divinity', 'muito bom', 't', '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 936641284)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "games" ("name", "description", "is_released", "developer_id", "created_at", "updated_at", "id") VALUES ('Divinity II', 'legalzao', 't', 0, '2018-06-03 01:42:20.661215', '2018-06-03 01:42:20.661215', 600038034)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "users"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2018-06-03 01:42:20.664422', '2018-06-03 01:42:20.664422', 980190962)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "password_digest", "created_at", "updated_at", "id") VALUES ('MyString', 'MyString', 'MyString', '2018-06-03 01:42:20.664422', '2018-06-03 01:42:20.664422', 298486374)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "developers"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Interplay', 'USA', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 795429121)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Blizzard', 'USA', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 1025681176)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Gamefreak', 'Japan', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 265087534)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "country", "created_at", "updated_at", "id") VALUES ('Square Enix', 'Japan', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 241467919)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("name", "created_at", "updated_at", "id") VALUES ('Capivara Games', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 177417774)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "developers" ("country", "created_at", "updated_at", "id") VALUES ('Turkey', '2018-06-03 01:42:20.665996', '2018-06-03 01:42:20.665996', 215549783)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "categories"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Post-apocalyptic', 'boom', '2018-06-03 01:42:20.668127', '2018-06-03 01:42:20.668127', 795862987)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Fantasy', 'elfos', '2018-06-03 01:42:20.668127', '2018-06-03 01:42:20.668127', 270779907)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "description", "created_at", "updated_at", "id") VALUES ('Open World', 'aberto', '2018-06-03 01:42:20.668127', '2018-06-03 01:42:20.668127', 514203776)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("name", "created_at", "updated_at", "id") VALUES ('RPG', '2018-06-03 01:42:20.668127', '2018-06-03 01:42:20.668127', 350087202)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "categories" ("description", "created_at", "updated_at", "id") VALUES ('de cima', '2018-06-03 01:42:20.668127', '2018-06-03 01:42:20.668127', 1073481327)[0m + [1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "prices"[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, 1, '2018-06-03 01:42:20.670070', '2018-06-03 01:42:20.670070', 375493968)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 0, 1, '2018-06-03 01:42:20.670070', '2018-06-03 01:42:20.670070', 258524408)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_br", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 01:42:20.670070', '2018-06-03 01:42:20.670070', 869354633)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_us", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 01:42:20.670070', '2018-06-03 01:42:20.670070', 842783930)[0m + [1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "prices" ("price_br", "price_ru", "created_at", "updated_at", "id") VALUES (1, 1, '2018-06-03 01:42:20.670070', '2018-06-03 01:42:20.670070', 346228358)[0m + [1m[35m (54.9ms)[0m [1m[36mcommit transaction[0m + [1m[35m (0.1ms)[0m [1m[35mPRAGMA foreign_keys = 1[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_is_released +----------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Dark Souls"], ["id", 634109592], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------- +GameTest: test_should_not_save_with_duplicate_name +-------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.750862"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? LIMIT ?[0m [["name", "Fallout 1"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +GameTest: test_should_not_save_with_empty_description +----------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Gamefreak"], ["id", 265087534], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 265087534], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Pokemon Ruby"], ["id", 584880372], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +GameTest: test_should_not_save_with_empty_developer_id +------------------------------------------------------ + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Divine Divinity"], ["id", 936641284], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------------------------- +GameTest: test_should_not_save_with_empty_name +---------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" IS NULL AND ("games"."id" != ?) LIMIT ?[0m [["id", 705244826], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +---------------------------- +GameTest: test_everything_ok +---------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.764386"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.766179"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +DeveloperTest: test_should_not_save_with_an_empty_name +------------------------------------------------------ + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" IS NULL AND ("developers"."id" != ?) LIMIT ?[0m [["id", 215549783], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------- +DeveloperTest: test_everything_ok +--------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Blizzard"], ["id", 1025681176], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Square Enix"], ["id", 241467919], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_a_duplicate_name +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? LIMIT ?[0m [["name", "Interplay"], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------------- +DeveloperTest: test_should_not_save_with_an_empty_country +--------------------------------------------------------- + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Capivara Games"], ["id", 177417774], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------------ +CategoryTest: test_should_not_save_with_an_empty_description +------------------------------------------------------------ + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "RPG"], ["id", 350087202], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------------------------------- +CategoryTest: test_should_not_save_with_an_empty_name +----------------------------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" IS NULL AND ("categories"."id" != ?) LIMIT ?[0m [["id", 1073481327], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------- +CategoryTest: test_everything_ok +-------------------------------- + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Fantasy"], ["id", 270779907], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mCategory Load (0.0ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Open World"], ["id", 514203776], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +-------------------------------------------------------- +CategoryTest: test_should_not_save_with_a_duplicate_name +-------------------------------------------------------- + [1m[36mCategory Load (0.1ms)[0m [1m[34mSELECT "categories".* FROM "categories" WHERE "categories"."id" = ? LIMIT ?[0m [["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? AND ("categories"."id" != ?) LIMIT ?[0m [["name", "Post-apocalyptic"], ["id", 795862987], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mCategory Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "categories" WHERE "categories"."name" = ? LIMIT ?[0m [["name", "Post-apocalyptic"], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_us +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.794265"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.1ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.1ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 346228358], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +----------------------------- +PriceTest: test_everything_ok +----------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.808776"], ["id", 992431567]] + [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-03 01:42:20.811170"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_ru +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.815230"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +--------------------------------------------------- +PriceTest: test_should_not_save_with_empty_price_br +--------------------------------------------------- + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 2"], ["id", 876978088], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.821554"], ["id", 876978088]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 876978088], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 876978088], ["id", 869354633], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m + [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m +------------------------------------------------------ +PriceTest: test_should_not_save_with_duplicate_game_id +------------------------------------------------------ + [1m[36mDeveloper Load (0.1ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "developers" WHERE "developers"."name" = ? AND ("developers"."id" != ?) LIMIT ?[0m [["name", "Interplay"], ["id", 795429121], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mDeveloper Load (0.0ms)[0m [1m[34mSELECT "developers".* FROM "developers" WHERE "developers"."id" = ? LIMIT ?[0m [["id", 795429121], ["LIMIT", 1]] + [1m[36mGame Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "games" WHERE "games"."name" = ? AND ("games"."id" != ?) LIMIT ?[0m [["name", "Fallout 1"], ["id", 992431567], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "games" SET "developer_id" = ?, "updated_at" = ? WHERE "games"."id" = ?[0m [["developer_id", 795429121], ["updated_at", "2018-06-03 01:42:20.831283"], ["id", 992431567]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[36mPrice Load (0.0ms)[0m [1m[34mSELECT "prices".* FROM "prices" WHERE "prices"."id" = ? LIMIT ?[0m [["id", 375493968], ["LIMIT", 1]] + [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? AND ("prices"."id" != ?) LIMIT ?[0m [["game_id", 992431567], ["id", 375493968], ["LIMIT", 1]] + [1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "prices" SET "game_id" = ?, "updated_at" = ? WHERE "prices"."id" = ?[0m [["game_id", 992431567], ["updated_at", "2018-06-03 01:42:20.833645"], ["id", 375493968]] + [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m + [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m + [1m[36mGame Load (0.0ms)[0m [1m[34mSELECT "games".* FROM "games" WHERE "games"."id" = ? LIMIT ?[0m [["id", 992431567], ["LIMIT", 1]] + [1m[36mPrice Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "prices" WHERE "prices"."game_id" = ? LIMIT ?[0m [["game_id", 992431567], ["LIMIT", 1]] + [1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m + [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m diff --git a/T5/test/fixtures/categories.yml b/T5/test/fixtures/categories.yml new file mode 100644 index 0000000000000000000000000000000000000000..ebd5d1b198e45df84d1344aa0d80c32e093f05be --- /dev/null +++ b/T5/test/fixtures/categories.yml @@ -0,0 +1,24 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# tudo ok +postapocalyptic: + name: Post-apocalyptic + description: boom + +# tudo ok +fantasy: + name: Fantasy + description: elfos + +# tudo ok +openworld: + name: Open World + description: aberto + +# sem description +rpg: + name: RPG + +# sem name +isometric: + description: de cima \ No newline at end of file diff --git a/T5/test/fixtures/developers.yml b/T5/test/fixtures/developers.yml new file mode 100644 index 0000000000000000000000000000000000000000..f66ec35133db58173e26d5ce3aa4d2cd04524c13 --- /dev/null +++ b/T5/test/fixtures/developers.yml @@ -0,0 +1,30 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# tudo ok +interplay: + name: Interplay + country: USA + +# tudo ok +blizzard: + name: Blizzard + country: USA + +# tudo ok +gamefreak: + name: Gamefreak + country: Japan + +# tudo ok +square_enix: + name: Square Enix + country: Japan + +# sem country +capivara_games: + name: Capivara Games + +# sem name +taleworlds: + country: Turkey + diff --git a/T5/test/fixtures/games.yml b/T5/test/fixtures/games.yml new file mode 100644 index 0000000000000000000000000000000000000000..378184096071c0b5e002759a7ebbd200304188a0 --- /dev/null +++ b/T5/test/fixtures/games.yml @@ -0,0 +1,45 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + + +# testes do jogo 100% ok +fallout_i: + name: Fallout 1 + description: Fallout A Post Nuclear Role Playing Game is an open world turn-based role-playing video game developed and published by Interplay Productions in 1997. + is_released: true + +# teste com is_released false, mas 100% ok +fallout_ii: + name: Fallout 2 + description: muito bom + is_released: false + +# teste sem nome +diablo: + description: deveria jogar + is_released: true + +# teste sem description +pokemon: + name: Pokemon Ruby + is_released: true + +# teste sem is_released +dark_souls: + name: Dark Souls + description: bom + +# teste sem developer_id +divine_divinity: + name: Divine Divinity + description: muito bom + is_released: true + +# developer_id como string +divinity_ii: + name: Divinity II + description: legalzao + is_released: true + developer_id: batata + + + diff --git a/T5/test/fixtures/prices.yml b/T5/test/fixtures/prices.yml new file mode 100644 index 0000000000000000000000000000000000000000..57e04c3f4c9bbb5c4c0ab8e770095c2f86711a5d --- /dev/null +++ b/T5/test/fixtures/prices.yml @@ -0,0 +1,29 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +# tudo ok +fallout1: + price_us: 1 + price_br: 1 + price_ru: 1 + +# preco string +fallout2: + price_us: 1 + price_br: 'batata' + price_ru: 1 + +# sem preco ru +fallouti: + price_us: 1 + price_br: 1 + +# sem preco br +falloutii: + price_us: 1 + price_ru: 1 + +# sem preco us +falloutiii: + price_br: 1 + price_ru: 1 + diff --git a/T5/test/fixtures/users.yml b/T5/test/fixtures/users.yml new file mode 100644 index 0000000000000000000000000000000000000000..67a6844394c7056856e17bdb140c0001660be2b0 --- /dev/null +++ b/T5/test/fixtures/users.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + email: MyString + password_digest: MyString + +two: + name: MyString + email: MyString + password_digest: MyString diff --git a/T5/test/models/category_test.rb b/T5/test/models/category_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..d561343db49ed5759fdfe904225d596b03b3e008 --- /dev/null +++ b/T5/test/models/category_test.rb @@ -0,0 +1,34 @@ +require 'test_helper' + +class CategoryTest < ActiveSupport::TestCase + test "everything ok" do + category1 = categories(:postapocalyptic) + assert category1.save + + category2 = categories(:fantasy) + assert category2.save + + category3 = categories(:openworld) + assert category3.save + end + + test "should not save with a duplicate name" do + category1 = categories(:postapocalyptic) + + category2 = Category.new(name: "batata", description: "batata") + category2.name = category1.name + + assert category1.save + assert !category2.save + end + + test "should not save with an empty description" do + category = categories(:rpg) + assert !category.save + end + + test "should not save with an empty name" do + category = categories(:isometric) + assert !category.save + end +end \ No newline at end of file diff --git a/T5/test/models/developer_test.rb b/T5/test/models/developer_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..4b791eed4f46d6286996fd3e4e6656fd866a40f9 --- /dev/null +++ b/T5/test/models/developer_test.rb @@ -0,0 +1,34 @@ +require 'test_helper' + +class DeveloperTest < ActiveSupport::TestCase + test "everything ok" do + developer1 = developers(:interplay) + assert developer1.save + + developer2 = developers(:blizzard) + assert developer2.save + + developer3 = developers(:square_enix) + assert developer3.save + end + + test "should not save with a duplicate name" do + developer1 = developers(:interplay) + + developer2 = Developer.new(name: "batata", country: "batata") + developer2.name = developer1.name + + assert developer1.save + assert !developer2.save + end + + test "should not save with an empty country" do + developer = developers(:capivara_games) + assert !developer.save + end + + test "should not save with an empty name" do + developer = developers(:taleworlds) + assert !developer.save + end +end diff --git a/T5/test/models/game_test.rb b/T5/test/models/game_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..03d8c107afc3cb423795918f088adf3f3ec840a4 --- /dev/null +++ b/T5/test/models/game_test.rb @@ -0,0 +1,67 @@ +require 'test_helper' + +class GameTest < ActiveSupport::TestCase + test "everything ok" do + # inicializa o dev pra pegar o developer_id + developer = developers(:interplay) + developer.save + + # normal + game1 = games(:fallout_i) + game1.developer_id = developer.id + + # normal mas is_released false + game2 = games(:fallout_ii) + game2.developer_id = developer.id + + assert game1.save + assert game2.save + end + + test "should not save with duplicate name" do + developer = developers(:interplay) + developer.save + + game1 = games(:fallout_i) + game1.developer_id = developer.id + + game2 = Game.new(name: "batata", description:"batata", is_released: true, developer_id: developer.id) + game2.developer_id = developer.id + game2.name = game1.name + + assert game1.save + assert !game2.save + end + + test "should not save with empty name" do + developer = developers(:blizzard) + developer.save + + game = games(:diablo) + game.developer_id = developer.id + assert !game.save + end + + test "should not save with empty description" do + developer = developers(:gamefreak) + developer.save + + game = games(:pokemon) + game.developer_id = developer.id + assert !game.save + end + + test "should not save with empty is_released" do + developer = developers(:square_enix) + developer.save + + game = games(:dark_souls) + game.developer_id = developer.id + assert !game.save + end + + test "should not save with empty developer_id" do + game = games(:divine_divinity) + assert !game.save + end +end diff --git a/T5/test/models/price_test.rb b/T5/test/models/price_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..68c61ad9355ec8ca437cc538a4a2c0c306ae3be8 --- /dev/null +++ b/T5/test/models/price_test.rb @@ -0,0 +1,77 @@ +require 'test_helper' + +class PriceTest < ActiveSupport::TestCase + test "everything ok" do + developer = developers(:interplay) + developer.save + + game = games(:fallout_i) + game.developer_id = developer.id + game.save + + price = prices(:fallout1) + price.game_id = game.id + + assert price.save + end + + test "should not save with duplicate game_id" do + developer = developers(:interplay) + developer.save + + game = games(:fallout_i) + game.developer_id = developer.id + game.save + + price1 = prices(:fallout1) + price1.game_id = game.id + price1.save + + price2 = Price.new(price_us: 1, price_br: 2, price_ru: 3) + price2.game_id = game.id + + assert !price2.save + end + + test "should not save with empty price_ru" do + developer = developers(:interplay) + developer.save + + game = games(:fallout_ii) + game.developer_id = developer.id + game.save + + price = prices(:fallouti) + price.game_id = game.id + + assert !price.save + end + + test "should not save with empty price_br" do + developer = developers(:interplay) + developer.save + + game = games(:fallout_ii) + game.developer_id = developer.id + game.save + + price = prices(:fallouti) + price.game_id = game.id + + assert !price.save + end + + test "should not save with empty price_us" do + developer = developers(:interplay) + developer.save + + game = games(:fallout_ii) + game.developer_id = developer.id + game.save + + price = prices(:falloutiii) + price.game_id = game.id + + assert !price.save + end +end diff --git a/T5/test/models/user_test.rb b/T5/test/models/user_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..82f61e0109663ddb34c9850653978c5280db0d59 --- /dev/null +++ b/T5/test/models/user_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UserTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end diff --git a/T5/test/system/categories_test.rb b/T5/test/system/categories_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..5db93e61d532ba445f59f9b28e6a24fb3d3f31d4 --- /dev/null +++ b/T5/test/system/categories_test.rb @@ -0,0 +1,9 @@ +require "application_system_test_case" + +class CategoriesTest < ApplicationSystemTestCase + # test "visiting the index" do + # visit categories_url + # + # assert_selector "h1", text: "Category" + # end +end diff --git a/T5/test/system/developers_test.rb b/T5/test/system/developers_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..ac911a57a821f4bfcfb82148df01a81fa5c080ea --- /dev/null +++ b/T5/test/system/developers_test.rb @@ -0,0 +1,9 @@ +require "application_system_test_case" + +class DevelopersTest < ApplicationSystemTestCase + # test "visiting the index" do + # visit developers_url + # + # assert_selector "h1", text: "Developer" + # end +end diff --git a/T5/test/system/games_test.rb b/T5/test/system/games_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..c5d848b6e35365164b52587954776ca819e5f46c --- /dev/null +++ b/T5/test/system/games_test.rb @@ -0,0 +1,9 @@ +require "application_system_test_case" + +class GamesTest < ApplicationSystemTestCase + # test "visiting the index" do + # visit games_url + # + # assert_selector "h1", text: "Game" + # end +end diff --git a/T5/test/system/prices_test.rb b/T5/test/system/prices_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..3ef1fcd04ada737b00bd71a7c9ba01eea0933703 --- /dev/null +++ b/T5/test/system/prices_test.rb @@ -0,0 +1,9 @@ +require "application_system_test_case" + +class PricesTest < ApplicationSystemTestCase + # test "visiting the index" do + # visit prices_url + # + # assert_selector "h1", text: "Price" + # end +end diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-H/-H0OxyMXoYjBUTGzo_BwXV7zCMCUswN_EPfaFZi-568.cache b/T5/tmp/cache/assets/sprockets/v3.0/-H/-H0OxyMXoYjBUTGzo_BwXV7zCMCUswN_EPfaFZi-568.cache new file mode 100644 index 0000000000000000000000000000000000000000..5c831e34824d80789b0c0b20e0e223d921e1c333 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/-H/-H0OxyMXoYjBUTGzo_BwXV7zCMCUswN_EPfaFZi-568.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-Y/-YLoxV70CgoIFP3Ats_6-0phhxOQBYZYW7THqaQp450.cache b/T5/tmp/cache/assets/sprockets/v3.0/-Y/-YLoxV70CgoIFP3Ats_6-0phhxOQBYZYW7THqaQp450.cache new file mode 100644 index 0000000000000000000000000000000000000000..c61b28933b29507a4bc8ecf42c7dc5467544f680 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/-Y/-YLoxV70CgoIFP3Ats_6-0phhxOQBYZYW7THqaQp450.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-_/-_TeuBH4dnztw8BBdgdz31TW5UtTcMvhCyPb7I81yNs.cache b/T5/tmp/cache/assets/sprockets/v3.0/-_/-_TeuBH4dnztw8BBdgdz31TW5UtTcMvhCyPb7I81yNs.cache new file mode 100644 index 0000000000000000000000000000000000000000..35a8fcf69adbca050cb8cd963ccf01239393ba91 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/-_/-_TeuBH4dnztw8BBdgdz31TW5UtTcMvhCyPb7I81yNs.cache @@ -0,0 +1,2 @@ +"%@‡OõÍýzzÞ.gSdL8¯š +Ý×ÿ…×êINÖY– \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-g/-gXz09unbcjXwCj2VhdWt1OCMLwitvRXMJJJT439pHY.cache b/T5/tmp/cache/assets/sprockets/v3.0/-g/-gXz09unbcjXwCj2VhdWt1OCMLwitvRXMJJJT439pHY.cache new file mode 100644 index 0000000000000000000000000000000000000000..25b8f2f3e1f6d06f89067715220eb423f1580dd5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/-g/-gXz09unbcjXwCj2VhdWt1OCMLwitvRXMJJJT439pHY.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=e547b652a78734b5f08b454ecaee4cc747395c72f263d71c0890b4eb49326855:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-t/-t2c1jFv6yE8Q0cxxdI1WMJnDXMszxza-iX_BX05HVk.cache b/T5/tmp/cache/assets/sprockets/v3.0/-t/-t2c1jFv6yE8Q0cxxdI1WMJnDXMszxza-iX_BX05HVk.cache new file mode 100644 index 0000000000000000000000000000000000000000..2820d741c5751aea5d89e48111f8e5519c6d400d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/-t/-t2c1jFv6yE8Q0cxxdI1WMJnDXMszxza-iX_BX05HVk.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=72ead5a626e271856fe76b7bdc7dc24eb94649a86d127ab9e627e70ab8e330b4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/-t/-tTIGimEDzXNWgJARCgMsCYe4yoMQQK2m1Emg7sDtrY.cache b/T5/tmp/cache/assets/sprockets/v3.0/-t/-tTIGimEDzXNWgJARCgMsCYe4yoMQQK2m1Emg7sDtrY.cache new file mode 100644 index 0000000000000000000000000000000000000000..0b21f2f6c5dbd09d6974fa2d7466d3c158c60057 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/-t/-tTIGimEDzXNWgJARCgMsCYe4yoMQQK2m1Emg7sDtrY.cache @@ -0,0 +1 @@ +I"Ú/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js?type=application/javascript&pipeline=self&id=348c2571c9fede52088d2787a22c8705375269e5bf48ae2e188c6b707c13e887:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/04/04uVeKbYR-7gy19V3vqULWfG2lzObUWT8xnl-Y-YllY.cache b/T5/tmp/cache/assets/sprockets/v3.0/04/04uVeKbYR-7gy19V3vqULWfG2lzObUWT8xnl-Y-YllY.cache new file mode 100644 index 0000000000000000000000000000000000000000..0a0117c6e80f302d180de8165eb0c4b01be07892 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/04/04uVeKbYR-7gy19V3vqULWfG2lzObUWT8xnl-Y-YllY.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=1bb7f507052fff1946b35b9f8fbc932bd7ced53c746dd3b4a76c718dea236b85:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/08/08wQtPdIsV0k9HvrFDOhxdbJ_pEf7QfB1tv9v-iB5-E.cache b/T5/tmp/cache/assets/sprockets/v3.0/08/08wQtPdIsV0k9HvrFDOhxdbJ_pEf7QfB1tv9v-iB5-E.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/08/08wQtPdIsV0k9HvrFDOhxdbJ_pEf7QfB1tv9v-iB5-E.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/09/09VG3ntpdKqcsVUBQd0vh6gbB61Tg52pl4mX3Dp80zA.cache b/T5/tmp/cache/assets/sprockets/v3.0/09/09VG3ntpdKqcsVUBQd0vh6gbB61Tg52pl4mX3Dp80zA.cache new file mode 100644 index 0000000000000000000000000000000000000000..28f55f8d947fca789b0ef792d0c2dcdd33a9aba7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/09/09VG3ntpdKqcsVUBQd0vh6gbB61Tg52pl4mX3Dp80zA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0A/0A5-utEgE18KOOVzP62dg6k87q2elyeHBOjR02iPEdk.cache b/T5/tmp/cache/assets/sprockets/v3.0/0A/0A5-utEgE18KOOVzP62dg6k87q2elyeHBOjR02iPEdk.cache new file mode 100644 index 0000000000000000000000000000000000000000..70aa82c51463cff0c81925cb08f5d4f2c8a1fe17 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/0A/0A5-utEgE18KOOVzP62dg6k87q2elyeHBOjR02iPEdk.cache @@ -0,0 +1 @@ +I"„app/assets/stylesheets/sessions.scss?type=text/css&pipeline=self&id=7fa6842b61dc308c48dd0d03b0da0224f7155e166bbe5e3e6347e5fa0ebcefaa:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0B/0BS3p1oxZ18lZX92HUBscP9_X3CPnGKGO7eLqZyWUFo.cache b/T5/tmp/cache/assets/sprockets/v3.0/0B/0BS3p1oxZ18lZX92HUBscP9_X3CPnGKGO7eLqZyWUFo.cache new file mode 100644 index 0000000000000000000000000000000000000000..daf043f83c93dca8e3ca148ea7ac3455f8ea5749 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/0B/0BS3p1oxZ18lZX92HUBscP9_X3CPnGKGO7eLqZyWUFo.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=fb26cb3c0894d1fc9080d00fddd04cd27e31886c234c5151ff9fa0884d9d9a22:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0H/0HlXC-DaJDbSwjj14GbTzPH_sWYXhFNOZo-1PVguhjk.cache b/T5/tmp/cache/assets/sprockets/v3.0/0H/0HlXC-DaJDbSwjj14GbTzPH_sWYXhFNOZo-1PVguhjk.cache new file mode 100644 index 0000000000000000000000000000000000000000..5113460c2d9683d287871ccf614f416e2e436a9e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0H/0HlXC-DaJDbSwjj14GbTzPH_sWYXhFNOZo-1PVguhjk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0i/0iPXzO5ay4jYWZXJr2_CcrRXAi3gxRh6woz0HhBkTcY.cache b/T5/tmp/cache/assets/sprockets/v3.0/0i/0iPXzO5ay4jYWZXJr2_CcrRXAi3gxRh6woz0HhBkTcY.cache new file mode 100644 index 0000000000000000000000000000000000000000..60f52bb857a985041fc7b6fe78386f9ee4312669 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/0i/0iPXzO5ay4jYWZXJr2_CcrRXAi3gxRh6woz0HhBkTcY.cache @@ -0,0 +1 @@ +"%AÀ×Gü{h t»lŽmƒV·ÏÔNEè°ÔÎf§¹‚ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0k/0kVWdIuz_vPNtIrHJDbOudZd1S4KEokP5kX8NWmpPio.cache b/T5/tmp/cache/assets/sprockets/v3.0/0k/0kVWdIuz_vPNtIrHJDbOudZd1S4KEokP5kX8NWmpPio.cache new file mode 100644 index 0000000000000000000000000000000000000000..846674923a0d37c391bcba09fd797eac1132ba86 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0k/0kVWdIuz_vPNtIrHJDbOudZd1S4KEokP5kX8NWmpPio.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0t/0t3cKpCeCEa6wMjbZYAZyfJ_coRCqHVHOar-0suTBZM.cache b/T5/tmp/cache/assets/sprockets/v3.0/0t/0t3cKpCeCEa6wMjbZYAZyfJ_coRCqHVHOar-0suTBZM.cache new file mode 100644 index 0000000000000000000000000000000000000000..66480b7a6f8d2662742af9cb571f81556f4cf4f2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0t/0t3cKpCeCEa6wMjbZYAZyfJ_coRCqHVHOar-0suTBZM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0z/0z3lzxzZYizi8xII13xYgAXADvdnh6jxr7YFWIXGNwM.cache b/T5/tmp/cache/assets/sprockets/v3.0/0z/0z3lzxzZYizi8xII13xYgAXADvdnh6jxr7YFWIXGNwM.cache new file mode 100644 index 0000000000000000000000000000000000000000..457fbe357505d03fcb31b78355b3fb6d647ad448 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0z/0z3lzxzZYizi8xII13xYgAXADvdnh6jxr7YFWIXGNwM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0z/0zQbV0tSDEZdrAAiwHnIM0ouMj_22o8LP2y6pc6chRQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zQbV0tSDEZdrAAiwHnIM0ouMj_22o8LP2y6pc6chRQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..9b15b44de549d162aa0c4fa52010ef0fe91f8a8b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zQbV0tSDEZdrAAiwHnIM0ouMj_22o8LP2y6pc6chRQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0z/0zc2_ZpgSkiPyXEGNQXQ9471k_wTKFbgWQU7eB_4HBY.cache b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zc2_ZpgSkiPyXEGNQXQ9471k_wTKFbgWQU7eB_4HBY.cache new file mode 100644 index 0000000000000000000000000000000000000000..57a7566a13256303bd25b090b084093a0db8f2d3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zc2_ZpgSkiPyXEGNQXQ9471k_wTKFbgWQU7eB_4HBY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/0z/0zvQCUH9IlEliZm-tx1fQ-8sLb2K58dLP97FHqkD8tY.cache b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zvQCUH9IlEliZm-tx1fQ-8sLb2K58dLP97FHqkD8tY.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ebd0d8224b95fc3f2c77b40c470618d28355d04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/0z/0zvQCUH9IlEliZm-tx1fQ-8sLb2K58dLP97FHqkD8tY.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"3file-digest://app/assets/stylesheets/home.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/17/17ubBLAfkO54mc-A02R2ogRUedXvfWmqjsuLK0OEd7c.cache b/T5/tmp/cache/assets/sprockets/v3.0/17/17ubBLAfkO54mc-A02R2ogRUedXvfWmqjsuLK0OEd7c.cache new file mode 100644 index 0000000000000000000000000000000000000000..681616caf5abdd5391b88861cddb6b943745afa0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/17/17ubBLAfkO54mc-A02R2ogRUedXvfWmqjsuLK0OEd7c.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1J/1JpNtu2JBIggVJuMmn2u2VXreWDTMWM5uH6rTsMTgi0.cache b/T5/tmp/cache/assets/sprockets/v3.0/1J/1JpNtu2JBIggVJuMmn2u2VXreWDTMWM5uH6rTsMTgi0.cache new file mode 100644 index 0000000000000000000000000000000000000000..df745c9329829272968ef75a70a02df4314f0457 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/1J/1JpNtu2JBIggVJuMmn2u2VXreWDTMWM5uH6rTsMTgi0.cache @@ -0,0 +1 @@ +"%-¦rÍ%âÃZàpn„]©£"8‹ç©Îú~ëÇuí \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1Q/1Q-LIAIiigTWkyAemnXaqEL3GZdsA_kb3dlL5NeZsr8.cache b/T5/tmp/cache/assets/sprockets/v3.0/1Q/1Q-LIAIiigTWkyAemnXaqEL3GZdsA_kb3dlL5NeZsr8.cache new file mode 100644 index 0000000000000000000000000000000000000000..961bfddc5b4d112c8bf3c22a2a447b13ede3d246 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/1Q/1Q-LIAIiigTWkyAemnXaqEL3GZdsA_kb3dlL5NeZsr8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1n/1nsLXqoi1ijjMdcq2cKPe6BIMQZGghDhcHxiZK7JHOI.cache b/T5/tmp/cache/assets/sprockets/v3.0/1n/1nsLXqoi1ijjMdcq2cKPe6BIMQZGghDhcHxiZK7JHOI.cache new file mode 100644 index 0000000000000000000000000000000000000000..58ded955e4612736cd0260750d063c7c6a6464f0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/1n/1nsLXqoi1ijjMdcq2cKPe6BIMQZGghDhcHxiZK7JHOI.cache @@ -0,0 +1 @@ +"%óÔn鋸úxÿéÒ|Šûbà[Ä£ŒÌYÛÂxF™ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1t/1t1oEpUY0Fd10Syrjh6b0t9AjNkxwjCEqu2UVURu7iE.cache b/T5/tmp/cache/assets/sprockets/v3.0/1t/1t1oEpUY0Fd10Syrjh6b0t9AjNkxwjCEqu2UVURu7iE.cache new file mode 100644 index 0000000000000000000000000000000000000000..39ed2c778d702b45152154d039cadc9f9c1aaa6c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/1t/1t1oEpUY0Fd10Syrjh6b0t9AjNkxwjCEqu2UVURu7iE.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/unique-id.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1t/1tzBBYALjQJyf5nstOS2hGvZlpZ4m5KZRvOgt_rKuD0.cache b/T5/tmp/cache/assets/sprockets/v3.0/1t/1tzBBYALjQJyf5nstOS2hGvZlpZ4m5KZRvOgt_rKuD0.cache new file mode 100644 index 0000000000000000000000000000000000000000..557923853c180f6a8f2e9c4d80ee4de02c401d87 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/1t/1tzBBYALjQJyf5nstOS2hGvZlpZ4m5KZRvOgt_rKuD0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/1w/1wRV23qQF3sJ8o6OCjmcHfDd0PD1OHyMrXEIE0oceCQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/1w/1wRV23qQF3sJ8o6OCjmcHfDd0PD1OHyMrXEIE0oceCQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..a7027f5f57e71efabc33ad4c486a9af023ee05fb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/1w/1wRV23qQF3sJ8o6OCjmcHfDd0PD1OHyMrXEIE0oceCQ.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=1df69bd2758ec1929adb4ba8b8660bfeffc3e22184cc294ff4b3c1f3b4a26b84:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/22/22RT1_Zbl3hw4YXdpIhQzzCQF0sQYmwwo1kVTZO0mbA.cache b/T5/tmp/cache/assets/sprockets/v3.0/22/22RT1_Zbl3hw4YXdpIhQzzCQF0sQYmwwo1kVTZO0mbA.cache new file mode 100644 index 0000000000000000000000000000000000000000..39e28795955a99c8d8ca784f332c231191b756ac --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/22/22RT1_Zbl3hw4YXdpIhQzzCQF0sQYmwwo1kVTZO0mbA.cache @@ -0,0 +1 @@ +"%þï§èÄ&2(å‚ ›‹QQ,r0œ¿6z×{bW¢Ó= \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/23/23LuRtbalu6Qnvh3OEy4UO87pYa1CtKLadxwcTKxidI.cache b/T5/tmp/cache/assets/sprockets/v3.0/23/23LuRtbalu6Qnvh3OEy4UO87pYa1CtKLadxwcTKxidI.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/23/23LuRtbalu6Qnvh3OEy4UO87pYa1CtKLadxwcTKxidI.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/24/24gtN6s9ZNCHin2Hmnm6-fVI3HR8W9wZZVQfJ6GaRXk.cache b/T5/tmp/cache/assets/sprockets/v3.0/24/24gtN6s9ZNCHin2Hmnm6-fVI3HR8W9wZZVQfJ6GaRXk.cache new file mode 100644 index 0000000000000000000000000000000000000000..ecd11548a1e1f90eef6ff4bcda086e4b789065be Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/24/24gtN6s9ZNCHin2Hmnm6-fVI3HR8W9wZZVQfJ6GaRXk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/27/27hmO4e9FlLI14UjnydGIhSD73Us-xz3fvbeqfSDuwk.cache b/T5/tmp/cache/assets/sprockets/v3.0/27/27hmO4e9FlLI14UjnydGIhSD73Us-xz3fvbeqfSDuwk.cache new file mode 100644 index 0000000000000000000000000000000000000000..4f3235ee0489490a6a945ee6819cde6b5e8bd813 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/27/27hmO4e9FlLI14UjnydGIhSD73Us-xz3fvbeqfSDuwk.cache @@ -0,0 +1 @@ +I"‚app/assets/stylesheets/prices.scss?type=text/css&pipeline=self&id=2e3793187fc7b3b9241dc12a2bb1fbbeeed5db32dbdeddac3e945184c42b9be5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2B/2ByNq3AY2P6IqvtM8A-CDWo3wPGqSwBLmiM9bnyBOR0.cache b/T5/tmp/cache/assets/sprockets/v3.0/2B/2ByNq3AY2P6IqvtM8A-CDWo3wPGqSwBLmiM9bnyBOR0.cache new file mode 100644 index 0000000000000000000000000000000000000000..609b71d0fa1e3deb64c0fdf256f4a1adfffa7acf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2B/2ByNq3AY2P6IqvtM8A-CDWo3wPGqSwBLmiM9bnyBOR0.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=a62da26fdc1c3a68555a94fcf24f8d5a1d81a002b07e61f772a970c89d138353:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2D/2DTesFMVI8F_VZdM-fWA-Vi47cjk-IA1hge5-TnJ6Kc.cache b/T5/tmp/cache/assets/sprockets/v3.0/2D/2DTesFMVI8F_VZdM-fWA-Vi47cjk-IA1hge5-TnJ6Kc.cache new file mode 100644 index 0000000000000000000000000000000000000000..b2ffe3b94a3497e5ab8c95ad7fcfc74aaa223790 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/2D/2DTesFMVI8F_VZdM-fWA-Vi47cjk-IA1hge5-TnJ6Kc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2E/2E23mm5ZItvXO7UAiP-ahh7JJlJGas_20YRPYoA_mf4.cache b/T5/tmp/cache/assets/sprockets/v3.0/2E/2E23mm5ZItvXO7UAiP-ahh7JJlJGas_20YRPYoA_mf4.cache new file mode 100644 index 0000000000000000000000000000000000000000..708d3bb987ffee352496e605f8be61144dc39c48 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2E/2E23mm5ZItvXO7UAiP-ahh7JJlJGas_20YRPYoA_mf4.cache @@ -0,0 +1 @@ +I"’app/assets/javascripts/prices.coffee?type=application/javascript&pipeline=self&id=488a6611452c885e2d26ddd4e122112bd9f9b4fdd161a93459cc9e697b38d260:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2F/2FxrZCI9SzCwTGZUV1HKgWD3TdZcjsgWl-QerMxKduo.cache b/T5/tmp/cache/assets/sprockets/v3.0/2F/2FxrZCI9SzCwTGZUV1HKgWD3TdZcjsgWl-QerMxKduo.cache new file mode 100644 index 0000000000000000000000000000000000000000..d8d49fe4213dc588d3bead5bbaaeccf5eb7365c7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2F/2FxrZCI9SzCwTGZUV1HKgWD3TdZcjsgWl-QerMxKduo.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=13a37c422bcbf878ee57ce148b1a080094641230c03a5bcbc920ad5414517d38:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2M/2MhiA0x_T_Gd5oiH8pKHRri2e9JqzJJiAn2J0eSruL0.cache b/T5/tmp/cache/assets/sprockets/v3.0/2M/2MhiA0x_T_Gd5oiH8pKHRri2e9JqzJJiAn2J0eSruL0.cache new file mode 100644 index 0000000000000000000000000000000000000000..96a2ad8db1422c06cbd552bfc213df21d7025ff7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2M/2MhiA0x_T_Gd5oiH8pKHRri2e9JqzJJiAn2J0eSruL0.cache @@ -0,0 +1 @@ +I"ß/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/menu.js?type=application/javascript&pipeline=self&id=3a20e66da4e3d1cd3f5eb9ae22b11141bd4a361ffe325af5e62a6d240bccc01b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2R/2R_EOgBfNyw0BArfFF6_758cwlzqwdY6YtnlK0aVIT8.cache b/T5/tmp/cache/assets/sprockets/v3.0/2R/2R_EOgBfNyw0BArfFF6_758cwlzqwdY6YtnlK0aVIT8.cache new file mode 100644 index 0000000000000000000000000000000000000000..106e81a1e1d1e9d2768af4676ff36da35535f0c3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2R/2R_EOgBfNyw0BArfFF6_758cwlzqwdY6YtnlK0aVIT8.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=ab905a4a7760cc9527c25185f425b885e2dd71013062cec1b3570f1fbf136c20:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2T/2T0_8NSxzVg1YS8GEYqFcTFWmzLJoWXtal91g0O1icc.cache b/T5/tmp/cache/assets/sprockets/v3.0/2T/2T0_8NSxzVg1YS8GEYqFcTFWmzLJoWXtal91g0O1icc.cache new file mode 100644 index 0000000000000000000000000000000000000000..611ac03079fd37cb569d4afee7b8109de08b36dc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/2T/2T0_8NSxzVg1YS8GEYqFcTFWmzLJoWXtal91g0O1icc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2d/2dehC5f1yO6b0RJqvvdBIS0A-YLskNOVN4S2c5xKcsM.cache b/T5/tmp/cache/assets/sprockets/v3.0/2d/2dehC5f1yO6b0RJqvvdBIS0A-YLskNOVN4S2c5xKcsM.cache new file mode 100644 index 0000000000000000000000000000000000000000..882a90e86aeca7075b5e907ebd02b5c6f27e5abe Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/2d/2dehC5f1yO6b0RJqvvdBIS0A-YLskNOVN4S2c5xKcsM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2e/2e9t-vIOPupLIHi_lXVy1wumgGRIfWt7XRypHw1b5d4.cache b/T5/tmp/cache/assets/sprockets/v3.0/2e/2e9t-vIOPupLIHi_lXVy1wumgGRIfWt7XRypHw1b5d4.cache new file mode 100644 index 0000000000000000000000000000000000000000..d65a16b41cae87276a41b51d2eed6e7e4b60e2ba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2e/2e9t-vIOPupLIHi_lXVy1wumgGRIfWt7XRypHw1b5d4.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=bb8159a051a85649eefddb7b3b4429ef65bb7f297e5bfe563566dbf8835899a0:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2h/2hbxkS9ff0mdTNmp0lnff9DIKrqc0jKH-fR0B_8Ch5E.cache b/T5/tmp/cache/assets/sprockets/v3.0/2h/2hbxkS9ff0mdTNmp0lnff9DIKrqc0jKH-fR0B_8Ch5E.cache new file mode 100644 index 0000000000000000000000000000000000000000..9a723fb08ada4a82a0b63dac116d755cc0efca60 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2h/2hbxkS9ff0mdTNmp0lnff9DIKrqc0jKH-fR0B_8Ch5E.cache @@ -0,0 +1 @@ +"%ÕZˆâ“<®×»]kQÞOž-<¥N,Ÿ/À˜Šï«'R \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2v/2vdoGBIlJ4hLzQj0EO2MV7SpzZHMLZm33xNyHjbDt4w.cache b/T5/tmp/cache/assets/sprockets/v3.0/2v/2vdoGBIlJ4hLzQj0EO2MV7SpzZHMLZm33xNyHjbDt4w.cache new file mode 100644 index 0000000000000000000000000000000000000000..3f4fadb5cb2d9003777444fab0ed9ace060571c4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2v/2vdoGBIlJ4hLzQj0EO2MV7SpzZHMLZm33xNyHjbDt4w.cache @@ -0,0 +1 @@ +I"Õ/home/wellington/.rvm/gems/ruby-2.5.0/gems/turbolinks-source-5.1.0/lib/assets/javascripts/turbolinks.js?type=application/javascript&pipeline=self&id=40d35b4d3891089c41d7426650e7dafb74fca5457e4c801782d0dd2022b65c91:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/2x/2x3mRfLGs1mRr5IT-uxHmWNlrofCUsNBwTSdsfTuFes.cache b/T5/tmp/cache/assets/sprockets/v3.0/2x/2x3mRfLGs1mRr5IT-uxHmWNlrofCUsNBwTSdsfTuFes.cache new file mode 100644 index 0000000000000000000000000000000000000000..29c223adf4f12396b73584640964cd629b4b73b7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/2x/2x3mRfLGs1mRr5IT-uxHmWNlrofCUsNBwTSdsfTuFes.cache @@ -0,0 +1 @@ +"%k)”é8ͶÛ.Ù¶qˆv¤vôª ǺLfÈä¦ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/34/34nm5eLGWbRWP1-14FjyrUUD_Cp4V2NuncIU4EGBLyY.cache b/T5/tmp/cache/assets/sprockets/v3.0/34/34nm5eLGWbRWP1-14FjyrUUD_Cp4V2NuncIU4EGBLyY.cache new file mode 100644 index 0000000000000000000000000000000000000000..adc7f9bef18c93e403eb3611f008b0881a57b640 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/34/34nm5eLGWbRWP1-14FjyrUUD_Cp4V2NuncIU4EGBLyY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3B/3BZC0wWGyUOqvNcrm930SWIWUOkZJfxrYDV2lveb6Pg.cache b/T5/tmp/cache/assets/sprockets/v3.0/3B/3BZC0wWGyUOqvNcrm930SWIWUOkZJfxrYDV2lveb6Pg.cache new file mode 100644 index 0000000000000000000000000000000000000000..92e09fdb697948e75c15626e49e745633fddd7f6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3B/3BZC0wWGyUOqvNcrm930SWIWUOkZJfxrYDV2lveb6Pg.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-clip.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3D/3D8dOTPYlngNEnR2U2HABLLeY6NlgU73B1X65fsp7V8.cache b/T5/tmp/cache/assets/sprockets/v3.0/3D/3D8dOTPYlngNEnR2U2HABLLeY6NlgU73B1X65fsp7V8.cache new file mode 100644 index 0000000000000000000000000000000000000000..c3f675ebcd9645635b4e97f78ce1a8afa71a924b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/3D/3D8dOTPYlngNEnR2U2HABLLeY6NlgU73B1X65fsp7V8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3D/3Doz0QgBFdzdnrTN8-Mpy5dG2SkymKzCVaZ74sf2014.cache b/T5/tmp/cache/assets/sprockets/v3.0/3D/3Doz0QgBFdzdnrTN8-Mpy5dG2SkymKzCVaZ74sf2014.cache new file mode 100644 index 0000000000000000000000000000000000000000..f9ff47ad9e074a1b39d21b3b8bb97e467a5a121a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3D/3Doz0QgBFdzdnrTN8-Mpy5dG2SkymKzCVaZ74sf2014.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=21822fa4f84a931b87fc31d554e7b9f6b45ec3fdc2b371e2f28141ccbc78d084:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3E/3ESBHuSyPN_4G6Q8jznEi6t0sDpjHP_O8QnxIUiNlX8.cache b/T5/tmp/cache/assets/sprockets/v3.0/3E/3ESBHuSyPN_4G6Q8jznEi6t0sDpjHP_O8QnxIUiNlX8.cache new file mode 100644 index 0000000000000000000000000000000000000000..f52ef8a996c0f1a9df95728b637c927d7a24788f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3E/3ESBHuSyPN_4G6Q8jznEi6t0sDpjHP_O8QnxIUiNlX8.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=0b98e36d3a440abfead81846c6f332c10f339e396878dee3013d0993f2d062a0:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3H/3HaPV7txIrYfHLrE6AFT-36mM0wqHM6IX6HplB_BIvo.cache b/T5/tmp/cache/assets/sprockets/v3.0/3H/3HaPV7txIrYfHLrE6AFT-36mM0wqHM6IX6HplB_BIvo.cache new file mode 100644 index 0000000000000000000000000000000000000000..9633dc90e08ea168062cca80bd9aaf1c2e409b19 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3H/3HaPV7txIrYfHLrE6AFT-36mM0wqHM6IX6HplB_BIvo.cache @@ -0,0 +1 @@ +"%Nß’´Åá—VÅ•ÌQ˜ëÁ‡]O*êŒOì+ç8¹×J9 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3e/3eGy-MzxG74O7_Xt_aytav9lLl6LPUvTuGQO5pTKOAY.cache b/T5/tmp/cache/assets/sprockets/v3.0/3e/3eGy-MzxG74O7_Xt_aytav9lLl6LPUvTuGQO5pTKOAY.cache new file mode 100644 index 0000000000000000000000000000000000000000..e6d03049e5fd0912aa2ef3d2b29ff62bf094d34f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/3e/3eGy-MzxG74O7_Xt_aytav9lLl6LPUvTuGQO5pTKOAY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3g/3gPaEPW1ffRRKVxgMC64YizA90PYK971sRbXN7wTSzQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/3g/3gPaEPW1ffRRKVxgMC64YizA90PYK971sRbXN7wTSzQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..4eadf77475e1275caa00083ceec4b14e279f19eb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/3g/3gPaEPW1ffRRKVxgMC64YizA90PYK971sRbXN7wTSzQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3m/3m0HEruOKhDzdyPcmlSq1C1DFeF-X3rKh3JmzqXCiQg.cache b/T5/tmp/cache/assets/sprockets/v3.0/3m/3m0HEruOKhDzdyPcmlSq1C1DFeF-X3rKh3JmzqXCiQg.cache new file mode 100644 index 0000000000000000000000000000000000000000..7ba12bee24e89e5c542c7568d678530ecf711e5e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3m/3m0HEruOKhDzdyPcmlSq1C1DFeF-X3rKh3JmzqXCiQg.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=22a6e19a15cc2b003d23aae5164f4727f17d544ab06548c957f34cdabcfa57de:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3p/3pWU9M5r22YMU71AJ0D8B1VBvWGrmHxSxp025B9r7KU.cache b/T5/tmp/cache/assets/sprockets/v3.0/3p/3pWU9M5r22YMU71AJ0D8B1VBvWGrmHxSxp025B9r7KU.cache new file mode 100644 index 0000000000000000000000000000000000000000..620c66b0ec4e2230b385281e6ffd76cf74bb06b8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/3p/3pWU9M5r22YMU71AJ0D8B1VBvWGrmHxSxp025B9r7KU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3r/3r1BkwiUHQ1N2TrAPYUZFP5At_1GgResJmTe0XsKmF4.cache b/T5/tmp/cache/assets/sprockets/v3.0/3r/3r1BkwiUHQ1N2TrAPYUZFP5At_1GgResJmTe0XsKmF4.cache new file mode 100644 index 0000000000000000000000000000000000000000..9604d003d270de018feba5710f65b84afc87ad9e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/3r/3r1BkwiUHQ1N2TrAPYUZFP5At_1GgResJmTe0XsKmF4.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=dd4ac2420fe02631ff0624dca4a60589e6b3c509fbde9ba2079f5fa3d2acbea9:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/3x/3xN1RZ5mEVKb5f6OAfEWjai665bjUOy_JeHxwdYIujI.cache b/T5/tmp/cache/assets/sprockets/v3.0/3x/3xN1RZ5mEVKb5f6OAfEWjai665bjUOy_JeHxwdYIujI.cache new file mode 100644 index 0000000000000000000000000000000000000000..2239a0fb066c4fa342fa04fd608917828a1c9884 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/3x/3xN1RZ5mEVKb5f6OAfEWjai665bjUOy_JeHxwdYIujI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/47/47MGOSLJa8IEhJiBLdNAo3U3AcNUtBNSS2c5Y8V2Zdc.cache b/T5/tmp/cache/assets/sprockets/v3.0/47/47MGOSLJa8IEhJiBLdNAo3U3AcNUtBNSS2c5Y8V2Zdc.cache new file mode 100644 index 0000000000000000000000000000000000000000..0ca982673702d8501b26e526a5711e6a6641505f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/47/47MGOSLJa8IEhJiBLdNAo3U3AcNUtBNSS2c5Y8V2Zdc.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/home.coffee?type=application/javascript&pipeline=self&id=e76bc2481620d0ed948047836c8aced2ebcdedd0b55faaaafc7dbb8daf7cb520:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4B/4BVeOW7oSEgjBrXEwuom_hOjhbZBFC6-gxWbN8LwsvY.cache b/T5/tmp/cache/assets/sprockets/v3.0/4B/4BVeOW7oSEgjBrXEwuom_hOjhbZBFC6-gxWbN8LwsvY.cache new file mode 100644 index 0000000000000000000000000000000000000000..d6203d881a89998a464011dc242dc87d2c2c0c28 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4B/4BVeOW7oSEgjBrXEwuom_hOjhbZBFC6-gxWbN8LwsvY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4F/4F3iGePhy1URELp--wAeKno1YQgQkmvvzDMcHHBP3eg.cache b/T5/tmp/cache/assets/sprockets/v3.0/4F/4F3iGePhy1URELp--wAeKno1YQgQkmvvzDMcHHBP3eg.cache new file mode 100644 index 0000000000000000000000000000000000000000..f47382ed25db942c51e2f90c676aebd342c5a1cd Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4F/4F3iGePhy1URELp--wAeKno1YQgQkmvvzDMcHHBP3eg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4H/4H_dCLfZqvkHd2C99l9Ov8RK9xMae3p4ksOg1DheWQw.cache b/T5/tmp/cache/assets/sprockets/v3.0/4H/4H_dCLfZqvkHd2C99l9Ov8RK9xMae3p4ksOg1DheWQw.cache new file mode 100644 index 0000000000000000000000000000000000000000..615be736d0ea41b0f16896da0dad008441421b6d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4H/4H_dCLfZqvkHd2C99l9Ov8RK9xMae3p4ksOg1DheWQw.cache @@ -0,0 +1 @@ +"%iýßÍßOÞù‚†Hù3 lá¹;‚°¸Ó¯ÿüY¡…4Q \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4J/4Jdxn8d9Vd8qzritQdFTILLb773oUxA0B1iYcy6_aaI.cache b/T5/tmp/cache/assets/sprockets/v3.0/4J/4Jdxn8d9Vd8qzritQdFTILLb773oUxA0B1iYcy6_aaI.cache new file mode 100644 index 0000000000000000000000000000000000000000..4d93d61c9057af8c8d3a755eb12c84c50f613504 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4J/4Jdxn8d9Vd8qzritQdFTILLb773oUxA0B1iYcy6_aaI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4L/4LfeeNKlaGfTQuAw6OxHdu0qagBe-H0U6F12vujci1Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/4L/4LfeeNKlaGfTQuAw6OxHdu0qagBe-H0U6F12vujci1Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..a11c87397d1b2cbbbdff8c8105ca67f03159e949 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4L/4LfeeNKlaGfTQuAw6OxHdu0qagBe-H0U6F12vujci1Q.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4O/4OyMTf-DtIxm3OtZR-yRDdBSYTJ7yk_Mg8-i-tka7vg.cache b/T5/tmp/cache/assets/sprockets/v3.0/4O/4OyMTf-DtIxm3OtZR-yRDdBSYTJ7yk_Mg8-i-tka7vg.cache new file mode 100644 index 0000000000000000000000000000000000000000..12aaebfee29b619496d3c3299e8b9ee2e9780e38 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4O/4OyMTf-DtIxm3OtZR-yRDdBSYTJ7yk_Mg8-i-tka7vg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4_/4_AYJLL0_1LSKRhNPDFoDnxi1SwUBvF2xEHEIuWQe-s.cache b/T5/tmp/cache/assets/sprockets/v3.0/4_/4_AYJLL0_1LSKRhNPDFoDnxi1SwUBvF2xEHEIuWQe-s.cache new file mode 100644 index 0000000000000000000000000000000000000000..46bb4dd7b1c0375cda8b90ddd9c25b056f2d1dbc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4_/4_AYJLL0_1LSKRhNPDFoDnxi1SwUBvF2xEHEIuWQe-s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4a/4aU1sVZpXHoWvRyPcyx_gyMQsOuUAnTcoW42qeUjBlI.cache b/T5/tmp/cache/assets/sprockets/v3.0/4a/4aU1sVZpXHoWvRyPcyx_gyMQsOuUAnTcoW42qeUjBlI.cache new file mode 100644 index 0000000000000000000000000000000000000000..049eafac94b33a2589e27c521f306bae58d7f3ba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4a/4aU1sVZpXHoWvRyPcyx_gyMQsOuUAnTcoW42qeUjBlI.cache @@ -0,0 +1 @@ +"%máûÁ‘ÉdÙñÏÜúb8Ý»$ȨpLÒêfö:K°» \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4h/4hCqzeMY7VSSc3owgu70AkKGQ71kSa0shhRkbDzr2U8.cache b/T5/tmp/cache/assets/sprockets/v3.0/4h/4hCqzeMY7VSSc3owgu70AkKGQ71kSa0shhRkbDzr2U8.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4h/4hCqzeMY7VSSc3owgu70AkKGQ71kSa0shhRkbDzr2U8.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4h/4hpwdUKfI82TDZRgptTSH1DgJUSDKTtKTeGgM1sWVxY.cache b/T5/tmp/cache/assets/sprockets/v3.0/4h/4hpwdUKfI82TDZRgptTSH1DgJUSDKTtKTeGgM1sWVxY.cache new file mode 100644 index 0000000000000000000000000000000000000000..4b3e2e66e9223bd81397192abd9168e8a5f71464 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4h/4hpwdUKfI82TDZRgptTSH1DgJUSDKTtKTeGgM1sWVxY.cache @@ -0,0 +1 @@ +"%ÈãÑ =¢n§ï߃Áê»?¥\¶ŽF?\Ï w½ÎjŽa \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4s/4szGX-GeCOcyoc3eF8R9CCogv6L60onnOIAlrhN1zAg.cache b/T5/tmp/cache/assets/sprockets/v3.0/4s/4szGX-GeCOcyoc3eF8R9CCogv6L60onnOIAlrhN1zAg.cache new file mode 100644 index 0000000000000000000000000000000000000000..42f95a7605468bb94e55a0f6138411d84abd2d7b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4s/4szGX-GeCOcyoc3eF8R9CCogv6L60onnOIAlrhN1zAg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4v/4vaMNaiP7kUnnhbUv4erAbyt6566paWCE36_Pow2FGo.cache b/T5/tmp/cache/assets/sprockets/v3.0/4v/4vaMNaiP7kUnnhbUv4erAbyt6566paWCE36_Pow2FGo.cache new file mode 100644 index 0000000000000000000000000000000000000000..52644f9fc1b622a649e73eba1bf581543274f2bc --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4v/4vaMNaiP7kUnnhbUv4erAbyt6566paWCE36_Pow2FGo.cache @@ -0,0 +1 @@ +"%ý 9™fH«|Ý/üù웋°N4Õ$ª >5Qðc± \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4v/4vdXT6p1xynlpli31LBQRsQrL7GMZFM-DYoxJzN61mw.cache b/T5/tmp/cache/assets/sprockets/v3.0/4v/4vdXT6p1xynlpli31LBQRsQrL7GMZFM-DYoxJzN61mw.cache new file mode 100644 index 0000000000000000000000000000000000000000..48d8a8707beede08ec37a814147ee730fa4d1ffb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/4v/4vdXT6p1xynlpli31LBQRsQrL7GMZFM-DYoxJzN61mw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/4y/4yJIIqCyYr2pR7d_57XH1rJN-x78wOS3jLePMXOdL8I.cache b/T5/tmp/cache/assets/sprockets/v3.0/4y/4yJIIqCyYr2pR7d_57XH1rJN-x78wOS3jLePMXOdL8I.cache new file mode 100644 index 0000000000000000000000000000000000000000..a77872f7ac118ecde086e4f5d66275b816e06d88 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/4y/4yJIIqCyYr2pR7d_57XH1rJN-x78wOS3jLePMXOdL8I.cache @@ -0,0 +1 @@ +"%dgNlµ1« öLO°óøÌà°9XÿÁqÔH¬B \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5-/5-Brf_-osxwPkmTakVXuhH6Mo6B8EvScGL-LtMZ-EiI.cache b/T5/tmp/cache/assets/sprockets/v3.0/5-/5-Brf_-osxwPkmTakVXuhH6Mo6B8EvScGL-LtMZ-EiI.cache new file mode 100644 index 0000000000000000000000000000000000000000..c426663f014c8a011845ad96402304ce3e04c4ff Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5-/5-Brf_-osxwPkmTakVXuhH6Mo6B8EvScGL-LtMZ-EiI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/56/56c8MGrcJH_xoU2BOp2P1gDEaiyEGWsn5QG1kObgArU.cache b/T5/tmp/cache/assets/sprockets/v3.0/56/56c8MGrcJH_xoU2BOp2P1gDEaiyEGWsn5QG1kObgArU.cache new file mode 100644 index 0000000000000000000000000000000000000000..07028d28d1a6762db9bcc699ade6a13d7fd97777 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/56/56c8MGrcJH_xoU2BOp2P1gDEaiyEGWsn5QG1kObgArU.cache @@ -0,0 +1 @@ +I"ä/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/disable-selection.js?type=application/javascript&pipeline=self&id=87ca4ac4ba92f7eecfec931595e634bc786e63834f4c7d0ba13a9a7c6575979e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5D/5DSre7DSNDRVmwT03gY1r5S6FJTbxBZp5txvmidcXVE.cache b/T5/tmp/cache/assets/sprockets/v3.0/5D/5DSre7DSNDRVmwT03gY1r5S6FJTbxBZp5txvmidcXVE.cache new file mode 100644 index 0000000000000000000000000000000000000000..b414318c4fa767e09b98150a0ced49ac146d6932 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5D/5DSre7DSNDRVmwT03gY1r5S6FJTbxBZp5txvmidcXVE.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-shake.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5F/5FO9WX0nNg_80Z1XfU_cYyTeuf5VeaojDbMBvkz-Ovs.cache b/T5/tmp/cache/assets/sprockets/v3.0/5F/5FO9WX0nNg_80Z1XfU_cYyTeuf5VeaojDbMBvkz-Ovs.cache new file mode 100644 index 0000000000000000000000000000000000000000..fea4acb4bff7e75cefd7c210fe0cc8f8b095efc6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5F/5FO9WX0nNg_80Z1XfU_cYyTeuf5VeaojDbMBvkz-Ovs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5G/5G9egjmtBFjQn3DSGErz56KKcNf_i_J4S-MaziGuRag.cache b/T5/tmp/cache/assets/sprockets/v3.0/5G/5G9egjmtBFjQn3DSGErz56KKcNf_i_J4S-MaziGuRag.cache new file mode 100644 index 0000000000000000000000000000000000000000..d1833ceb6cbd1a50590996c373256ae7482a5493 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5G/5G9egjmtBFjQn3DSGErz56KKcNf_i_J4S-MaziGuRag.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5L/5LPALEgSqzV_063VrGA9X1wRgwdy2r25n8HqmYElUS4.cache b/T5/tmp/cache/assets/sprockets/v3.0/5L/5LPALEgSqzV_063VrGA9X1wRgwdy2r25n8HqmYElUS4.cache new file mode 100644 index 0000000000000000000000000000000000000000..ed31f1392c25c9a19ba4edc77959c49fc9c482c6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5L/5LPALEgSqzV_063VrGA9X1wRgwdy2r25n8HqmYElUS4.cache @@ -0,0 +1 @@ +"%ÍV+7t[ž“9Tƒ8}ø‚뇴æÍG–Ýô‡ÃÕ*á \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5N/5NG--UdI0T57uok_FG4UlAmLoAFlJPdULoZlzkVdmIM.cache b/T5/tmp/cache/assets/sprockets/v3.0/5N/5NG--UdI0T57uok_FG4UlAmLoAFlJPdULoZlzkVdmIM.cache new file mode 100644 index 0000000000000000000000000000000000000000..e9389fdd0bba9811a902a75a4773adb034d1a284 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5N/5NG--UdI0T57uok_FG4UlAmLoAFlJPdULoZlzkVdmIM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5N/5Nh0ALBIiue4N7WMAB3jOZrD-UFRTgzV0QmIw02ddcg.cache b/T5/tmp/cache/assets/sprockets/v3.0/5N/5Nh0ALBIiue4N7WMAB3jOZrD-UFRTgzV0QmIw02ddcg.cache new file mode 100644 index 0000000000000000000000000000000000000000..0e3e15602cf95bf09ee9d806b682e19fb422a452 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5N/5Nh0ALBIiue4N7WMAB3jOZrD-UFRTgzV0QmIw02ddcg.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/developers.scss?type=text/css&pipeline=self&id=214c068450d8ba71af25b2e77ffe276a4f27f1660a4fd54c0349ccefc709471a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5O/5OdexF_4bjZY_bCvnQW6Nh5JlRwdcHtTSGHsUCED8LM.cache b/T5/tmp/cache/assets/sprockets/v3.0/5O/5OdexF_4bjZY_bCvnQW6Nh5JlRwdcHtTSGHsUCED8LM.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5O/5OdexF_4bjZY_bCvnQW6Nh5JlRwdcHtTSGHsUCED8LM.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5P/5Pq59JTLH0PYCJ5qbWV9PR4glM0Oa7CyJXFFb1ltQQo.cache b/T5/tmp/cache/assets/sprockets/v3.0/5P/5Pq59JTLH0PYCJ5qbWV9PR4glM0Oa7CyJXFFb1ltQQo.cache new file mode 100644 index 0000000000000000000000000000000000000000..e55cd7cd413cf323c061d35703bca0b1a8cb91c0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5P/5Pq59JTLH0PYCJ5qbWV9PR4glM0Oa7CyJXFFb1ltQQo.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ˆfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-bounce.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5R/5RtG2W2r0FDDPTbhFHp63mBso58D2ha4vls5JZoI9Mg.cache b/T5/tmp/cache/assets/sprockets/v3.0/5R/5RtG2W2r0FDDPTbhFHp63mBso58D2ha4vls5JZoI9Mg.cache new file mode 100644 index 0000000000000000000000000000000000000000..59e73d9afee111fcf6e246ceac41f33fe0d1b85b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5R/5RtG2W2r0FDDPTbhFHp63mBso58D2ha4vls5JZoI9Mg.cache @@ -0,0 +1 @@ +"%aý¶vC&Ý2šnÃ)Äk«EÖL¨˜ÉEn¥™ÇD \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5U/5U67sTKar2DRAkTDN0_S73cM2dXEfV8zWC7-4KdMsEY.cache b/T5/tmp/cache/assets/sprockets/v3.0/5U/5U67sTKar2DRAkTDN0_S73cM2dXEfV8zWC7-4KdMsEY.cache new file mode 100644 index 0000000000000000000000000000000000000000..f28aa7b64a3d9d132371fc0a5249f4f9f40e2a3c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5U/5U67sTKar2DRAkTDN0_S73cM2dXEfV8zWC7-4KdMsEY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5W/5Wls403daA4RFr15i-zJdnSQ77bO9n2H1fGznyb4MCE.cache b/T5/tmp/cache/assets/sprockets/v3.0/5W/5Wls403daA4RFr15i-zJdnSQ77bO9n2H1fGznyb4MCE.cache new file mode 100644 index 0000000000000000000000000000000000000000..33876504d9a27558cc31d420f1b14d79cd54a24f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5W/5Wls403daA4RFr15i-zJdnSQ77bO9n2H1fGznyb4MCE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=037fd7810c31994a797249d96915915bca6788f796e3d1ce518c027345c4ae58:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5e/5ek4y11Y6dwcyR8htmte1kGQPQaNGHPS23dLZmiySJw.cache b/T5/tmp/cache/assets/sprockets/v3.0/5e/5ek4y11Y6dwcyR8htmte1kGQPQaNGHPS23dLZmiySJw.cache new file mode 100644 index 0000000000000000000000000000000000000000..dfeae8a958813f67d8c1e2f7c6663eb07b135566 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5e/5ek4y11Y6dwcyR8htmte1kGQPQaNGHPS23dLZmiySJw.cache @@ -0,0 +1 @@ +I"‘app/assets/javascripts/games.coffee?type=application/javascript&pipeline=self&id=cf61d88d2152c0b42cd0e254357e94debca025ccf9fe5f73bf0bfb8231801f31:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5k/5kR4is8GBMcvfcnK0-hOQPOeKI__xMfVJYWPEzkRw1g.cache b/T5/tmp/cache/assets/sprockets/v3.0/5k/5kR4is8GBMcvfcnK0-hOQPOeKI__xMfVJYWPEzkRw1g.cache new file mode 100644 index 0000000000000000000000000000000000000000..bbe1051ea7094203b8e65af5d0920512c163647d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5k/5kR4is8GBMcvfcnK0-hOQPOeKI__xMfVJYWPEzkRw1g.cache @@ -0,0 +1 @@ +I"ã/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form-reset-mixin.js?type=application/javascript&pipeline=self&id=dd01f3fffad17cefc011dfba7abd1eadb4c323b2a9febfa95c4a8b8f9d62bb6d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5k/5knUw5lZe8eQdCvhQx0KJmLwOBJo2mdjfUQcnZXQOG0.cache b/T5/tmp/cache/assets/sprockets/v3.0/5k/5knUw5lZe8eQdCvhQx0KJmLwOBJo2mdjfUQcnZXQOG0.cache new file mode 100644 index 0000000000000000000000000000000000000000..5ac3a431cce799deeff4a7b7c08aa3689b73ef9d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5k/5knUw5lZe8eQdCvhQx0KJmLwOBJo2mdjfUQcnZXQOG0.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=513ad179639c207d633188f6b2aab5978273b9161e7f1a1f055a4f16a69f8d95:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5l/5lkrONZ43rD_unKZq-pXsk_D1w6b6LgwWh7X56Ds_tw.cache b/T5/tmp/cache/assets/sprockets/v3.0/5l/5lkrONZ43rD_unKZq-pXsk_D1w6b6LgwWh7X56Ds_tw.cache new file mode 100644 index 0000000000000000000000000000000000000000..5c390295167fb34a867bcc0d3a12d94a27878e2d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5l/5lkrONZ43rD_unKZq-pXsk_D1w6b6LgwWh7X56Ds_tw.cache @@ -0,0 +1 @@ +I"â/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/tooltip.js?type=application/javascript&pipeline=self&id=b9871d4f7ab09f7faf028cff5876b7f61b0576f5d828aabefd59bbf6665fb731:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5o/5obhPiAV0UsjqMD3TB0a9WRbJ5pe6FoSzmtSspJUw2A.cache b/T5/tmp/cache/assets/sprockets/v3.0/5o/5obhPiAV0UsjqMD3TB0a9WRbJ5pe6FoSzmtSspJUw2A.cache new file mode 100644 index 0000000000000000000000000000000000000000..7fd17349a447c969cfe82471b6231c806d049a35 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/5o/5obhPiAV0UsjqMD3TB0a9WRbJ5pe6FoSzmtSspJUw2A.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5r/5rmi4ZAO4tnDg4J-l3pIgokxBr9H6HSwgziGCaCZxZQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/5r/5rmi4ZAO4tnDg4J-l3pIgokxBr9H6HSwgziGCaCZxZQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..0db550b13b0a94d30f694b0d6f59e68e4a0f7cc2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5r/5rmi4ZAO4tnDg4J-l3pIgokxBr9H6HSwgziGCaCZxZQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/5w/5w7pVg9656BnYEiEbCRYDyOTiFv8mxFTdfhn-9XJrQY.cache b/T5/tmp/cache/assets/sprockets/v3.0/5w/5w7pVg9656BnYEiEbCRYDyOTiFv8mxFTdfhn-9XJrQY.cache new file mode 100644 index 0000000000000000000000000000000000000000..60508ada5fb6317fb29a0e1b409378b888aa2a27 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/5w/5w7pVg9656BnYEiEbCRYDyOTiFv8mxFTdfhn-9XJrQY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/61/61DYE6KWkT0kZHOqhoDyZVE-tFnswqDzUluEf04Z9qI.cache b/T5/tmp/cache/assets/sprockets/v3.0/61/61DYE6KWkT0kZHOqhoDyZVE-tFnswqDzUluEf04Z9qI.cache new file mode 100644 index 0000000000000000000000000000000000000000..b54e6ccaefb40dd05f170edd4b7e8acaecaa1469 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/61/61DYE6KWkT0kZHOqhoDyZVE-tFnswqDzUluEf04Z9qI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/61/61NnjwgWJYDz0sS2g3g9nWfd0KeVJWSLD3LJXiGDlMI.cache b/T5/tmp/cache/assets/sprockets/v3.0/61/61NnjwgWJYDz0sS2g3g9nWfd0KeVJWSLD3LJXiGDlMI.cache new file mode 100644 index 0000000000000000000000000000000000000000..976b84cb84bb986a8e1c7769cbcb36b608bfff22 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/61/61NnjwgWJYDz0sS2g3g9nWfd0KeVJWSLD3LJXiGDlMI.cache @@ -0,0 +1 @@ +"%¹Ž¤z´÷ð‰y”‰³ð’ËÆO]u«"MñÛŽ’¥Â \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/64/64Jy4LUYSIk3MJwpBycz4_HY3TEW0Qj3z_Au4dQf-uI.cache b/T5/tmp/cache/assets/sprockets/v3.0/64/64Jy4LUYSIk3MJwpBycz4_HY3TEW0Qj3z_Au4dQf-uI.cache new file mode 100644 index 0000000000000000000000000000000000000000..b61482696948642c2d34144f92d54ea7f5ca0ad3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/64/64Jy4LUYSIk3MJwpBycz4_HY3TEW0Qj3z_Au4dQf-uI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/68/68S8Z3haQl2Dfwdn2Ft8rXSNua4D4oUOziTfPbLYFpg.cache b/T5/tmp/cache/assets/sprockets/v3.0/68/68S8Z3haQl2Dfwdn2Ft8rXSNua4D4oUOziTfPbLYFpg.cache new file mode 100644 index 0000000000000000000000000000000000000000..c987438a9aa173c11412abc24291e764eb6a3adb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/68/68S8Z3haQl2Dfwdn2Ft8rXSNua4D4oUOziTfPbLYFpg.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=fd3fe71259480f458deadbc70013ebcbae382ee6629b445d2556cc5d57291476:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/69/69IjUz6oVBGKitxODMB0bFbDn082Cr1fYcrfjfdl0Tg.cache b/T5/tmp/cache/assets/sprockets/v3.0/69/69IjUz6oVBGKitxODMB0bFbDn082Cr1fYcrfjfdl0Tg.cache new file mode 100644 index 0000000000000000000000000000000000000000..d4ac6cfff22af83251ac063a7e37eef761ad346b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/69/69IjUz6oVBGKitxODMB0bFbDn082Cr1fYcrfjfdl0Tg.cache @@ -0,0 +1 @@ +I"app/assets/stylesheets/games.scss?type=text/css&pipeline=self&id=2faf24974001a302b2988ac399915f4efefb735b9f7872a572f539f9e9c4fbc0:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6F/6FfiIpnOF_CI8sGUWZH1vy61D1mwtuabvI-8zxuT6VI.cache b/T5/tmp/cache/assets/sprockets/v3.0/6F/6FfiIpnOF_CI8sGUWZH1vy61D1mwtuabvI-8zxuT6VI.cache new file mode 100644 index 0000000000000000000000000000000000000000..599cf7b1a4269d75ad750c3dccc8fa551cbd82d9 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/6F/6FfiIpnOF_CI8sGUWZH1vy61D1mwtuabvI-8zxuT6VI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6N/6N421iGJZEFofZoK5CbbwEpHe43UAI4fBOVxFQuVKsw.cache b/T5/tmp/cache/assets/sprockets/v3.0/6N/6N421iGJZEFofZoK5CbbwEpHe43UAI4fBOVxFQuVKsw.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6N/6N421iGJZEFofZoK5CbbwEpHe43UAI4fBOVxFQuVKsw.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6V/6VLwMSUMD8Lg_0mfr5LLjAbWsB4FERsRYQMAlww8xu4.cache b/T5/tmp/cache/assets/sprockets/v3.0/6V/6VLwMSUMD8Lg_0mfr5LLjAbWsB4FERsRYQMAlww8xu4.cache new file mode 100644 index 0000000000000000000000000000000000000000..937e23c3d3fc2b999d2b336af18c5cfef70ec42b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/6V/6VLwMSUMD8Lg_0mfr5LLjAbWsB4FERsRYQMAlww8xu4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6Y/6YNbeRmZG5FarscaHBTK0uT0sAYZdnoQcjA-ZdrQjbA.cache b/T5/tmp/cache/assets/sprockets/v3.0/6Y/6YNbeRmZG5FarscaHBTK0uT0sAYZdnoQcjA-ZdrQjbA.cache new file mode 100644 index 0000000000000000000000000000000000000000..18f38bc95f3f26360cf3dcb47f8f7ae73e8a4c9d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6Y/6YNbeRmZG5FarscaHBTK0uT0sAYZdnoQcjA-ZdrQjbA.cache @@ -0,0 +1 @@ +"%h àô—’s25…±’—Ó‘¶Æ`ÆÉpÖ{j\_—· \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6b/6bN-R4xUlyYfWx7CDkze9-iBtI5U1UAqzbxQ3XjlBpk.cache b/T5/tmp/cache/assets/sprockets/v3.0/6b/6bN-R4xUlyYfWx7CDkze9-iBtI5U1UAqzbxQ3XjlBpk.cache new file mode 100644 index 0000000000000000000000000000000000000000..30c6bf48c9ea23679c54161f14594660170608a1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6b/6bN-R4xUlyYfWx7CDkze9-iBtI5U1UAqzbxQ3XjlBpk.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=f5d64aca85313662fc2b7776e641cf7a5dc2fcec3e51b81b9c28c9fe5e6c5ef5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6c/6cTBxqtgErQcioWQ2Sb0Nk3HSYnBYCL2HmKra4nczvA.cache b/T5/tmp/cache/assets/sprockets/v3.0/6c/6cTBxqtgErQcioWQ2Sb0Nk3HSYnBYCL2HmKra4nczvA.cache new file mode 100644 index 0000000000000000000000000000000000000000..1bbf9abcf547b206a9caf9a89e55732b309bb64a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6c/6cTBxqtgErQcioWQ2Sb0Nk3HSYnBYCL2HmKra4nczvA.cache @@ -0,0 +1,6 @@ +xÚÍYÏoÓ0Õ$T&ç¸%›¦ŒJ€hgv@p@nú%uåüX줋úc“@üݤjªØ4MbOØ›ä}ï9ùÞküåÉñ÷Aì6pŸ½›":]}½>y QŽÓ8 +!bV)Åq4pon®O^ðçĦtpõtsâyŠ0¡Vyº:ð-Ic(Sê²"J‚=ÄÊjÎåˆz)NØ+øÑvA‚ 8‚âWÅ~m`Ö@™ë8Î4Á™)/X‰·Ó<t©“fãÂÚçöéö÷ì6ƒ´°2lm_اök§äv¥À(GÍ]ìÌñ$Øœ¤(И€=Û-ýBÔ•òâÈÇÁ~• +øVè„qF¡“‡¨<¨À{(ð^„·Þº +ý^ ÝSe:PRЊÊýçžP5ß{h‚Ç2wðÞ·°úù¿s_Gë®ô3+_Ê]îL厌ª¨“×î à¬âNC4÷L'Í^“q4grÉX¡.%ó´acv6Ç'Gx«3¹*Î\kZr‹õEUÅÈ4†#·P¦9 ý¬BÜ’—&¸ëÜ;ïc Éuâöž¯€s%3¦'¸9/ðV÷ +Ô¹F7 ÄÝÍ%°¯Í°×Íý¡sS䃅<†s°€ÀfSÚYdïÞ.òY²íU*5{àp¥G¼{©8¢EÈZ£?ZdüÔݯ-Z~ÿZj#]JiL²´Úüh8èHÅ4½ð-VáðýþàØÝ¦à¸×Fºp´4¦ îz‰¡ZY/&ÄJPZ{Xb6Ö—nÉÕ8à€†zgDM +tNjšøõJU<U¡4¤Þü¥§Ì"PvLÜÝlw<+r뎊ÌÚãW¤¿7D¯´/ÞNå÷ÅÎUú–¡¸/Àw¾ØÄ3SgSoW[ö]sú{Šu¥ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6j/6jgCQrNZalphFgD3FfC7EdZDEZx4YxE4qn1HzYDUhvA.cache b/T5/tmp/cache/assets/sprockets/v3.0/6j/6jgCQrNZalphFgD3FfC7EdZDEZx4YxE4qn1HzYDUhvA.cache new file mode 100644 index 0000000000000000000000000000000000000000..3ae94efb40fe02ffe13dfba56c3e97ae0730bee1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6j/6jgCQrNZalphFgD3FfC7EdZDEZx4YxE4qn1HzYDUhvA.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Šfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-transfer.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6k/6k5wNExfN2UqJpMVdhWTNr_UsdAV21H3kjCx5sjjEW0.cache b/T5/tmp/cache/assets/sprockets/v3.0/6k/6k5wNExfN2UqJpMVdhWTNr_UsdAV21H3kjCx5sjjEW0.cache new file mode 100644 index 0000000000000000000000000000000000000000..081fe1627a504ebfcecfb5a9a49e78d4081d04a8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6k/6k5wNExfN2UqJpMVdhWTNr_UsdAV21H3kjCx5sjjEW0.cache @@ -0,0 +1 @@ +"%ˆ³â‹ø¯Äfœƒ?þ1¤÷мNjÚÔm°§â ™ÍŽ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6q/6q-GN8lcLwfd2XB2AhW2L7-3bQC6AQ15EXf9MwfBTqs.cache b/T5/tmp/cache/assets/sprockets/v3.0/6q/6q-GN8lcLwfd2XB2AhW2L7-3bQC6AQ15EXf9MwfBTqs.cache new file mode 100644 index 0000000000000000000000000000000000000000..2e7cae26af38b0b5c67812a77c2eccf6f15ac0b2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6q/6q-GN8lcLwfd2XB2AhW2L7-3bQC6AQ15EXf9MwfBTqs.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6r/6rsCJEdWOTFUXZhheu8yMA2gPA1d6k4uZxS3TUuXxpg.cache b/T5/tmp/cache/assets/sprockets/v3.0/6r/6rsCJEdWOTFUXZhheu8yMA2gPA1d6k4uZxS3TUuXxpg.cache new file mode 100644 index 0000000000000000000000000000000000000000..45296ba5686afc747836ab4b0f0bfe234309c6cc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/6r/6rsCJEdWOTFUXZhheu8yMA2gPA1d6k4uZxS3TUuXxpg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6u/6ub-3NXyYCfNSFLCUzPsM2X4tJHec-a3oY-gkExKjUc.cache b/T5/tmp/cache/assets/sprockets/v3.0/6u/6ub-3NXyYCfNSFLCUzPsM2X4tJHec-a3oY-gkExKjUc.cache new file mode 100644 index 0000000000000000000000000000000000000000..04e7bb6bff7976331812f1c861da2660aed62a38 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/6u/6ub-3NXyYCfNSFLCUzPsM2X4tJHec-a3oY-gkExKjUc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/6w/6wmQ3e-WCvQlA7jb_qA6r4rHsOlb0p_6uNc2AI5N8EY.cache b/T5/tmp/cache/assets/sprockets/v3.0/6w/6wmQ3e-WCvQlA7jb_qA6r4rHsOlb0p_6uNc2AI5N8EY.cache new file mode 100644 index 0000000000000000000000000000000000000000..518e61a4d2ba8689560665ae7001ec1a9cf63954 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/6w/6wmQ3e-WCvQlA7jb_qA6r4rHsOlb0p_6uNc2AI5N8EY.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}0I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-puff.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTI"6file-digest://app/assets/config/jquery-ui/effects;TTI"Cfile-digest://app/assets/config/jquery-ui/effects/effect-scale;TTI"6file-digest://app/assets/images/jquery-ui/effects;TTI"Cfile-digest://app/assets/images/jquery-ui/effects/effect-scale;TTI";file-digest://app/assets/javascripts/jquery-ui/effects;TTI"Hfile-digest://app/assets/javascripts/jquery-ui/effects/effect-scale;TTI";file-digest://app/assets/stylesheets/jquery-ui/effects;TTI"Hfile-digest://app/assets/stylesheets/jquery-ui/effects/effect-scale;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effects;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effects/effect-scale;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effects;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effects/effect-scale;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects;TTI"„file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-scale;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-scale.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/73/735e26dD05ziOvXVPqyF8l7f1HaXMxikaapnqI4jaV0.cache b/T5/tmp/cache/assets/sprockets/v3.0/73/735e26dD05ziOvXVPqyF8l7f1HaXMxikaapnqI4jaV0.cache new file mode 100644 index 0000000000000000000000000000000000000000..2800ad3b2e2cbf3921f3032ad1306f4749f08af2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/73/735e26dD05ziOvXVPqyF8l7f1HaXMxikaapnqI4jaV0.cache @@ -0,0 +1 @@ +"%ã°ÄB˜üšûôÈ™o¹$'®Aäd›“L¤•™xR¸U \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/79/79Ysklnf2EBkOy6W6GaTnS79AN7eFuP0B7aBz2S145c.cache b/T5/tmp/cache/assets/sprockets/v3.0/79/79Ysklnf2EBkOy6W6GaTnS79AN7eFuP0B7aBz2S145c.cache new file mode 100644 index 0000000000000000000000000000000000000000..f5b79fcce0de2b090a49b4db0ddfb9a834d95e2a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/79/79Ysklnf2EBkOy6W6GaTnS79AN7eFuP0B7aBz2S145c.cache @@ -0,0 +1 @@ +"%›Ã·O-uý[wùÆ-wè_a_1¬¶¦0òZCg \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7R/7RNJEesQZZi_RflHJ5yUdaw-ODEeHdhRhC8vcvXfljQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/7R/7RNJEesQZZi_RflHJ5yUdaw-ODEeHdhRhC8vcvXfljQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..32bc5ea759851657e52df04e27be02eedb27bd80 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7R/7RNJEesQZZi_RflHJ5yUdaw-ODEeHdhRhC8vcvXfljQ.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=4514447d72225e11a4f70bedeae4a1cf548d3e306b0c6ae952c86dfaf2a4038c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7W/7WPngtld67dEpT1y3ZBqPA_yedUQyg_E18sEQCJMK6E.cache b/T5/tmp/cache/assets/sprockets/v3.0/7W/7WPngtld67dEpT1y3ZBqPA_yedUQyg_E18sEQCJMK6E.cache new file mode 100644 index 0000000000000000000000000000000000000000..a09ce53f260872ec9358895c6cc078795492a127 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7W/7WPngtld67dEpT1y3ZBqPA_yedUQyg_E18sEQCJMK6E.cache @@ -0,0 +1 @@ +"%‰DU´ô–Q_®ºÚy„ÆÞ;Š3iLŠ:%Ö¸î1i \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7X/7X4HlBdeXFngcSW8f3P9fTUoCuJ5QlpelfVkSuXGVg4.cache b/T5/tmp/cache/assets/sprockets/v3.0/7X/7X4HlBdeXFngcSW8f3P9fTUoCuJ5QlpelfVkSuXGVg4.cache new file mode 100644 index 0000000000000000000000000000000000000000..19ed0d40a24160aab6efbf938544a7f7959c375a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7X/7X4HlBdeXFngcSW8f3P9fTUoCuJ5QlpelfVkSuXGVg4.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=730dad383c245ce56daec1abb45b43e7a169fff1ee154d79ddb5ddcf56a4042b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7a/7av64WKjb1FfUP2xtDX3ZSeIoF8ADR6DZZqsXeANQeo.cache b/T5/tmp/cache/assets/sprockets/v3.0/7a/7av64WKjb1FfUP2xtDX3ZSeIoF8ADR6DZZqsXeANQeo.cache new file mode 100644 index 0000000000000000000000000000000000000000..bebf4b0b79d9ee3773dbb5b85a40713610e91feb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7a/7av64WKjb1FfUP2xtDX3ZSeIoF8ADR6DZZqsXeANQeo.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=e021304b697694699e215aefb55b46b97b55448310523f229b409a1b289acd9e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7j/7jDGZsGlOKkFUvx_ko5jemv7MTU91rvHZDZzHsJwiQc.cache b/T5/tmp/cache/assets/sprockets/v3.0/7j/7jDGZsGlOKkFUvx_ko5jemv7MTU91rvHZDZzHsJwiQc.cache new file mode 100644 index 0000000000000000000000000000000000000000..4a1527ec1febbccb0c7cf336c411cfa06a67412e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/7j/7jDGZsGlOKkFUvx_ko5jemv7MTU91rvHZDZzHsJwiQc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7j/7j_ksHRYNJpfRTp1i1LYwczvfwYadBvXQvmSmw1VWnQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/7j/7j_ksHRYNJpfRTp1i1LYwczvfwYadBvXQvmSmw1VWnQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..b70fbc566359cebd4dfdb0d468436eb687be2165 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7j/7j_ksHRYNJpfRTp1i1LYwczvfwYadBvXQvmSmw1VWnQ.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-slide.js?type=application/javascript&pipeline=self&id=4ad9bf4d5dc99cf457b52b67c10066a67e0f8c5c123a48b59bbb5dc82cc8ffa9:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7n/7nWAu0dVecG5WcxossD2CUmIt7xB9lQvmlmUtr5X1Go.cache b/T5/tmp/cache/assets/sprockets/v3.0/7n/7nWAu0dVecG5WcxossD2CUmIt7xB9lQvmlmUtr5X1Go.cache new file mode 100644 index 0000000000000000000000000000000000000000..07744c199a38d248f4339f559f71384228713ecf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7n/7nWAu0dVecG5WcxossD2CUmIt7xB9lQvmlmUtr5X1Go.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=f161915f1e02d7752fd6b2c253327e900981b3a6d09abec58a114149bd93b31b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7s/7ssT3jQi6q1HmziWTEGZI4UuRIR4Htxqazh0tW5_Aqg.cache b/T5/tmp/cache/assets/sprockets/v3.0/7s/7ssT3jQi6q1HmziWTEGZI4UuRIR4Htxqazh0tW5_Aqg.cache new file mode 100644 index 0000000000000000000000000000000000000000..b9ceb914a3376e0bbb5341af62a520bc58ca1282 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7s/7ssT3jQi6q1HmziWTEGZI4UuRIR4Htxqazh0tW5_Aqg.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=c1efa0d53b761836afdaa6cd3eadb40711602d7c704f1d989d84b6efc1c71f47:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/7v/7vY8zh02IRyO7vCGMN0jsDdKcU3h4GWIBWnrYbDBUuQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/7v/7vY8zh02IRyO7vCGMN0jsDdKcU3h4GWIBWnrYbDBUuQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..f46dddf30a8d1291d8a654cfbab94b1a0fbb235e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/7v/7vY8zh02IRyO7vCGMN0jsDdKcU3h4GWIBWnrYbDBUuQ.cache @@ -0,0 +1 @@ +I"…app/assets/javascripts/application.js?type=application/javascript&id=ea3f82050f2488e5f4fe5540a712a2ab5b56251f82d06841518733cf2e879dbf:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/86/86Q-HEBhyith0Js7NxY5fWxFFcfpAc01bp6DD2BRRbs.cache b/T5/tmp/cache/assets/sprockets/v3.0/86/86Q-HEBhyith0Js7NxY5fWxFFcfpAc01bp6DD2BRRbs.cache new file mode 100644 index 0000000000000000000000000000000000000000..b0950881dafcc656464d7294a053e57250959ba1 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/86/86Q-HEBhyith0Js7NxY5fWxFFcfpAc01bp6DD2BRRbs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/86/86dTNo6ePnXhJWdGJJ2aRlVISwdtJvixmT6383Z_P9w.cache b/T5/tmp/cache/assets/sprockets/v3.0/86/86dTNo6ePnXhJWdGJJ2aRlVISwdtJvixmT6383Z_P9w.cache new file mode 100644 index 0000000000000000000000000000000000000000..7018914e2186685e76f7888195068fe9f5aee439 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/86/86dTNo6ePnXhJWdGJJ2aRlVISwdtJvixmT6383Z_P9w.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-rails-4.3.3/vendor/assets/javascripts/jquery.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/86/86h-tmTkDGUXk9ryHHn-e6RK18R4Y7bOalUQq6P11Zs.cache b/T5/tmp/cache/assets/sprockets/v3.0/86/86h-tmTkDGUXk9ryHHn-e6RK18R4Y7bOalUQq6P11Zs.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/86/86h-tmTkDGUXk9ryHHn-e6RK18R4Y7bOalUQq6P11Zs.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8D/8D8970KKNLJqXnIitisz53Bl_H2ciee0y2AtXC0Ou-o.cache b/T5/tmp/cache/assets/sprockets/v3.0/8D/8D8970KKNLJqXnIitisz53Bl_H2ciee0y2AtXC0Ou-o.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/8D/8D8970KKNLJqXnIitisz53Bl_H2ciee0y2AtXC0Ou-o.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8J/8JmB5ZQKNL9R6ihAEK6vt0gNXDCAxvuLq6SOOth-VKY.cache b/T5/tmp/cache/assets/sprockets/v3.0/8J/8JmB5ZQKNL9R6ihAEK6vt0gNXDCAxvuLq6SOOth-VKY.cache new file mode 100644 index 0000000000000000000000000000000000000000..24b19fb1bf16d814b5c71844b15355c0e4f2b0d5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/8J/8JmB5ZQKNL9R6ihAEK6vt0gNXDCAxvuLq6SOOth-VKY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8S/8SfJgav-fgys9KnVx7W-xdWNiS9ylAPaWmDPEqOHwqE.cache b/T5/tmp/cache/assets/sprockets/v3.0/8S/8SfJgav-fgys9KnVx7W-xdWNiS9ylAPaWmDPEqOHwqE.cache new file mode 100644 index 0000000000000000000000000000000000000000..13f1ef27ad3ef5d7d365add364fcda6b9ad63cc1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/8S/8SfJgav-fgys9KnVx7W-xdWNiS9ylAPaWmDPEqOHwqE.cache @@ -0,0 +1 @@ +"%TßL枣F¥`z=Æ=Rv–)Õ>&×;UM¾êé. \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8S/8Sz2bYDGFgwmf7Hdtmnsgap1i54eogZAspiunqLH57Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/8S/8Sz2bYDGFgwmf7Hdtmnsgap1i54eogZAspiunqLH57Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..4d7ca2c17f99156dda52f2a0de5bfd504d07c90e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/8S/8Sz2bYDGFgwmf7Hdtmnsgap1i54eogZAspiunqLH57Y.cache @@ -0,0 +1 @@ +"%gŽúÁÊ“¯½išîD'ÇîßšeÊÞÌ4[Ï,¡Šn \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8U/8URJgGb5H0XckwTmCkGEQ-MfehNb1OsJtFa9Fw5eddI.cache b/T5/tmp/cache/assets/sprockets/v3.0/8U/8URJgGb5H0XckwTmCkGEQ-MfehNb1OsJtFa9Fw5eddI.cache new file mode 100644 index 0000000000000000000000000000000000000000..158c6c00ff508aac233d5ec0b7c45e8a52fa46ab --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/8U/8URJgGb5H0XckwTmCkGEQ-MfehNb1OsJtFa9Fw5eddI.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=995f7b3f257750aa60601ffef787d4971724a5cc3d05e1ce29f4a6294578b6d7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8d/8dAJBxEktcP3hsPI66sPR6QG4mcMCdwqWUsch4QNxE8.cache b/T5/tmp/cache/assets/sprockets/v3.0/8d/8dAJBxEktcP3hsPI66sPR6QG4mcMCdwqWUsch4QNxE8.cache new file mode 100644 index 0000000000000000000000000000000000000000..4d8fbe31b955cdfd41f0eba54f112f0cc9c3e739 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/8d/8dAJBxEktcP3hsPI66sPR6QG4mcMCdwqWUsch4QNxE8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8d/8dm273cW_Kkrbj6jx7QtD9b90TR5T1gvMv-NMJDNZJs.cache b/T5/tmp/cache/assets/sprockets/v3.0/8d/8dm273cW_Kkrbj6jx7QtD9b90TR5T1gvMv-NMJDNZJs.cache new file mode 100644 index 0000000000000000000000000000000000000000..284985932b82897a71a29e629d5c571d760d8e7b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/8d/8dm273cW_Kkrbj6jx7QtD9b90TR5T1gvMv-NMJDNZJs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8q/8q_jwOnK4q_qSo9k8Zk50irg2uX5M8S_5PEPmO0-JQw.cache b/T5/tmp/cache/assets/sprockets/v3.0/8q/8q_jwOnK4q_qSo9k8Zk50irg2uX5M8S_5PEPmO0-JQw.cache new file mode 100644 index 0000000000000000000000000000000000000000..8643468306e17c4fd811cdad12ffd5197970ac99 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/8q/8q_jwOnK4q_qSo9k8Zk50irg2uX5M8S_5PEPmO0-JQw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/8y/8yKq2vvUu4CwV_-z1IPHVreXCyXkAKAFNOwLgd0xmlg.cache b/T5/tmp/cache/assets/sprockets/v3.0/8y/8yKq2vvUu4CwV_-z1IPHVreXCyXkAKAFNOwLgd0xmlg.cache new file mode 100644 index 0000000000000000000000000000000000000000..ed028b66cdce5e1bd93b5bcef669566a71c91b3c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/8y/8yKq2vvUu4CwV_-z1IPHVreXCyXkAKAFNOwLgd0xmlg.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=91ff4bb5f8b9e9393cb83a36c00a0808c52a1b5a63893fbb3c4561746d7ed87b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/91/91CmWEuDo1M9DrJZhBxK5-O8Bw4k7BXG6nndVIjlOm8.cache b/T5/tmp/cache/assets/sprockets/v3.0/91/91CmWEuDo1M9DrJZhBxK5-O8Bw4k7BXG6nndVIjlOm8.cache new file mode 100644 index 0000000000000000000000000000000000000000..261a03208539437479f8d5249ca4895f9c2ddcf2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/91/91CmWEuDo1M9DrJZhBxK5-O8Bw4k7BXG6nndVIjlOm8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/94/94-i1H9Ff1Px7gqdxkxYC87zmI9q-jwPjZPZQrDoTR8.cache b/T5/tmp/cache/assets/sprockets/v3.0/94/94-i1H9Ff1Px7gqdxkxYC87zmI9q-jwPjZPZQrDoTR8.cache new file mode 100644 index 0000000000000000000000000000000000000000..46a7507b496a500243f7d37d18e0a9ccfa861395 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/94/94-i1H9Ff1Px7gqdxkxYC87zmI9q-jwPjZPZQrDoTR8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache b/T5/tmp/cache/assets/sprockets/v3.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache new file mode 100644 index 0000000000000000000000000000000000000000..0fadbc3efddd03edc419bbc1a686638847326bda Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/99/99m8UCKl4j8IpsVOK8ltLHyNh8Ae0nHw3GBkC34V_co.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9A/9ADShBpDiXqWB_YKF5BZ1kFrh9Sdh5XdewNDMGe7jYE.cache b/T5/tmp/cache/assets/sprockets/v3.0/9A/9ADShBpDiXqWB_YKF5BZ1kFrh9Sdh5XdewNDMGe7jYE.cache new file mode 100644 index 0000000000000000000000000000000000000000..43f06ba6ee371614750ff7ccf2b406b90df687db --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9A/9ADShBpDiXqWB_YKF5BZ1kFrh9Sdh5XdewNDMGe7jYE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=8933ae26dc5f0e48263821a3f2545505cf6baec0e837a9593b1cf9e8ce5bc99a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9C/9CR-6r3xjazA0Ap39QzGAkzlOtjuZcfK04WTBPeEDZs.cache b/T5/tmp/cache/assets/sprockets/v3.0/9C/9CR-6r3xjazA0Ap39QzGAkzlOtjuZcfK04WTBPeEDZs.cache new file mode 100644 index 0000000000000000000000000000000000000000..c251c3a8b7c51c5a667f701187ea05a79eaa4e4a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9C/9CR-6r3xjazA0Ap39QzGAkzlOtjuZcfK04WTBPeEDZs.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/home.coffee?type=application/javascript&pipeline=self&id=c26d4c40390c72f8f38e3e0baff284cf6620f5bd229909d69257f18a883ab2e7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9J/9Jl_VMI15Ay-4UXtJ97INZNTsGpqSVqLZBV5GO02860.cache b/T5/tmp/cache/assets/sprockets/v3.0/9J/9Jl_VMI15Ay-4UXtJ97INZNTsGpqSVqLZBV5GO02860.cache new file mode 100644 index 0000000000000000000000000000000000000000..c30a99fdcd9a1d035f0400ede211bbb9be583bc9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9J/9Jl_VMI15Ay-4UXtJ97INZNTsGpqSVqLZBV5GO02860.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-fold.js?type=application/javascript&pipeline=self&id=6b77698f1dd40a4deffdb2e30f474bbb21fe1b439bcc1a6f2dea1c5fe2f183b4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9P/9PDN1U5lI4HjUX5AbuVV9zGP8lRhADsPVIlyENAdBEQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/9P/9PDN1U5lI4HjUX5AbuVV9zGP8lRhADsPVIlyENAdBEQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..aadbd020d1cf2157494507f58a78b945ecdcd4e3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9P/9PDN1U5lI4HjUX5AbuVV9zGP8lRhADsPVIlyENAdBEQ.cache @@ -0,0 +1,2 @@ +"%د/‘¬›Ç‘g +ÔÑúÁòñ}—‚œ&§ôíM÷ÿq‰ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9P/9PN6Xjz8P6yfYUUy2pzAx48GDvcHsp-GTkTjWztYiVI.cache b/T5/tmp/cache/assets/sprockets/v3.0/9P/9PN6Xjz8P6yfYUUy2pzAx48GDvcHsp-GTkTjWztYiVI.cache new file mode 100644 index 0000000000000000000000000000000000000000..c58049229c6dfa9c70facfdb0975f351e37de895 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9P/9PN6Xjz8P6yfYUUy2pzAx48GDvcHsp-GTkTjWztYiVI.cache @@ -0,0 +1 @@ +"%‘†1øÁ_vëq—fà [³Ñ”7‡úKu .ï{&Š \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9_/9_4hc0cTthqmfBfTximz0v0yAthguMyVHohfha2dejg.cache b/T5/tmp/cache/assets/sprockets/v3.0/9_/9_4hc0cTthqmfBfTximz0v0yAthguMyVHohfha2dejg.cache new file mode 100644 index 0000000000000000000000000000000000000000..d0ef4027244983d125d6cbe25a406e589972d369 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/9_/9_4hc0cTthqmfBfTximz0v0yAthguMyVHohfha2dejg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9c/9cg3DsB6yN-RZIOSjQta06ZvvEVoXsHsmNI-La_LSo0.cache b/T5/tmp/cache/assets/sprockets/v3.0/9c/9cg3DsB6yN-RZIOSjQta06ZvvEVoXsHsmNI-La_LSo0.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9c/9cg3DsB6yN-RZIOSjQta06ZvvEVoXsHsmNI-La_LSo0.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9c/9cngpDKuqTATWf01-S9pC8DeU15YGZfFIG0bRr1Yaic.cache b/T5/tmp/cache/assets/sprockets/v3.0/9c/9cngpDKuqTATWf01-S9pC8DeU15YGZfFIG0bRr1Yaic.cache new file mode 100644 index 0000000000000000000000000000000000000000..f31d03d6fe6d1a0d0e1a960306cf41863617ae6b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/9c/9cngpDKuqTATWf01-S9pC8DeU15YGZfFIG0bRr1Yaic.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9f/9f4wxNSan5oo8PxGONoHM7BeN1ciQ9lTuoNR2FPQjUM.cache b/T5/tmp/cache/assets/sprockets/v3.0/9f/9f4wxNSan5oo8PxGONoHM7BeN1ciQ9lTuoNR2FPQjUM.cache new file mode 100644 index 0000000000000000000000000000000000000000..9ef7ed08dea0884056ac8c466dfb7ea39575f9a8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9f/9f4wxNSan5oo8PxGONoHM7BeN1ciQ9lTuoNR2FPQjUM.cache @@ -0,0 +1 @@ +"%+n[Î!]+ŸÓD„uo:{ƒÑêÓAz-}äõ[ç \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9o/9oVvdFHgzKW9sdnv2SoASFGzd4aR_xi7fNXbbnltUKA.cache b/T5/tmp/cache/assets/sprockets/v3.0/9o/9oVvdFHgzKW9sdnv2SoASFGzd4aR_xi7fNXbbnltUKA.cache new file mode 100644 index 0000000000000000000000000000000000000000..73e10b808619a089876d863e04149421afc03424 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/9o/9oVvdFHgzKW9sdnv2SoASFGzd4aR_xi7fNXbbnltUKA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9t/9tbz6DWnRXSc4O3T6TUeGJEQwx3dPk0gDLRRjxKprCE.cache b/T5/tmp/cache/assets/sprockets/v3.0/9t/9tbz6DWnRXSc4O3T6TUeGJEQwx3dPk0gDLRRjxKprCE.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9t/9tbz6DWnRXSc4O3T6TUeGJEQwx3dPk0gDLRRjxKprCE.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9w/9wfJtIg3gbNTtWXNolaipvFMmYzRi8rNUXWbv4zBGfQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/9w/9wfJtIg3gbNTtWXNolaipvFMmYzRi8rNUXWbv4zBGfQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..865b299d36df8b3c2c53ed6cf75dbbb3052a772e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/9w/9wfJtIg3gbNTtWXNolaipvFMmYzRi8rNUXWbv4zBGfQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9x/9xFsRLup1kkIqvTEOFDKF3pXW0q7c-n_DEFIofAh5K0.cache b/T5/tmp/cache/assets/sprockets/v3.0/9x/9xFsRLup1kkIqvTEOFDKF3pXW0q7c-n_DEFIofAh5K0.cache new file mode 100644 index 0000000000000000000000000000000000000000..6b146203bf075ebe75047d653b79f6590018b8fa --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9x/9xFsRLup1kkIqvTEOFDKF3pXW0q7c-n_DEFIofAh5K0.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=13688a1f42db439333adb841aea133aaff891102fe91fd5f05babfcc825342c4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9y/9ydp5TINC72aCoK0vpCt9RTvFzykSBAoqbWkRF8ocrs.cache b/T5/tmp/cache/assets/sprockets/v3.0/9y/9ydp5TINC72aCoK0vpCt9RTvFzykSBAoqbWkRF8ocrs.cache new file mode 100644 index 0000000000000000000000000000000000000000..895c56362a504a66be6d6a87c031e54c741a38b0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/9y/9ydp5TINC72aCoK0vpCt9RTvFzykSBAoqbWkRF8ocrs.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=9d733e7510df496d8181ca6c91a1808019f77270cc0200437ce182c1eb50622d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/9z/9zepkuVG5c32IL5DIsV1oTxiH_TzSESlXV00TeDdO8U.cache b/T5/tmp/cache/assets/sprockets/v3.0/9z/9zepkuVG5c32IL5DIsV1oTxiH_TzSESlXV00TeDdO8U.cache new file mode 100644 index 0000000000000000000000000000000000000000..ed552101f39afbc55ec09c6b689824de4871310e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/9z/9zepkuVG5c32IL5DIsV1oTxiH_TzSESlXV00TeDdO8U.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/A-/A-CTLFpDXaT2-uSkf8qKRz40MzSYYuCqDJyed1ZWotU.cache b/T5/tmp/cache/assets/sprockets/v3.0/A-/A-CTLFpDXaT2-uSkf8qKRz40MzSYYuCqDJyed1ZWotU.cache new file mode 100644 index 0000000000000000000000000000000000000000..e4347a5c3868d751ebc80e35215775250ed7148c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/A-/A-CTLFpDXaT2-uSkf8qKRz40MzSYYuCqDJyed1ZWotU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/AA/AAFENNckRBFMteDRlKTjrAKoaL17co77uQbnKEcagw8.cache b/T5/tmp/cache/assets/sprockets/v3.0/AA/AAFENNckRBFMteDRlKTjrAKoaL17co77uQbnKEcagw8.cache new file mode 100644 index 0000000000000000000000000000000000000000..624610c752452dc804ccbec21b87d354158d402d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/AA/AAFENNckRBFMteDRlKTjrAKoaL17co77uQbnKEcagw8.cache @@ -0,0 +1 @@ +"%» ∬743ÕƒX ”“áwµR®ˆ!Ф˜5š‚Æõ¹ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/AK/AKfNVZdk0kq-2t6Y4cEaWWEpx8nXpGPW0HTl_0Ua6UI.cache b/T5/tmp/cache/assets/sprockets/v3.0/AK/AKfNVZdk0kq-2t6Y4cEaWWEpx8nXpGPW0HTl_0Ua6UI.cache new file mode 100644 index 0000000000000000000000000000000000000000..a8ea9a6d61df967481fe2db57a8221b41cd886ce --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/AK/AKfNVZdk0kq-2t6Y4cEaWWEpx8nXpGPW0HTl_0Ua6UI.cache @@ -0,0 +1 @@ +I"å/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/selectable.js?type=application/javascript&pipeline=self&id=38472f1f65551c25a41168c8b31ad7098427a67b0064b3b96501858b6f85df8c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/AU/AURJCsq6wWhZyeEjwf3C0erPuWahtazgaRyd9vs2RzY.cache b/T5/tmp/cache/assets/sprockets/v3.0/AU/AURJCsq6wWhZyeEjwf3C0erPuWahtazgaRyd9vs2RzY.cache new file mode 100644 index 0000000000000000000000000000000000000000..f28b2fbe810f7bbfc5ea29557563d1e5d172d86e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/AU/AURJCsq6wWhZyeEjwf3C0erPuWahtazgaRyd9vs2RzY.cache @@ -0,0 +1 @@ +I"‚app/assets/stylesheets/prices.scss?type=text/css&pipeline=self&id=3a92baa22c026ab37a64866ce2936598b2c95ff335a979d5e099823016fa44e2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/AW/AWsWD9AD1_-mFsAyCJCH8-qJIorpVK_1VgJMcU4P4UY.cache b/T5/tmp/cache/assets/sprockets/v3.0/AW/AWsWD9AD1_-mFsAyCJCH8-qJIorpVK_1VgJMcU4P4UY.cache new file mode 100644 index 0000000000000000000000000000000000000000..16ab85faef9bc8f63cc00068b7b8d96fc44eed11 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/AW/AWsWD9AD1_-mFsAyCJCH8-qJIorpVK_1VgJMcU4P4UY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Aa/AavyGX__MdnB7z34O8HnmEaPXHb0h9DyrSCD9CsJMOo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Aa/AavyGX__MdnB7z34O8HnmEaPXHb0h9DyrSCD9CsJMOo.cache new file mode 100644 index 0000000000000000000000000000000000000000..344cc90cc80545c24649f5cb2f7d828882ad702c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Aa/AavyGX__MdnB7z34O8HnmEaPXHb0h9DyrSCD9CsJMOo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Af/AfnW4_XXGrPhG9iTfpUnMMWDNt0Yu_iVOQWvLALUijw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Af/AfnW4_XXGrPhG9iTfpUnMMWDNt0Yu_iVOQWvLALUijw.cache new file mode 100644 index 0000000000000000000000000000000000000000..b4e9f3de3fc02a5073ca4f26a300a1aad2a3fcb5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Af/AfnW4_XXGrPhG9iTfpUnMMWDNt0Yu_iVOQWvLALUijw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/An/AnmxsObbNXeOVGAx4-t8giZUaweUZrDq5RHb6OjLVmU.cache b/T5/tmp/cache/assets/sprockets/v3.0/An/AnmxsObbNXeOVGAx4-t8giZUaweUZrDq5RHb6OjLVmU.cache new file mode 100644 index 0000000000000000000000000000000000000000..25b56bec20ddaa5810808f765dbce12a24813090 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/An/AnmxsObbNXeOVGAx4-t8giZUaweUZrDq5RHb6OjLVmU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/As/AsUXnEMMnU6dYNNKmKHV42ZdacU_xj1vWx2B2VaogXo.cache b/T5/tmp/cache/assets/sprockets/v3.0/As/AsUXnEMMnU6dYNNKmKHV42ZdacU_xj1vWx2B2VaogXo.cache new file mode 100644 index 0000000000000000000000000000000000000000..bf36fe0bf043c52764e27418eaf191ab117e2ecd Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/As/AsUXnEMMnU6dYNNKmKHV42ZdacU_xj1vWx2B2VaogXo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/B0/B0q2gETB3LrmrO9mMuGmpG_nIVWGx0QYRsv_Q5Xf2Fc.cache b/T5/tmp/cache/assets/sprockets/v3.0/B0/B0q2gETB3LrmrO9mMuGmpG_nIVWGx0QYRsv_Q5Xf2Fc.cache new file mode 100644 index 0000000000000000000000000000000000000000..d65231510fdfda75f6e294c6a08eb4442250db97 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/B0/B0q2gETB3LrmrO9mMuGmpG_nIVWGx0QYRsv_Q5Xf2Fc.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=71d5a297e5891d157c8b7df0dabc4bee10fb41d0cd7ed2fef08fa889dc97f5d8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/B4/B43LeT9Wba4fLvXw-C_kKq-x9HwYZxnBBiltbIufzzQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/B4/B43LeT9Wba4fLvXw-C_kKq-x9HwYZxnBBiltbIufzzQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..c159294eb7e98107f00f3cde4103ddf3ea9c4145 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/B4/B43LeT9Wba4fLvXw-C_kKq-x9HwYZxnBBiltbIufzzQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BK/BKx95xLQzDYs5fqyEe-zn-CFCavk4mBGk1MdYv3t15U.cache b/T5/tmp/cache/assets/sprockets/v3.0/BK/BKx95xLQzDYs5fqyEe-zn-CFCavk4mBGk1MdYv3t15U.cache new file mode 100644 index 0000000000000000000000000000000000000000..abe79a833c5e803f1966d0b08503d0372f8264d2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BK/BKx95xLQzDYs5fqyEe-zn-CFCavk4mBGk1MdYv3t15U.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=1f22acd08c8a67d51b286841011f0d8fe9d3c8541fead716862ef3e2fa26fa73:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BL/BL6mAGL9svwb7UKEsg0ooTDQyoJx0Uxo5wUt7GtTdsc.cache b/T5/tmp/cache/assets/sprockets/v3.0/BL/BL6mAGL9svwb7UKEsg0ooTDQyoJx0Uxo5wUt7GtTdsc.cache new file mode 100644 index 0000000000000000000000000000000000000000..6eb1962dbd9e53baa8113d653e1cddbc5261a5c7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BL/BL6mAGL9svwb7UKEsg0ooTDQyoJx0Uxo5wUt7GtTdsc.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‰file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-explode.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BL/BLV6s07pyeGJy-w8avnX28repmSqngudP3AGozeOYcQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/BL/BLV6s07pyeGJy-w8avnX28repmSqngudP3AGozeOYcQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..aac2bb449bb846f6cbd277aa93a075daa78bb0fb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BL/BLV6s07pyeGJy-w8avnX28repmSqngudP3AGozeOYcQ.cache @@ -0,0 +1 @@ +"%ØÞð-z¤HÕPúG_\sã`Ž‘"NÒWaﲿ#Gþ94 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BO/BOTUc34CMCalvsOgnZmIBlr0bGn4BZHopUkH4NdR-Ac.cache b/T5/tmp/cache/assets/sprockets/v3.0/BO/BOTUc34CMCalvsOgnZmIBlr0bGn4BZHopUkH4NdR-Ac.cache new file mode 100644 index 0000000000000000000000000000000000000000..a499f9cd6b9a8e4f4039543fc2f03e1d22c2dbce --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BO/BOTUc34CMCalvsOgnZmIBlr0bGn4BZHopUkH4NdR-Ac.cache @@ -0,0 +1 @@ +I"yapp/assets/images/SteamDB-Big.png?type=image/png&id=4cbb3eedbf2331932cf0652027cd1c191b79ccfa3ce9e01850640974d90a1cd4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BP/BPl7B19wg1yu3Il-J5grg0k8CxRl6WPaBz70dwiZtDY.cache b/T5/tmp/cache/assets/sprockets/v3.0/BP/BPl7B19wg1yu3Il-J5grg0k8CxRl6WPaBz70dwiZtDY.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BP/BPl7B19wg1yu3Il-J5grg0k8CxRl6WPaBz70dwiZtDY.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BQ/BQeoQesjq7YZR2WCPlWIgVX9QTEDzkMWGG4ixATv4G4.cache b/T5/tmp/cache/assets/sprockets/v3.0/BQ/BQeoQesjq7YZR2WCPlWIgVX9QTEDzkMWGG4ixATv4G4.cache new file mode 100644 index 0000000000000000000000000000000000000000..3ff8f44ca8b8bc7a10c920bde4cfd88cbf51ac96 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BQ/BQeoQesjq7YZR2WCPlWIgVX9QTEDzkMWGG4ixATv4G4.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-fade.js?type=application/javascript&pipeline=self&id=039b1b6d142d6c3cdc8eaed1770d2cf055866729620247d9563e2752e5c2d45f:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BW/BWpWY_3rKss2vXKPhhik5fZCyhLQNpsC2M4_-VJAHdo.cache b/T5/tmp/cache/assets/sprockets/v3.0/BW/BWpWY_3rKss2vXKPhhik5fZCyhLQNpsC2M4_-VJAHdo.cache new file mode 100644 index 0000000000000000000000000000000000000000..3c25362ac0b37845e96fcad7eb103d043968bd95 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/BW/BWpWY_3rKss2vXKPhhik5fZCyhLQNpsC2M4_-VJAHdo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/BZ/BZv9-mq2GhJUCTy0OFxtwtkAg6NMlKxu6XypEjzrxIk.cache b/T5/tmp/cache/assets/sprockets/v3.0/BZ/BZv9-mq2GhJUCTy0OFxtwtkAg6NMlKxu6XypEjzrxIk.cache new file mode 100644 index 0000000000000000000000000000000000000000..ecbd5a1dd69376fc11d0b0713ad82f82c1a08e75 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/BZ/BZv9-mq2GhJUCTy0OFxtwtkAg6NMlKxu6XypEjzrxIk.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=3369523c7e4f0ec4f63c9f46dfe1ae79d38963db50549992367979f47b9aed11:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bd/BdrAEToVsRpsBJTizbjqAuqxaU3_hB9WDbHQxpJya4c.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bd/BdrAEToVsRpsBJTizbjqAuqxaU3_hB9WDbHQxpJya4c.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Bd/BdrAEToVsRpsBJTizbjqAuqxaU3_hB9WDbHQxpJya4c.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Be/BeNmdRjjrkMy1At4T3sMaPFNzKxAfxPV9eGEhTw7JsU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Be/BeNmdRjjrkMy1At4T3sMaPFNzKxAfxPV9eGEhTw7JsU.cache new file mode 100644 index 0000000000000000000000000000000000000000..df87c487f6498ae311c623e00846a0c5a785a6e0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Be/BeNmdRjjrkMy1At4T3sMaPFNzKxAfxPV9eGEhTw7JsU.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-size.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bi/BiLN0OqKM64_FOcMXLZ6LUxPPGlG0qIwGHHLcEKb2IM.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bi/BiLN0OqKM64_FOcMXLZ6LUxPPGlG0qIwGHHLcEKb2IM.cache new file mode 100644 index 0000000000000000000000000000000000000000..9d606b45bd669f6ebe2386292dbebad8f81a2e44 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Bi/BiLN0OqKM64_FOcMXLZ6LUxPPGlG0qIwGHHLcEKb2IM.cache @@ -0,0 +1,2 @@ +"%~¢nËÜUmÆlrÝ+Æ MpœÁ +Ÿ²4výáÀî \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bj/BjxIHK3mM7qiA3gVm_cdn3LO6JMzY7DCROt9WhmlV28.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bj/BjxIHK3mM7qiA3gVm_cdn3LO6JMzY7DCROt9WhmlV28.cache new file mode 100644 index 0000000000000000000000000000000000000000..7ba7c70b9f9be992e0f5ddc1d21838635d6336e8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Bj/BjxIHK3mM7qiA3gVm_cdn3LO6JMzY7DCROt9WhmlV28.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bk/BkFma9tD3zLYuINsG4SVgCGylvUQeS_r0xVJkfTwdO0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bk/BkFma9tD3zLYuINsG4SVgCGylvUQeS_r0xVJkfTwdO0.cache new file mode 100644 index 0000000000000000000000000000000000000000..7133e908778695bbc546a017807e0c1e2bacf8f2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Bk/BkFma9tD3zLYuINsG4SVgCGylvUQeS_r0xVJkfTwdO0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnA5PYJ-WTQ74LteBsMt07qY2u6zAjge0LAzJEdBnH0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnA5PYJ-WTQ74LteBsMt07qY2u6zAjge0LAzJEdBnH0.cache new file mode 100644 index 0000000000000000000000000000000000000000..0dd53f502b2d8cfe6d7a1a3d21fcd33c9133565d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnA5PYJ-WTQ74LteBsMt07qY2u6zAjge0LAzJEdBnH0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnJCdtu-lEeLjeYRAUxrXZvXLT9YwKM7YGR8KJybPSE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnJCdtu-lEeLjeYRAUxrXZvXLT9YwKM7YGR8KJybPSE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f703d998affd0280a3fd9955f9a267172ef1c4be --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Bn/BnJCdtu-lEeLjeYRAUxrXZvXLT9YwKM7YGR8KJybPSE.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/controlgroup.js?type=application/javascript&pipeline=self&id=a75fd29054be974a3bd092fea452a628d7732608aaaed05e7a1c29ff5e0344a2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bp/BpKWYX0EF99fTsrmSdZebFr3Tg_QDeSHZ-D3XS56klo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bp/BpKWYX0EF99fTsrmSdZebFr3Tg_QDeSHZ-D3XS56klo.cache new file mode 100644 index 0000000000000000000000000000000000000000..4b9c5cb2e13ba9068076a40667e3c0956f494f82 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Bp/BpKWYX0EF99fTsrmSdZebFr3Tg_QDeSHZ-D3XS56klo.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=bd09bfb7798b5993a3e22641ed6d3700e207d5d19c038fc75fae27372c6a168e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Br/Brw6DdMQ3k5q3jcuKIUDUskCjPFiSUrmfsuq1dqLPaE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Br/Brw6DdMQ3k5q3jcuKIUDUskCjPFiSUrmfsuq1dqLPaE.cache new file mode 100644 index 0000000000000000000000000000000000000000..961ba43655ca5e2e6c39cee4e1f9d80a36245643 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Br/Brw6DdMQ3k5q3jcuKIUDUskCjPFiSUrmfsuq1dqLPaE.cache @@ -0,0 +1 @@ +"%N·‚K̽V<Lo+©Ž>7+HqÁ‘ðÊÊ[ZBM \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bu/BuymSbKLk9iNdz5WCIYSMtRzHHmIzm9WJ6rwXguSHAU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bu/BuymSbKLk9iNdz5WCIYSMtRzHHmIzm9WJ6rwXguSHAU.cache new file mode 100644 index 0000000000000000000000000000000000000000..0c34d18927a2c69f28d2bad43cd01bb515dc6e7e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Bu/BuymSbKLk9iNdz5WCIYSMtRzHHmIzm9WJ6rwXguSHAU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bx/Bx2DZWdKpHusANTDK0fg5QIUXMqpsPGzJQVTHpgKaPc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bx/Bx2DZWdKpHusANTDK0fg5QIUXMqpsPGzJQVTHpgKaPc.cache new file mode 100644 index 0000000000000000000000000000000000000000..a37ebb8d87ee321c5095353a5f9e6515aa9dc517 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Bx/Bx2DZWdKpHusANTDK0fg5QIUXMqpsPGzJQVTHpgKaPc.cache @@ -0,0 +1 @@ +I"…app/assets/javascripts/application.js?type=application/javascript&id=1baaf2b8131eb9ecb43abe8189ce4d26536002487281245f23264a18420c9898:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Bz/BzKCUk12AHa6AG0GyL2EBnGQMDUFSL9t4BQZ-xy2GFc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Bz/BzKCUk12AHa6AG0GyL2EBnGQMDUFSL9t4BQZ-xy2GFc.cache new file mode 100644 index 0000000000000000000000000000000000000000..469c00aebff216870526b342fee623471d9124e8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Bz/BzKCUk12AHa6AG0GyL2EBnGQMDUFSL9t4BQZ-xy2GFc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C1/C12vwfxrW0crRtSA8tDHGrLSbYVafXYwVvEWRezGV28.cache b/T5/tmp/cache/assets/sprockets/v3.0/C1/C12vwfxrW0crRtSA8tDHGrLSbYVafXYwVvEWRezGV28.cache new file mode 100644 index 0000000000000000000000000000000000000000..d0ea38821062a4fd71f1004e0cb08bd850a886e4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/C1/C12vwfxrW0crRtSA8tDHGrLSbYVafXYwVvEWRezGV28.cache @@ -0,0 +1,2 @@ +"%CO#¦7¹OCóÓÛX&=¢oSö:M¸ +í’S \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C2/C2KfMUqEIJwq3qZf3p45fmi_HDbtjDWlB7yrgo0KLVI.cache b/T5/tmp/cache/assets/sprockets/v3.0/C2/C2KfMUqEIJwq3qZf3p45fmi_HDbtjDWlB7yrgo0KLVI.cache new file mode 100644 index 0000000000000000000000000000000000000000..840daf761b2cb558e757a4294df9ea1a8e957c20 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/C2/C2KfMUqEIJwq3qZf3p45fmi_HDbtjDWlB7yrgo0KLVI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C3/C3Sx3_wbtssCtURbbR4JYI5m_OSC4WRLALxQb2GdxuU.cache b/T5/tmp/cache/assets/sprockets/v3.0/C3/C3Sx3_wbtssCtURbbR4JYI5m_OSC4WRLALxQb2GdxuU.cache new file mode 100644 index 0000000000000000000000000000000000000000..5c5e1dcd967c95782878f8ea99b194c0eb39d7e4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/C3/C3Sx3_wbtssCtURbbR4JYI5m_OSC4WRLALxQb2GdxuU.cache @@ -0,0 +1 @@ +"%uWÛül§¹j›çZÂxU«ß>Å?]‹÷pc‰Æs \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C4/C4CBIiHD0WloMhbPjY6mzPgueh_nLiLO419BGDvX3Fc.cache b/T5/tmp/cache/assets/sprockets/v3.0/C4/C4CBIiHD0WloMhbPjY6mzPgueh_nLiLO419BGDvX3Fc.cache new file mode 100644 index 0000000000000000000000000000000000000000..f3e16fb6030f78421fdf3e90005e3c8bba44ef83 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/C4/C4CBIiHD0WloMhbPjY6mzPgueh_nLiLO419BGDvX3Fc.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=6c185240c00c17603f99226f0cff69bd4e4dbf08b4ba692859084cd75cbf62c9:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C4/C4edO-i8NQPauerlbBQN1Z5IjHLkFewy8cIlt1s9VZI.cache b/T5/tmp/cache/assets/sprockets/v3.0/C4/C4edO-i8NQPauerlbBQN1Z5IjHLkFewy8cIlt1s9VZI.cache new file mode 100644 index 0000000000000000000000000000000000000000..f61433da961c156c65b561b713ff420c8b0a44c8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/C4/C4edO-i8NQPauerlbBQN1Z5IjHLkFewy8cIlt1s9VZI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C7/C7STvm5BCNB3CgtGnPnw46syDEgBCKz5sSSZSbCQqNI.cache b/T5/tmp/cache/assets/sprockets/v3.0/C7/C7STvm5BCNB3CgtGnPnw46syDEgBCKz5sSSZSbCQqNI.cache new file mode 100644 index 0000000000000000000000000000000000000000..035c80800d7ab2399d7f1a5438f3aa7c3e24aa90 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/C7/C7STvm5BCNB3CgtGnPnw46syDEgBCKz5sSSZSbCQqNI.cache @@ -0,0 +1 @@ +"%;3&(à+¯Ý¸oJˆMÅê\TnÁ¢ÜÛ=›ø!uΨ± \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/C7/C7xN6lONPfJZt4BUps9DqtN-L7sAjaGqvs8VVkaRIZ4.cache b/T5/tmp/cache/assets/sprockets/v3.0/C7/C7xN6lONPfJZt4BUps9DqtN-L7sAjaGqvs8VVkaRIZ4.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/C7/C7xN6lONPfJZt4BUps9DqtN-L7sAjaGqvs8VVkaRIZ4.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/CI/CInB3fKoYR341dJcQxzMFDS6df51D5UTIK0OOMrn_LQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/CI/CInB3fKoYR341dJcQxzMFDS6df51D5UTIK0OOMrn_LQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..0b419371cf2e2dc4c66a6b2cd81e28d0b0413719 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/CI/CInB3fKoYR341dJcQxzMFDS6df51D5UTIK0OOMrn_LQ.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=978106f5dc1a5841c4ce726006642354be53f6bd8407992a911af5bdf6518993:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ci/CiM5hOHbPvu4L7rSqUOWv01eQXbHPuLy9I35XjTMqyU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ci/CiM5hOHbPvu4L7rSqUOWv01eQXbHPuLy9I35XjTMqyU.cache new file mode 100644 index 0000000000000000000000000000000000000000..51cb495a33f79f241457d748becde9cb0d7d6786 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ci/CiM5hOHbPvu4L7rSqUOWv01eQXbHPuLy9I35XjTMqyU.cache @@ -0,0 +1 @@ +"%M¦Ù½—Ìgüä˜å>ϸ®ª€é¦“‚hy’㮺JX \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Cl/ClGHuLEqp_eu3e6j8-2bvdGz70u8Z8V9wZtMVMl4_0M.cache b/T5/tmp/cache/assets/sprockets/v3.0/Cl/ClGHuLEqp_eu3e6j8-2bvdGz70u8Z8V9wZtMVMl4_0M.cache new file mode 100644 index 0000000000000000000000000000000000000000..c6e0246a5045580d9d7d652cba55bec4b686070c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Cl/ClGHuLEqp_eu3e6j8-2bvdGz70u8Z8V9wZtMVMl4_0M.cache @@ -0,0 +1 @@ +I"Ù/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js?type=application/javascript&pipeline=self&id=c99bb72c17dac24f1d81d1e387df071db3bfa779761bb2eb3df3a45340e7ba4d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Cm/Cmgtpj2H_F5nWhtedirbvrBpypjVa7ITtf2QYTRSBlg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Cm/Cmgtpj2H_F5nWhtedirbvrBpypjVa7ITtf2QYTRSBlg.cache new file mode 100644 index 0000000000000000000000000000000000000000..1b185692ad6984176249b8f2943934f87b1ee2c6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Cm/Cmgtpj2H_F5nWhtedirbvrBpypjVa7ITtf2QYTRSBlg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Cq/Cqql8jzF3rlGQKDYy0-ziSyz7p2r5VuPXH-R22L_WYI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Cq/Cqql8jzF3rlGQKDYy0-ziSyz7p2r5VuPXH-R22L_WYI.cache new file mode 100644 index 0000000000000000000000000000000000000000..ed33286687df25871db876c5ab443ba0e1e88c13 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Cq/Cqql8jzF3rlGQKDYy0-ziSyz7p2r5VuPXH-R22L_WYI.cache @@ -0,0 +1 @@ +I"é/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js?type=application/javascript&pipeline=self&id=fd00e344d3fecee38bb954b44d1c0a710a544d1dee7c692cddee0cfdde9bc4d1:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Cs/CsgC0oY8TEwYyQlOmBBkHgmYgcbWcHqR6tJb_V6yNtc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Cs/CsgC0oY8TEwYyQlOmBBkHgmYgcbWcHqR6tJb_V6yNtc.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Cs/CsgC0oY8TEwYyQlOmBBkHgmYgcbWcHqR6tJb_V6yNtc.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ct/CtXDj28BxRhiYZgtf-OApCPJXAo7PjbGSFiJKscPbBI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ct/CtXDj28BxRhiYZgtf-OApCPJXAo7PjbGSFiJKscPbBI.cache new file mode 100644 index 0000000000000000000000000000000000000000..47f555bdcb5bd83cdfc11d6103c5b8d2fff054bf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ct/CtXDj28BxRhiYZgtf-OApCPJXAo7PjbGSFiJKscPbBI.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/autocomplete.js?type=application/javascript&pipeline=self&id=8a9668ae75afb839b628f0aad5defcd10e95e4c756ff883046fbaae2c5e26426:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/D4/D4GbLTRTQDdze_GQ2vDX0HGDPoOFHKZ3IHODmrpo6AU.cache b/T5/tmp/cache/assets/sprockets/v3.0/D4/D4GbLTRTQDdze_GQ2vDX0HGDPoOFHKZ3IHODmrpo6AU.cache new file mode 100644 index 0000000000000000000000000000000000000000..6be24a622dde76228bd51a8f40693b808d4dfb31 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/D4/D4GbLTRTQDdze_GQ2vDX0HGDPoOFHKZ3IHODmrpo6AU.cache @@ -0,0 +1 @@ +I"×/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/data.js?type=application/javascript&pipeline=self&id=719972a8f45fceb7d9713a9fdb5538377cbcfb899294b2c99458ed227e42636b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/D5/D5aSh4W9ZuOMj31_i9fWyNK_EHSg1tIMQBeQe7TbzuU.cache b/T5/tmp/cache/assets/sprockets/v3.0/D5/D5aSh4W9ZuOMj31_i9fWyNK_EHSg1tIMQBeQe7TbzuU.cache new file mode 100644 index 0000000000000000000000000000000000000000..5792c316b60f435fbbb2f9cd3da3fefbcf1a320c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/D5/D5aSh4W9ZuOMj31_i9fWyNK_EHSg1tIMQBeQe7TbzuU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/D6/D6GxsxOhiDIkgyDZjb1mt18wHs8E20hETwOfKJHQGPQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/D6/D6GxsxOhiDIkgyDZjb1mt18wHs8E20hETwOfKJHQGPQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..63ba6afa5242f228ef1d62001bf58a4f48be17d0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/D6/D6GxsxOhiDIkgyDZjb1mt18wHs8E20hETwOfKJHQGPQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/D7/D7weUSOkeIeJoG-3qAL4TOkvoWmxfIA-uiHAeluNp74.cache b/T5/tmp/cache/assets/sprockets/v3.0/D7/D7weUSOkeIeJoG-3qAL4TOkvoWmxfIA-uiHAeluNp74.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/D7/D7weUSOkeIeJoG-3qAL4TOkvoWmxfIA-uiHAeluNp74.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/DA/DATP9xiol8wQcfa9eAPHGiHw_uYIqEWCtwKH3-4ibLc.cache b/T5/tmp/cache/assets/sprockets/v3.0/DA/DATP9xiol8wQcfa9eAPHGiHw_uYIqEWCtwKH3-4ibLc.cache new file mode 100644 index 0000000000000000000000000000000000000000..4a03e0ebce44752beb5c40493917ff658a2c9a77 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/DA/DATP9xiol8wQcfa9eAPHGiHw_uYIqEWCtwKH3-4ibLc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/DK/DKXgkg3pJ5YvDvzTD3m0R9shkeT6Rt5rH4ARF85lrX8.cache b/T5/tmp/cache/assets/sprockets/v3.0/DK/DKXgkg3pJ5YvDvzTD3m0R9shkeT6Rt5rH4ARF85lrX8.cache new file mode 100644 index 0000000000000000000000000000000000000000..5a9027702997fc42de7f6e29a94240229aec3619 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/DK/DKXgkg3pJ5YvDvzTD3m0R9shkeT6Rt5rH4ARF85lrX8.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/tabbable.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"8file-digest://app/assets/config/jquery-ui/focusable;TTI"8file-digest://app/assets/images/jquery-ui/focusable;TTI"=file-digest://app/assets/javascripts/jquery-ui/focusable;TTI"=file-digest://app/assets/stylesheets/jquery-ui/focusable;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/focusable;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/focusable;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/focusable;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/focusable.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/DP/DPOjjojRKUkUkCg_OjaN7n1iVAJU3-q397RY6aiaihs.cache b/T5/tmp/cache/assets/sprockets/v3.0/DP/DPOjjojRKUkUkCg_OjaN7n1iVAJU3-q397RY6aiaihs.cache new file mode 100644 index 0000000000000000000000000000000000000000..32a60840db54ca7a87191d8f5241d9fbc6ac2cf1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/DP/DPOjjojRKUkUkCg_OjaN7n1iVAJU3-q397RY6aiaihs.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=ee04dc62c0d1ed01ea1f3399f7f03a9ee1e67d1aea3b6003d06fb0cefdc887e1:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/DP/DPobOYcluhw-KvDVONg1Mw09FQtzyrUrMKftPtmJisQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/DP/DPobOYcluhw-KvDVONg1Mw09FQtzyrUrMKftPtmJisQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..d3887c280dfa38baf4ff9121906acbf4ab60d6c7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/DP/DPobOYcluhw-KvDVONg1Mw09FQtzyrUrMKftPtmJisQ.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=e28d7e451a445249a5b1d71cacd3683739281f8fe4801412e8306cda90714a50:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Da/DasYSVxxFKSpG1xAGOCJVThpSpjooOAkQMZinwQNCSQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Da/DasYSVxxFKSpG1xAGOCJVThpSpjooOAkQMZinwQNCSQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..1bc2abdd571aeddb5504f82f3d3b46b539e5182b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Da/DasYSVxxFKSpG1xAGOCJVThpSpjooOAkQMZinwQNCSQ.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"„file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/disable-selection.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Db/Db1y14aetFqppPf5mHSHggsYvGljZ6MPU8fXIIi4cto.cache b/T5/tmp/cache/assets/sprockets/v3.0/Db/Db1y14aetFqppPf5mHSHggsYvGljZ6MPU8fXIIi4cto.cache new file mode 100644 index 0000000000000000000000000000000000000000..226c658bdbf011ae29a76c6a30f194a49d634311 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Db/Db1y14aetFqppPf5mHSHggsYvGljZ6MPU8fXIIi4cto.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Dr/DrJjHDaPcK9qptx-F3afEi02dbJ18OyzSd0Peak0mtY.cache b/T5/tmp/cache/assets/sprockets/v3.0/Dr/DrJjHDaPcK9qptx-F3afEi02dbJ18OyzSd0Peak0mtY.cache new file mode 100644 index 0000000000000000000000000000000000000000..4561d5b231485dbc054e9979b244c1135aaa08f3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Dr/DrJjHDaPcK9qptx-F3afEi02dbJ18OyzSd0Peak0mtY.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/sessions.coffee?type=application/javascript&pipeline=self&id=476155238a352127ed39016eeba03d3927ea466795b605deece9cf145ce00193:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ds/DswzC_nU5DA3i_lcDo7C7Tn-2Cyv4hqhqf_re9FRmGU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ds/DswzC_nU5DA3i_lcDo7C7Tn-2Cyv4hqhqf_re9FRmGU.cache new file mode 100644 index 0000000000000000000000000000000000000000..07b9ccd81e6f9f090f04915e9740c96c725ec258 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ds/DswzC_nU5DA3i_lcDo7C7Tn-2Cyv4hqhqf_re9FRmGU.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/categories.coffee?type=application/javascript&pipeline=self&id=dd457f866c85b054c3273cf976589e86be1b1d9a2eed2da76871d7b26423666a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/E9/E9DfQt2RK40nLdtZPilN_16mNfWx4xyxalvZhtXVcR4.cache b/T5/tmp/cache/assets/sprockets/v3.0/E9/E9DfQt2RK40nLdtZPilN_16mNfWx4xyxalvZhtXVcR4.cache new file mode 100644 index 0000000000000000000000000000000000000000..65f6f515a3f876532e49b519b28f3ea43525f811 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/E9/E9DfQt2RK40nLdtZPilN_16mNfWx4xyxalvZhtXVcR4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/EH/EHI-kjWX2JtLKQ_N91cEn_m6UVEoMTqaIs1NZGR5Hyw.cache b/T5/tmp/cache/assets/sprockets/v3.0/EH/EHI-kjWX2JtLKQ_N91cEn_m6UVEoMTqaIs1NZGR5Hyw.cache new file mode 100644 index 0000000000000000000000000000000000000000..286fc0ee0becf1cc05ece39368d748a04adca9c0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/EH/EHI-kjWX2JtLKQ_N91cEn_m6UVEoMTqaIs1NZGR5Hyw.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ej/Ejmztsm6kOKOSdjIWY-IqYMdr40nHXuch8w28RzM4AY.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ej/Ejmztsm6kOKOSdjIWY-IqYMdr40nHXuch8w28RzM4AY.cache new file mode 100644 index 0000000000000000000000000000000000000000..aa02913e19f5d27a753df3cb6978797b832a7206 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ej/Ejmztsm6kOKOSdjIWY-IqYMdr40nHXuch8w28RzM4AY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/F2/F2QmZevrxq9ykZIZOtKDrvUmDiwI7O-MEtx9BkRCmvs.cache b/T5/tmp/cache/assets/sprockets/v3.0/F2/F2QmZevrxq9ykZIZOtKDrvUmDiwI7O-MEtx9BkRCmvs.cache new file mode 100644 index 0000000000000000000000000000000000000000..21f4fba4e198e726927d5875cf5722f4ebc072f8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/F2/F2QmZevrxq9ykZIZOtKDrvUmDiwI7O-MEtx9BkRCmvs.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=a1362831880a8e471f55da3383e62a6988f7ac20ba0fc4a9747fcf44b1552f62:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FI/FIsRPikJydhLc2uh1wj3voYHrPf6TQplFBZNfRk026M.cache b/T5/tmp/cache/assets/sprockets/v3.0/FI/FIsRPikJydhLc2uh1wj3voYHrPf6TQplFBZNfRk026M.cache new file mode 100644 index 0000000000000000000000000000000000000000..c4bb3bf519d98fc36397c97be76a5d718e825758 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/FI/FIsRPikJydhLc2uh1wj3voYHrPf6TQplFBZNfRk026M.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=be9ae86d7d3adb50a3ee9356af8276cf7f291466f490b964bb567c1a0a16b9d8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FJ/FJRjju1fUpQOQCPnGuYrE_0nBkvCcuKoJEJ_cFG2XmQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/FJ/FJRjju1fUpQOQCPnGuYrE_0nBkvCcuKoJEJ_cFG2XmQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..79af31aa080c76faa8c8263d19be121c5e262899 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/FJ/FJRjju1fUpQOQCPnGuYrE_0nBkvCcuKoJEJ_cFG2XmQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FO/FO8n4Z_4yvFF97lNUnhJSqo-q9OytjuU9ssM7pu94P8.cache b/T5/tmp/cache/assets/sprockets/v3.0/FO/FO8n4Z_4yvFF97lNUnhJSqo-q9OytjuU9ssM7pu94P8.cache new file mode 100644 index 0000000000000000000000000000000000000000..149ad0214e59b947c2a5ae73fcb43e5dc9250ba3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/FO/FO8n4Z_4yvFF97lNUnhJSqo-q9OytjuU9ssM7pu94P8.cache @@ -0,0 +1 @@ +I"„app/assets/stylesheets/sessions.scss?type=text/css&pipeline=self&id=69788752927ae0701de4cd6698e4ceb552b209631697b264344d8fc4970cf78e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FQ/FQ09agYifYp5PLB2bDibnT137W_944ocdLoFPZu1Agg.cache b/T5/tmp/cache/assets/sprockets/v3.0/FQ/FQ09agYifYp5PLB2bDibnT137W_944ocdLoFPZu1Agg.cache new file mode 100644 index 0000000000000000000000000000000000000000..651ba65f472b56cee77e22ee7172ffac9570631d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/FQ/FQ09agYifYp5PLB2bDibnT137W_944ocdLoFPZu1Agg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FS/FSGscSUHiOM84aMG8PhMZhRxkfQJjQCujQ9CGdxiM08.cache b/T5/tmp/cache/assets/sprockets/v3.0/FS/FSGscSUHiOM84aMG8PhMZhRxkfQJjQCujQ9CGdxiM08.cache new file mode 100644 index 0000000000000000000000000000000000000000..3db3d9a2bb884d9ce871c31105c36013cc41ca2d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/FS/FSGscSUHiOM84aMG8PhMZhRxkfQJjQCujQ9CGdxiM08.cache @@ -0,0 +1 @@ +"%¹›T×ÝaòЬP£‹‡>ÍLÑ€SqäÇ^\¢‘3þî \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/FV/FVm7goe3aXzCwwK0Ut5jLTUCNxC7InROc87Qt3-DSXo.cache b/T5/tmp/cache/assets/sprockets/v3.0/FV/FVm7goe3aXzCwwK0Ut5jLTUCNxC7InROc87Qt3-DSXo.cache new file mode 100644 index 0000000000000000000000000000000000000000..ee686067b7422adc3ba07be331fb251303e04d8c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/FV/FVm7goe3aXzCwwK0Ut5jLTUCNxC7InROc87Qt3-DSXo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fe/FeMZH9SMS7slX0ex7VvFaD1zv9Oow4sIcxivQjip2Q8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fe/FeMZH9SMS7slX0ex7VvFaD1zv9Oow4sIcxivQjip2Q8.cache new file mode 100644 index 0000000000000000000000000000000000000000..f931c3836df1f9387f3aacd2d1bea644b193f1db --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Fe/FeMZH9SMS7slX0ex7VvFaD1zv9Oow4sIcxivQjip2Q8.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash})I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"€file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/mouse.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"1file-digest://app/assets/config/jquery-ui/ie;TTI".file-digest://app/assets/images/jquery-ui;TTI"1file-digest://app/assets/images/jquery-ui/ie;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI"6file-digest://app/assets/javascripts/jquery-ui/ie;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI"6file-digest://app/assets/stylesheets/jquery-ui/ie;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/ie;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"rfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/ie;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/ie;TTI"zfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/ie.js;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fg/FguRkky7gEp3fDf6xumEZG9p6LApur-u612-wVAYTF8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fg/FguRkky7gEp3fDf6xumEZG9p6LApur-u612-wVAYTF8.cache new file mode 100644 index 0000000000000000000000000000000000000000..d74b54aa7bc9a116c81b91091d5ac94be65ecd17 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Fg/FguRkky7gEp3fDf6xumEZG9p6LApur-u612-wVAYTF8.cache @@ -0,0 +1 @@ +"%=˜&YvÏíž«q0*m…¢ AùE7¤&îäµÔý[ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp-sHtNXjjXvT4RyMFBsBW4mjNb8ioB843waWn3lAw4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp-sHtNXjjXvT4RyMFBsBW4mjNb8ioB843waWn3lAw4.cache new file mode 100644 index 0000000000000000000000000000000000000000..21c70a7bf731aaaf5738866f4777233cb7e1bb72 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp-sHtNXjjXvT4RyMFBsBW4mjNb8ioB843waWn3lAw4.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=70c2bb57310438c56d592ebca5845ce6cc0eae5a168123f47ad41feda077f063:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp72bvrrYNsYuvK0hQK3PSfKeiIGlK32dRagOK3sLIQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp72bvrrYNsYuvK0hQK3PSfKeiIGlK32dRagOK3sLIQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..01a3143f0acff5b619ffadded8585782719f27bb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Fp/Fp72bvrrYNsYuvK0hQK3PSfKeiIGlK32dRagOK3sLIQ.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=e005b547dedbdece30efe664be55503df59247ddaea5ac0021ee2e4409398853:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzowY-ZUXIIdIQT1dLeecuOQxZSD1tOpFTxQPHEYbEo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzowY-ZUXIIdIQT1dLeecuOQxZSD1tOpFTxQPHEYbEo.cache new file mode 100644 index 0000000000000000000000000000000000000000..dd0de2ff4d8c7c82e477b8248db445b5c920023d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzowY-ZUXIIdIQT1dLeecuOQxZSD1tOpFTxQPHEYbEo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzwFvPy8JnQyWcit7lnuwA5DqXjt3B4Hv3L3dRazxYg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzwFvPy8JnQyWcit7lnuwA5DqXjt3B4Hv3L3dRazxYg.cache new file mode 100644 index 0000000000000000000000000000000000000000..8140b847b5f5a0ca762f24fc3bce8dc46dd2e614 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Fz/FzwFvPy8JnQyWcit7lnuwA5DqXjt3B4Hv3L3dRazxYg.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=7d17aef2fc252e152cf4b6814ee87a6b41cd7141d425bd99ebb940ac05fd7647:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/G2/G2d4FGxF7Fl4AiI_CbOfMe2x_kUfhhE64a2oEOfC04I.cache b/T5/tmp/cache/assets/sprockets/v3.0/G2/G2d4FGxF7Fl4AiI_CbOfMe2x_kUfhhE64a2oEOfC04I.cache new file mode 100644 index 0000000000000000000000000000000000000000..d23c2762f966633f3babafcf6a90b93def7e9cd6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/G2/G2d4FGxF7Fl4AiI_CbOfMe2x_kUfhhE64a2oEOfC04I.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/G3/G3Z1PAuGmTvtqOw2IX5hJUmoRUwVFAWCUgSQ6EOZsZc.cache b/T5/tmp/cache/assets/sprockets/v3.0/G3/G3Z1PAuGmTvtqOw2IX5hJUmoRUwVFAWCUgSQ6EOZsZc.cache new file mode 100644 index 0000000000000000000000000000000000000000..79a508bdfb70d6c230694db051415fcd05894425 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/G3/G3Z1PAuGmTvtqOw2IX5hJUmoRUwVFAWCUgSQ6EOZsZc.cache @@ -0,0 +1,2 @@ +"%#_f˜/yBŒíj hØiaÂn;2i +÷õó( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/GC/GCKRDy3dJQGBcv3T2zDAH8NR_VJ3ykfxCYQNZbS2o0E.cache b/T5/tmp/cache/assets/sprockets/v3.0/GC/GCKRDy3dJQGBcv3T2zDAH8NR_VJ3ykfxCYQNZbS2o0E.cache new file mode 100644 index 0000000000000000000000000000000000000000..d3d8090b1952ae4f270eefc4cbe1e24b24f852df Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/GC/GCKRDy3dJQGBcv3T2zDAH8NR_VJ3ykfxCYQNZbS2o0E.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/GN/GNrDO_KtzbK8A7bd_k-XoQnxec9_FDYCemJpIj7JAt0.cache b/T5/tmp/cache/assets/sprockets/v3.0/GN/GNrDO_KtzbK8A7bd_k-XoQnxec9_FDYCemJpIj7JAt0.cache new file mode 100644 index 0000000000000000000000000000000000000000..3159638208aded7f582ce656c656a9706c13c1e3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/GN/GNrDO_KtzbK8A7bd_k-XoQnxec9_FDYCemJpIj7JAt0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/GS/GS3tS648Mowg9stw0sBxbbrS8200ehcU_wZesz4n1Oo.cache b/T5/tmp/cache/assets/sprockets/v3.0/GS/GS3tS648Mowg9stw0sBxbbrS8200ehcU_wZesz4n1Oo.cache new file mode 100644 index 0000000000000000000000000000000000000000..33612ffa92fb4346daf384a48c37984bb7b7abe7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/GS/GS3tS648Mowg9stw0sBxbbrS8200ehcU_wZesz4n1Oo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/GZ/GZDtQZrgwnXK_6egpOUQigoBZeAQALjBQEb7iYb8DqY.cache b/T5/tmp/cache/assets/sprockets/v3.0/GZ/GZDtQZrgwnXK_6egpOUQigoBZeAQALjBQEb7iYb8DqY.cache new file mode 100644 index 0000000000000000000000000000000000000000..a7a9914397250460eb9aff66bb37d2b3921e7cf5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/GZ/GZDtQZrgwnXK_6egpOUQigoBZeAQALjBQEb7iYb8DqY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ge/Ge551wvjjRSiDFhDziPiYokVa77rWsShMoTJEXBukbM.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ge/Ge551wvjjRSiDFhDziPiYokVa77rWsShMoTJEXBukbM.cache new file mode 100644 index 0000000000000000000000000000000000000000..e5aaaa311fc2eff1bdf02ff6108d674996676364 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ge/Ge551wvjjRSiDFhDziPiYokVa77rWsShMoTJEXBukbM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Gh/GhgDE5Pl3Mxf2fuw0LTZZYxersoisar4NFK4dZwuGFQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Gh/GhgDE5Pl3Mxf2fuw0LTZZYxersoisar4NFK4dZwuGFQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..3326b56917836e4b8e1f948cc57ea3ab7458eb0f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Gh/GhgDE5Pl3Mxf2fuw0LTZZYxersoisar4NFK4dZwuGFQ.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/user.coffee?type=application/javascript&pipeline=self&id=5b86e6f4b3ed76d8461664745754eddcb67ca973e66b49276f4611a1fce94266:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Gl/GlTSWUiU723l2T_jWaLYthNK8lnypaq0N6ffHDNKFN4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Gl/GlTSWUiU723l2T_jWaLYthNK8lnypaq0N6ffHDNKFN4.cache new file mode 100644 index 0000000000000000000000000000000000000000..1e3469a2994c2290417a688dda4d7b23af43a9e5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Gl/GlTSWUiU723l2T_jWaLYthNK8lnypaq0N6ffHDNKFN4.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=c6db964cf35f0232f7e2af434f1d93019827a7816272e0aaeccf63ae9c628f40:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Gm/Gm3T0FjTAvUN3FQALrIITePZp4EmdiBNsN5AY-bPykM.cache b/T5/tmp/cache/assets/sprockets/v3.0/Gm/Gm3T0FjTAvUN3FQALrIITePZp4EmdiBNsN5AY-bPykM.cache new file mode 100644 index 0000000000000000000000000000000000000000..2e2de6e9e8ae54a49b1f17c9cc83568c09b3356b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Gm/Gm3T0FjTAvUN3FQALrIITePZp4EmdiBNsN5AY-bPykM.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/safe-active-element.js?type=application/javascript&pipeline=self&id=096e91c575a3c9df97fb72339ce8fff242ec0155155739e28d7d3bf0b4b7caf2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/H6/H6kxAqLDXP287zRxUZ7yQITDXUCo2P8XIEE2h0iEClI.cache b/T5/tmp/cache/assets/sprockets/v3.0/H6/H6kxAqLDXP287zRxUZ7yQITDXUCo2P8XIEE2h0iEClI.cache new file mode 100644 index 0000000000000000000000000000000000000000..00715a35fdd4e44918b127b5ff579f927b381387 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/H6/H6kxAqLDXP287zRxUZ7yQITDXUCo2P8XIEE2h0iEClI.cache @@ -0,0 +1 @@ +"%ºBø"AÀ9Ço„lÔÿ¨ÆxªpºÆvc®Q~|½îÖ€ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/H8/H831c9UheyF49Ev4Nscy1hUDz7DtC_UUFrkmp28upc4.cache b/T5/tmp/cache/assets/sprockets/v3.0/H8/H831c9UheyF49Ev4Nscy1hUDz7DtC_UUFrkmp28upc4.cache new file mode 100644 index 0000000000000000000000000000000000000000..184387c6aef5c84f8a2a0d8349ba60986ee04606 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/H8/H831c9UheyF49Ev4Nscy1hUDz7DtC_UUFrkmp28upc4.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=4b2b7bcc877ff84e183695c5be64fd95d4807d132a0cb2a602f347cf59b845eb:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache b/T5/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache new file mode 100644 index 0000000000000000000000000000000000000000..27c433ca1d5e16799d6548dbdcdd0070c3d57a2e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/HC/HCDOUd7-S45aJ_PjVAC_Vmjyud3i1aQv4cE3t9_Z3Dw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HG/HGVxRO7l9R-xR9Lg9F-kFerSvkkRYcwFrZpHAkFVskA.cache b/T5/tmp/cache/assets/sprockets/v3.0/HG/HGVxRO7l9R-xR9Lg9F-kFerSvkkRYcwFrZpHAkFVskA.cache new file mode 100644 index 0000000000000000000000000000000000000000..52af48364f3e98919144ae0d8d9d266853591c0f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/HG/HGVxRO7l9R-xR9Lg9F-kFerSvkkRYcwFrZpHAkFVskA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HG/HGZx9oX3hy4Fttw6bZHgJPVZLPYQYyoXhPw-b3B60CY.cache b/T5/tmp/cache/assets/sprockets/v3.0/HG/HGZx9oX3hy4Fttw6bZHgJPVZLPYQYyoXhPw-b3B60CY.cache new file mode 100644 index 0000000000000000000000000000000000000000..bdcc350b59dbe249a128af3abb5747494750014b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HG/HGZx9oX3hy4Fttw6bZHgJPVZLPYQYyoXhPw-b3B60CY.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/labels.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI">file-digest://app/assets/config/jquery-ui/escape-selector;TTI">file-digest://app/assets/images/jquery-ui/escape-selector;TTI"Cfile-digest://app/assets/javascripts/jquery-ui/escape-selector;TTI"Cfile-digest://app/assets/stylesheets/jquery-ui/escape-selector;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/escape-selector;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/escape-selector;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector;TTI"‚file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HH/HHWnDT2WfpVEoww6NNilkrQLNzdeTly8e4Ji_sbME_8.cache b/T5/tmp/cache/assets/sprockets/v3.0/HH/HHWnDT2WfpVEoww6NNilkrQLNzdeTly8e4Ji_sbME_8.cache new file mode 100644 index 0000000000000000000000000000000000000000..3e3e48b5347b80dcda0d59518af53922e7cd1b05 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/HH/HHWnDT2WfpVEoww6NNilkrQLNzdeTly8e4Ji_sbME_8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HM/HMu8oZfhPZZz2FpnD6HjcU-woX0-PjlcSoSQJEiNHMk.cache b/T5/tmp/cache/assets/sprockets/v3.0/HM/HMu8oZfhPZZz2FpnD6HjcU-woX0-PjlcSoSQJEiNHMk.cache new file mode 100644 index 0000000000000000000000000000000000000000..9c0c64ff7126e1b0f77089af8f47b655a2e6f272 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HM/HMu8oZfhPZZz2FpnD6HjcU-woX0-PjlcSoSQJEiNHMk.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=33db4224a7206eced56bcc36961daf4ba09ecd08e3fd186a26bcbc7c42eb0291:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HN/HN4QmcXTkTSbIXL5GKfsERvq9-rZLVOPe8nevkqc0Xo.cache b/T5/tmp/cache/assets/sprockets/v3.0/HN/HN4QmcXTkTSbIXL5GKfsERvq9-rZLVOPe8nevkqc0Xo.cache new file mode 100644 index 0000000000000000000000000000000000000000..0db555ffc19b04aff3f73d37076b03bf93ebec36 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HN/HN4QmcXTkTSbIXL5GKfsERvq9-rZLVOPe8nevkqc0Xo.cache @@ -0,0 +1 @@ +I"…app/assets/javascripts/application.js?type=application/javascript&id=f5698baa85f4516705a6d89d56439339b972cd8cc25832476d7aeb2ba9d2936e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HN/HNXmpxafm_LTmDwwYNmlHdWBURIYG4jHlbd4KGiYSM4.cache b/T5/tmp/cache/assets/sprockets/v3.0/HN/HNXmpxafm_LTmDwwYNmlHdWBURIYG4jHlbd4KGiYSM4.cache new file mode 100644 index 0000000000000000000000000000000000000000..63aae1ff5540abae76f751bdf01fc2c8d98c7dd5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HN/HNXmpxafm_LTmDwwYNmlHdWBURIYG4jHlbd4KGiYSM4.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=fb493d7ea47370f90185963cd11647d1eb1e1f76a7dd7242d94f1fa129405c3c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HN/HNwYLdjr4dPBc8eUeG2dCIs7D0bpZZ13gEu5zNVNILI.cache b/T5/tmp/cache/assets/sprockets/v3.0/HN/HNwYLdjr4dPBc8eUeG2dCIs7D0bpZZ13gEu5zNVNILI.cache new file mode 100644 index 0000000000000000000000000000000000000000..d9fb925a32d28314d49eacb3b2b50e5c3b8d0e4b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/HN/HNwYLdjr4dPBc8eUeG2dCIs7D0bpZZ13gEu5zNVNILI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HO/HOM_5dnW6CViF8SYDpqKN9DsDMnf0HMt4XMJOYERTP0.cache b/T5/tmp/cache/assets/sprockets/v3.0/HO/HOM_5dnW6CViF8SYDpqKN9DsDMnf0HMt4XMJOYERTP0.cache new file mode 100644 index 0000000000000000000000000000000000000000..937bc8624f194a970e31ed34f580038dc7f5422d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HO/HOM_5dnW6CViF8SYDpqKN9DsDMnf0HMt4XMJOYERTP0.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=6c70f35816ffc7d3bfe49fd9c6e297b9ce52614efe89d9691811a10873ab0907:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/HT/HT2yrvBzo0iwo_fq4BoAv8XgC3tM53RuJ9bgqzLXt5o.cache b/T5/tmp/cache/assets/sprockets/v3.0/HT/HT2yrvBzo0iwo_fq4BoAv8XgC3tM53RuJ9bgqzLXt5o.cache new file mode 100644 index 0000000000000000000000000000000000000000..d37f8776e55318cd354e232a1de38434be87594d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/HT/HT2yrvBzo0iwo_fq4BoAv8XgC3tM53RuJ9bgqzLXt5o.cache @@ -0,0 +1 @@ +I"Ü/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/unique-id.js?type=application/javascript&pipeline=self&id=fe61a44190c350039cca709e9e50aef6a1ec53316406ed88b5f03545d8de99ac:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/H_/H_AE-WtwecdDPE7hMg1GW2BIxQDs4tMaxdV5mWXvF2E.cache b/T5/tmp/cache/assets/sprockets/v3.0/H_/H_AE-WtwecdDPE7hMg1GW2BIxQDs4tMaxdV5mWXvF2E.cache new file mode 100644 index 0000000000000000000000000000000000000000..4f2f97918641bf2bb230d2d8c045967307526eb4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/H_/H_AE-WtwecdDPE7hMg1GW2BIxQDs4tMaxdV5mWXvF2E.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/H_/H_J6_2IrgyIe3TTGAzDhTy9LZW3EPKZFDl5WDpKYR6Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/H_/H_J6_2IrgyIe3TTGAzDhTy9LZW3EPKZFDl5WDpKYR6Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..295c5be6e9cf506250f612b5a4dbfa49253328fa Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/H_/H_J6_2IrgyIe3TTGAzDhTy9LZW3EPKZFDl5WDpKYR6Q.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Hw/HwFH4HRDCA2boULhVKNKRM6os4LN4DlOOIdVUC8zoIw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Hw/HwFH4HRDCA2boULhVKNKRM6os4LN4DlOOIdVUC8zoIw.cache new file mode 100644 index 0000000000000000000000000000000000000000..6cc277dc4939bb6d60be20c0a2da228427f2b59b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Hw/HwFH4HRDCA2boULhVKNKRM6os4LN4DlOOIdVUC8zoIw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/I3/I3bjQQW320BWICnlAZgEUZUITfyWy69MFjj3DUSbezg.cache b/T5/tmp/cache/assets/sprockets/v3.0/I3/I3bjQQW320BWICnlAZgEUZUITfyWy69MFjj3DUSbezg.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/I3/I3bjQQW320BWICnlAZgEUZUITfyWy69MFjj3DUSbezg.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ID/ID4wcqFQdD9E3VTTOA7n7m4vBXrwXydtKy1rqc7USCE.cache b/T5/tmp/cache/assets/sprockets/v3.0/ID/ID4wcqFQdD9E3VTTOA7n7m4vBXrwXydtKy1rqc7USCE.cache new file mode 100644 index 0000000000000000000000000000000000000000..c6edd503c1a0d1404be6b3d1192d52b83e432631 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ID/ID4wcqFQdD9E3VTTOA7n7m4vBXrwXydtKy1rqc7USCE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=875bbaf723a8e10c141b4db0b53443ae1f2dc7c7b5360de82f018f5daff6da01:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/IF/IFgucdC-fwXALB73VPGzZIQSRhibd0Ho0QOVIDlXWT0.cache b/T5/tmp/cache/assets/sprockets/v3.0/IF/IFgucdC-fwXALB73VPGzZIQSRhibd0Ho0QOVIDlXWT0.cache new file mode 100644 index 0000000000000000000000000000000000000000..6a14851a44600673663d6ed4473326849172a87a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/IF/IFgucdC-fwXALB73VPGzZIQSRhibd0Ho0QOVIDlXWT0.cache @@ -0,0 +1 @@ +I"…app/assets/javascripts/application.js?type=application/javascript&id=b4be2b5c45c7c58c7560516811fdb8351390020608265d5439658c56bb8473c8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/IF/IFheMOUaJ7Slvkl9X9ZY3NKfAYOcOPY6IUPoRfeuq1g.cache b/T5/tmp/cache/assets/sprockets/v3.0/IF/IFheMOUaJ7Slvkl9X9ZY3NKfAYOcOPY6IUPoRfeuq1g.cache new file mode 100644 index 0000000000000000000000000000000000000000..eb7262762f77a67d5b39ffcacdb190dfa5a14f0d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/IF/IFheMOUaJ7Slvkl9X9ZY3NKfAYOcOPY6IUPoRfeuq1g.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/IM/IM814V0gEABqOwCYP7c5fPTUirIrD26WOCAZD_6wRDY.cache b/T5/tmp/cache/assets/sprockets/v3.0/IM/IM814V0gEABqOwCYP7c5fPTUirIrD26WOCAZD_6wRDY.cache new file mode 100644 index 0000000000000000000000000000000000000000..dc656f1b895a1561c62e10b05cd77ea4bb26b13f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/IM/IM814V0gEABqOwCYP7c5fPTUirIrD26WOCAZD_6wRDY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/IT/ITE4jWppl0YIf7EQ6vuY2jahFvBYKWbEDLrNhXlfUcU.cache b/T5/tmp/cache/assets/sprockets/v3.0/IT/ITE4jWppl0YIf7EQ6vuY2jahFvBYKWbEDLrNhXlfUcU.cache new file mode 100644 index 0000000000000000000000000000000000000000..a3ea8e84ab7f38bff153ebc64b4b0c4ec9b1e7e2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/IT/ITE4jWppl0YIf7EQ6vuY2jahFvBYKWbEDLrNhXlfUcU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/IZ/IZbpFGfJ4G6Ph2FYnAkkpYpoiMN_vhu4R4upalHBlQs.cache b/T5/tmp/cache/assets/sprockets/v3.0/IZ/IZbpFGfJ4G6Ph2FYnAkkpYpoiMN_vhu4R4upalHBlQs.cache new file mode 100644 index 0000000000000000000000000000000000000000..9712673f0a5c67b1e3d269dfa1abdb3c7c565a51 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/IZ/IZbpFGfJ4G6Ph2FYnAkkpYpoiMN_vhu4R4upalHBlQs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/I_/I_izMRt-CIY3Yh6Ph2yyVgEkJ9N00d8Z2thEHF0k4PE.cache b/T5/tmp/cache/assets/sprockets/v3.0/I_/I_izMRt-CIY3Yh6Ph2yyVgEkJ9N00d8Z2thEHF0k4PE.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/I_/I_izMRt-CIY3Yh6Ph2yyVgEkJ9N00d8Z2thEHF0k4PE.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ih/Ih56ZJsFZTtKNVM1ruvtQlpAn4fwG5hRaeLc3sIaXf8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ih/Ih56ZJsFZTtKNVM1ruvtQlpAn4fwG5hRaeLc3sIaXf8.cache new file mode 100644 index 0000000000000000000000000000000000000000..1d6ed697f34ee9c351863635c667bfb403d9fa57 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ih/Ih56ZJsFZTtKNVM1ruvtQlpAn4fwG5hRaeLc3sIaXf8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ii/IipNXxmWC8rmP_rq1aWqX8OY3FfPA4dK1r3OeumInfo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ii/IipNXxmWC8rmP_rq1aWqX8OY3FfPA4dK1r3OeumInfo.cache new file mode 100644 index 0000000000000000000000000000000000000000..63f20fe9261e4af515dff0f8ff07f996dbd5ebc4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ii/IipNXxmWC8rmP_rq1aWqX8OY3FfPA4dK1r3OeumInfo.cache @@ -0,0 +1 @@ +I"Û/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/tabbable.js?type=application/javascript&pipeline=self&id=2905ca83b87372a08bdd4d581946f6fbed517640555d454899e0d65c6975212e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ir/IrhX27r1Ea6lns6MF80QCuuhO8QKfaKJFIXL0rq9GNc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ir/IrhX27r1Ea6lns6MF80QCuuhO8QKfaKJFIXL0rq9GNc.cache new file mode 100644 index 0000000000000000000000000000000000000000..336e747431037e80b96857cadcc09dc6542fa08b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ir/IrhX27r1Ea6lns6MF80QCuuhO8QKfaKJFIXL0rq9GNc.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=1af8bc005b4ed3d15f1f7c583ea4454bd4d24972e2263068c4265afc8ad1729e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/J0/J0cJ--XngauThEtx6JsbZfDXJWMJH10oA1e12iRDq5Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/J0/J0cJ--XngauThEtx6JsbZfDXJWMJH10oA1e12iRDq5Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..bececd7ccc5ef96ef8876f2d06eab117e0fd7dba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/J0/J0cJ--XngauThEtx6JsbZfDXJWMJH10oA1e12iRDq5Y.cache @@ -0,0 +1,6 @@ +xÚÅXÏoE&œØIK"$¨"“U¥%ÞµÛq6u +…Fò¡¥Fª(wg½vw63³I$ ®¨.ˆB*œ"pá€Ä_€Ä Ä ñ $GÄ{ý#N6¨®e½óÞ÷¾o¾™yëõcûÓæDÄiEûÅ¡1 Ãp™OŒ=ây4¨K:ßõ:ñ…Á£Z#Óz¦u¿½ÞHG4Í1õDº¨gô¬ÃÐÀB x‹ÓPö$×j¸æ}[\•”áQK +l]ÈbHC"HYÏY¤v9·–)X¸´R+®¬æp¦T³í¼](e×òE§èÔˆ]È®ó™B¡`çùÒÚÉØÅ‚U\[-ä²9’0׫æa{+ÄÒho< Ù&ÖUó¼r4À>©h|¤®6Ù“-æ§Of4Ã3«ƒç^lÄì)…”ííj3$ ä–Z°ŠöÌéKÖL,â$=zû\*•2.Ï¥Ðe´}SÕG¯UP5®²z6§gUЕ2„×ÒQÝb>«ÈK,lpZwe»À&‹»É‹p`#&]‘Çi-’Œ…z•xb#È…0ä •*Å$D?A©3^7â( Pmllx¸F<™mCÐ-(kG3Zç, +MÈIóÞ&-@™g +\hÏ¥–‹, Aª ˆ“Lo!™%̶ R½×‡Îr¤EÌê––¢‚OX 6Ð%´ŸJR-!µDÌA6qàð r¹Œ´vº†ã€Ž}» J%“†^¼ñ²¾Õ©àà.ü± á³H ŸÙìHm—ФµdjËHÓ]Â…ªß¼q˜ ¥YCo.w®§’‡àˆ Òkœí «{¬†=ƒqòR{¹› Ô!êñ|K6'2âš×É]Ø™öRóSÈA˜Ùä;ÚÞ™=èxIZ~%w1WËQ}r•¡–’w’`6¤*¨¡KËŸt±¨ÆCßΕQy¨Mƺ–Ð\oîÁA7y£Œ2ÀK1¯Ã*wìêáí…¶=€«ú¯®þâ‰á,àý)sÆ&!˜@‹Á̉[D&ÌÔPÆ=œ«hI°K9Tñt¼VªFµ¢=ÕRÍ@Äöáxàõ3‹‡Ìü§¾ÚÞÖÀ=.>¶¯`i›Ö‰£~Åôãz*@ƒqh½ŽÅÆqÓÏf¢>†Á!˜ú}L+gOu%F‡˜SȆG„KÈPœ§¢ú8wþóö±˜ã>Ósð(¨ âRc”œ}óe±÷FÇØ7W9âÖÓŒº#Ÿõ»‰¾ÛKƒ··Î3ì_¡'ÖºZ²÷Ž?½ôã÷GzªûÙ#<eýÜïŒzÇõ;xh +Ú»~Ó<ÏÉND9±Ùú‰õéÃqÐõñÈ^Ž»‡ðêÐ_¡>™Ê^Û†Ô¹iN © ØßG6ͤ¼-º÷S–‹9ÐW´T$t €›ædk[h¿ÿ¹üëüûO¾ûfûœ6ûþ½/–ñ+üõµ¸GîXüÀœ„×îºt)¼€š{¿oµKD·½£ßÞzü«YùÑÏW~xîÚôѳöýÏrþ·Ÿýttó=sœÚíúÿþÁAéNù’úÄ{~|þÊ“wþàˆùX \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/JC/JCP2kayEprPfbsuu7QT4zy7x0DKqzfMulXYJTJjH6tA.cache b/T5/tmp/cache/assets/sprockets/v3.0/JC/JCP2kayEprPfbsuu7QT4zy7x0DKqzfMulXYJTJjH6tA.cache new file mode 100644 index 0000000000000000000000000000000000000000..6750f013926c546e61c584ead6d6899b47a50414 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/JC/JCP2kayEprPfbsuu7QT4zy7x0DKqzfMulXYJTJjH6tA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/JC/JCwVNp5TiAnjN1x2Lvc6fZVF0B800AWL-4Kf8s2z2aA.cache b/T5/tmp/cache/assets/sprockets/v3.0/JC/JCwVNp5TiAnjN1x2Lvc6fZVF0B800AWL-4Kf8s2z2aA.cache new file mode 100644 index 0000000000000000000000000000000000000000..c01f09d63fddcddf8a42748a295175b541f77036 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/JC/JCwVNp5TiAnjN1x2Lvc6fZVF0B800AWL-4Kf8s2z2aA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/JM/JMMmfL4jlkzHwCyUYTY4CrkgVB9AcborgLt-4lacEuU.cache b/T5/tmp/cache/assets/sprockets/v3.0/JM/JMMmfL4jlkzHwCyUYTY4CrkgVB9AcborgLt-4lacEuU.cache new file mode 100644 index 0000000000000000000000000000000000000000..1911ebff51f2849ae7d35670c272343114a85a5a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/JM/JMMmfL4jlkzHwCyUYTY4CrkgVB9AcborgLt-4lacEuU.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=94455678b1995a28d51a10f2c110afa07f388c6c867e7eeb87a08c903506658a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Jb/Jb6X6QsJpMnHX7YLvDTccdWFznEHD6clZOvzb2MYQnI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Jb/Jb6X6QsJpMnHX7YLvDTccdWFznEHD6clZOvzb2MYQnI.cache new file mode 100644 index 0000000000000000000000000000000000000000..29508e80561403669379fff8999e12b5a8a4aaec --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Jb/Jb6X6QsJpMnHX7YLvDTccdWFznEHD6clZOvzb2MYQnI.cache @@ -0,0 +1 @@ +"%¢qdFJ—¯LÁK^9ìÊÚ¸°«ô¹v¼«?‘ìo; \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Je/JeTNBbgz5S4TeUC07-FPApTtENVWut1UPtg00SIz0mk.cache b/T5/tmp/cache/assets/sprockets/v3.0/Je/JeTNBbgz5S4TeUC07-FPApTtENVWut1UPtg00SIz0mk.cache new file mode 100644 index 0000000000000000000000000000000000000000..e017239db59fe0e93362d7eea4dcbb21bfa6b9bd Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Je/JeTNBbgz5S4TeUC07-FPApTtENVWut1UPtg00SIz0mk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Jg/JgvwAmFr6M7cULfL_biy9jeLhtjbDUf-nAul8qErbsE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Jg/JgvwAmFr6M7cULfL_biy9jeLhtjbDUf-nAul8qErbsE.cache new file mode 100644 index 0000000000000000000000000000000000000000..d41a551c61aa0d1bf88f33f9ea7d35c0eba95ea3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Jg/JgvwAmFr6M7cULfL_biy9jeLhtjbDUf-nAul8qErbsE.cache @@ -0,0 +1 @@ +I"Ê/home/wellington/.rvm/gems/ruby-2.5.0/gems/actionview-5.1.5/lib/assets/compiled/rails-ujs.js?type=application/javascript&pipeline=self&id=d69bb5cb8f676cb9b74c52583db016d3e3894e4322552904939edcd86b520281:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Js/JsmJyEQBMvNqVRqlnMck5obN7yE-b6AEJ41EVZ35hC4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Js/JsmJyEQBMvNqVRqlnMck5obN7yE-b6AEJ41EVZ35hC4.cache new file mode 100644 index 0000000000000000000000000000000000000000..6d9411d6dc8df1be85274b7907c27a88b7883328 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Js/JsmJyEQBMvNqVRqlnMck5obN7yE-b6AEJ41EVZ35hC4.cache @@ -0,0 +1 @@ +I"ß/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/tabs.js?type=application/javascript&pipeline=self&id=f194667b1cc5bd2c5b5627c3ff91ceb6b7ab56f7abeea2876c9364ce934650dd:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Jz/JzTnxQROI7dzwHyHyuZKmCWXYMImZ1MY9zlwtyzQYTs.cache b/T5/tmp/cache/assets/sprockets/v3.0/Jz/JzTnxQROI7dzwHyHyuZKmCWXYMImZ1MY9zlwtyzQYTs.cache new file mode 100644 index 0000000000000000000000000000000000000000..deeae3b35fffc3daf10d7c2aa2c26bae2fc4112c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Jz/JzTnxQROI7dzwHyHyuZKmCWXYMImZ1MY9zlwtyzQYTs.cache @@ -0,0 +1 @@ +I"’app/assets/javascripts/prices.coffee?type=application/javascript&pipeline=self&id=31332b81bd5df7897cbc7e77b36b5e7aec780890a799e4a153037c4f199030cd:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/K3/K36pOjyD_5E4ipw7b0_d-IDJhvj_rgMuaF7ulU1LrnM.cache b/T5/tmp/cache/assets/sprockets/v3.0/K3/K36pOjyD_5E4ipw7b0_d-IDJhvj_rgMuaF7ulU1LrnM.cache new file mode 100644 index 0000000000000000000000000000000000000000..190c8d22be5fb3c700859faddeb50fdfca346e7d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/K3/K36pOjyD_5E4ipw7b0_d-IDJhvj_rgMuaF7ulU1LrnM.cache @@ -0,0 +1,2 @@ +"%òtœ„„‹²›÷% +¬i!#Õ‡sljÛ€Åyìãµú \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/K8/K8o-0hgh8QjQ8tq3rRp-8FzV6HIYw26jnKSxI3vDy3s.cache b/T5/tmp/cache/assets/sprockets/v3.0/K8/K8o-0hgh8QjQ8tq3rRp-8FzV6HIYw26jnKSxI3vDy3s.cache new file mode 100644 index 0000000000000000000000000000000000000000..d5a93aa64984e4691c628e9a365886d9111fb837 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/K8/K8o-0hgh8QjQ8tq3rRp-8FzV6HIYw26jnKSxI3vDy3s.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=fce5178f7fbc9c9b95bdd7c35f7592720b9ea720fa94c701340829644b96d16f:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/KA/KAWIMo7zzOmjQDS3rqdQImZRBZKKjzW9CoZIHWvFnvU.cache b/T5/tmp/cache/assets/sprockets/v3.0/KA/KAWIMo7zzOmjQDS3rqdQImZRBZKKjzW9CoZIHWvFnvU.cache new file mode 100644 index 0000000000000000000000000000000000000000..6bc26b6795725da025038aff40fdbb52023e6cad --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/KA/KAWIMo7zzOmjQDS3rqdQImZRBZKKjzW9CoZIHWvFnvU.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=331a6d7d9bac7f081d819bc70f6616d21ddcb96f70ebc5b6d7aac183250bb329:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/KC/KCeXh7XqSWQD4qX_vFZ-_cExKjsjjxGVWLrl-Xx-2M8.cache b/T5/tmp/cache/assets/sprockets/v3.0/KC/KCeXh7XqSWQD4qX_vFZ-_cExKjsjjxGVWLrl-Xx-2M8.cache new file mode 100644 index 0000000000000000000000000000000000000000..2c0d999948bbd61c176d7319b9b23eb6b7e978cd --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/KC/KCeXh7XqSWQD4qX_vFZ-_cExKjsjjxGVWLrl-Xx-2M8.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ƒfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form-reset-mixin.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"3file-digest://app/assets/config/jquery-ui/form;TTI".file-digest://app/assets/images/jquery-ui;TTI"3file-digest://app/assets/images/jquery-ui/form;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI"8file-digest://app/assets/javascripts/jquery-ui/form;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI"8file-digest://app/assets/stylesheets/jquery-ui/form;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/form;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/form;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form.js;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/KK/KKwz7nWQRsfGcGw1JseotEI0bvCV6b9R5v9f5OnPWjU.cache b/T5/tmp/cache/assets/sprockets/v3.0/KK/KKwz7nWQRsfGcGw1JseotEI0bvCV6b9R5v9f5OnPWjU.cache new file mode 100644 index 0000000000000000000000000000000000000000..32b055d320cb95f2856a518b9e233fc5afe3ffbc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/KK/KKwz7nWQRsfGcGw1JseotEI0bvCV6b9R5v9f5OnPWjU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/KS/KSPkaN5AVpIioqkVjjMxhAWm40Y0KnUzG2ilGX3DP_E.cache b/T5/tmp/cache/assets/sprockets/v3.0/KS/KSPkaN5AVpIioqkVjjMxhAWm40Y0KnUzG2ilGX3DP_E.cache new file mode 100644 index 0000000000000000000000000000000000000000..bdf7bfcc172eb7f86ebdab20256694992f3aafe2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/KS/KSPkaN5AVpIioqkVjjMxhAWm40Y0KnUzG2ilGX3DP_E.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=dff0e5fdf3bd66039d496279160aa672d2c60887f732522ca5d52b1e4bf2261b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/KX/KXBy5-mEcTh85R7Ri40QII-0yVqCV6YMhGdib9r8QPU.cache b/T5/tmp/cache/assets/sprockets/v3.0/KX/KXBy5-mEcTh85R7Ri40QII-0yVqCV6YMhGdib9r8QPU.cache new file mode 100644 index 0000000000000000000000000000000000000000..8aecf65b81b9ecfd26e9a0a30dae02c77082bdef Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/KX/KXBy5-mEcTh85R7Ri40QII-0yVqCV6YMhGdib9r8QPU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ka/Kau8wm8QFrCb3GhHckTq3cp2fnJwoRvVSnbJ7iF3ztI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ka/Kau8wm8QFrCb3GhHckTq3cp2fnJwoRvVSnbJ7iF3ztI.cache new file mode 100644 index 0000000000000000000000000000000000000000..adb04adc0bd19456f1da2da9125526990f36e9ba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ka/Kau8wm8QFrCb3GhHckTq3cp2fnJwoRvVSnbJ7iF3ztI.cache @@ -0,0 +1 @@ +"%Á[éBàJûhé¢~Q3zšÍ¬ÓƒÉç-ü遲\©pà \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Kg/KgzKfzd6pq_vQy78OZSKvhPduo2GBroJ4lsaOXpnBEA.cache b/T5/tmp/cache/assets/sprockets/v3.0/Kg/KgzKfzd6pq_vQy78OZSKvhPduo2GBroJ4lsaOXpnBEA.cache new file mode 100644 index 0000000000000000000000000000000000000000..69ec9a704bcd89ee45563c451be8699f930a6936 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Kg/KgzKfzd6pq_vQy78OZSKvhPduo2GBroJ4lsaOXpnBEA.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/plugin.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ki/KiFV2jB_waX_AZcbEUMFjSVm-gmKwhhDhA930Q3IyRE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ki/KiFV2jB_waX_AZcbEUMFjSVm-gmKwhhDhA930Q3IyRE.cache new file mode 100644 index 0000000000000000000000000000000000000000..e97a562bc2e442451e95fc8b7ddd8098728db0c8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ki/KiFV2jB_waX_AZcbEUMFjSVm-gmKwhhDhA930Q3IyRE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Kr/Kr7lA6UyJWmCUuwcJjjOadUKbBojnw7yJrCcWbtging.cache b/T5/tmp/cache/assets/sprockets/v3.0/Kr/Kr7lA6UyJWmCUuwcJjjOadUKbBojnw7yJrCcWbtging.cache new file mode 100644 index 0000000000000000000000000000000000000000..4eea3e21f77da2a94e033bd99798a2907feeb5f0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Kr/Kr7lA6UyJWmCUuwcJjjOadUKbBojnw7yJrCcWbtging.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ku/KuzzZnOZlNKWE_0WXwRCY-msiqlYAStorCZ06GXE-a4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ku/KuzzZnOZlNKWE_0WXwRCY-msiqlYAStorCZ06GXE-a4.cache new file mode 100644 index 0000000000000000000000000000000000000000..1daa958e6cffb491add3328d907dc71df87b04cf Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ku/KuzzZnOZlNKWE_0WXwRCY-msiqlYAStorCZ06GXE-a4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Kx/Kx1QGpl4oRASZfsh8uUXRTu2m_ULRhyOMfGSbqrXPuc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Kx/Kx1QGpl4oRASZfsh8uUXRTu2m_ULRhyOMfGSbqrXPuc.cache new file mode 100644 index 0000000000000000000000000000000000000000..3999fdaa89b87baf2dec4f3a47ba97846a3395a6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Kx/Kx1QGpl4oRASZfsh8uUXRTu2m_ULRhyOMfGSbqrXPuc.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=de201e55fc45a1ac79c86148e5b7cad373499e07920e266ff145c68c897ad5ed:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/L3/L3c895mZHOyWPazf0ovw6XiAZS2iv_OYREvRj-jAagI.cache b/T5/tmp/cache/assets/sprockets/v3.0/L3/L3c895mZHOyWPazf0ovw6XiAZS2iv_OYREvRj-jAagI.cache new file mode 100644 index 0000000000000000000000000000000000000000..86baaba278a476c3a5db43f1207d419a37bb1a82 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/L3/L3c895mZHOyWPazf0ovw6XiAZS2iv_OYREvRj-jAagI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/L7/L7mO4dM3hrqwv9t9iFVLPyihzv2VirGHj0xA6rNRRHc.cache b/T5/tmp/cache/assets/sprockets/v3.0/L7/L7mO4dM3hrqwv9t9iFVLPyihzv2VirGHj0xA6rNRRHc.cache new file mode 100644 index 0000000000000000000000000000000000000000..1910a74c410ffcb5c11e2d8debb0a2a6efff9bfe --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/L7/L7mO4dM3hrqwv9t9iFVLPyihzv2VirGHj0xA6rNRRHc.cache @@ -0,0 +1 @@ +I"Î/home/wellington/.rvm/gems/ruby-2.5.0/gems/actioncable-5.1.5/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=7c5103f3d49286bf15b1870221f515fa03293dbf49c175ba59a64130ac1ecb65:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/LT/LTaLDh7vL3kQ0SMVF2vrNli_ox47WfyR-1pNkWakHqw.cache b/T5/tmp/cache/assets/sprockets/v3.0/LT/LTaLDh7vL3kQ0SMVF2vrNli_ox47WfyR-1pNkWakHqw.cache new file mode 100644 index 0000000000000000000000000000000000000000..d2f35989983100228f7fd1a74132239d546eba93 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/LT/LTaLDh7vL3kQ0SMVF2vrNli_ox47WfyR-1pNkWakHqw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/LX/LXG7nAkxs5pbcjhZUyJZGv8_7VFQR2iYkR4UTVcp0vw.cache b/T5/tmp/cache/assets/sprockets/v3.0/LX/LXG7nAkxs5pbcjhZUyJZGv8_7VFQR2iYkR4UTVcp0vw.cache new file mode 100644 index 0000000000000000000000000000000000000000..7c4e81b0c279ebed98565cbf36bacb304749f65c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/LX/LXG7nAkxs5pbcjhZUyJZGv8_7VFQR2iYkR4UTVcp0vw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/L_/L_MxQRfmM-2X8RLaZ5iiMJs9e1w_80mKpCqheWDwAy0.cache b/T5/tmp/cache/assets/sprockets/v3.0/L_/L_MxQRfmM-2X8RLaZ5iiMJs9e1w_80mKpCqheWDwAy0.cache new file mode 100644 index 0000000000000000000000000000000000000000..683cc2e71e84eb2464d883e58f7180ecf47bf11e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/L_/L_MxQRfmM-2X8RLaZ5iiMJs9e1w_80mKpCqheWDwAy0.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-drop.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ld/Ld_8tAGfs8KZ8uVoX-4FpB4_IKXXVv2tdRJ1wgki9Oc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ld/Ld_8tAGfs8KZ8uVoX-4FpB4_IKXXVv2tdRJ1wgki9Oc.cache new file mode 100644 index 0000000000000000000000000000000000000000..e397a88202fc581244aeb644d77aab69926a6ea9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ld/Ld_8tAGfs8KZ8uVoX-4FpB4_IKXXVv2tdRJ1wgki9Oc.cache @@ -0,0 +1 @@ +"% µÒEÆtÚr©eÁ¢g‚]‘Ú ¨¿JtÝÓJ\ô’ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Lo/Lo-BKsccIVr63SDKrfVXRjs85zWFk0MJ_bk2irwhJ-M.cache b/T5/tmp/cache/assets/sprockets/v3.0/Lo/Lo-BKsccIVr63SDKrfVXRjs85zWFk0MJ_bk2irwhJ-M.cache new file mode 100644 index 0000000000000000000000000000000000000000..facd67fad6e0b629286e7d8cd86b19516bf868e2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Lo/Lo-BKsccIVr63SDKrfVXRjs85zWFk0MJ_bk2irwhJ-M.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Lu/Lumpn9fbCpM84u-kDe5fGqttxXx_EcG8ph_Z87L0RCQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Lu/Lumpn9fbCpM84u-kDe5fGqttxXx_EcG8ph_Z87L0RCQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..87130e58baab0f37d6c81821c834285fbed0d1e1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Lu/Lumpn9fbCpM84u-kDe5fGqttxXx_EcG8ph_Z87L0RCQ.cache @@ -0,0 +1 @@ +"%—²¢&Êç°þSr™jÆêh„æéBI‡k3BRr \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Lx/LxMHdjFCyakgc3OasR7G-CHLPW_Si8jsmekAmYci1zw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Lx/LxMHdjFCyakgc3OasR7G-CHLPW_Si8jsmekAmYci1zw.cache new file mode 100644 index 0000000000000000000000000000000000000000..a5d35dd9ab848c319e1eeb70aefa283116533543 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Lx/LxMHdjFCyakgc3OasR7G-CHLPW_Si8jsmekAmYci1zw.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=7259649c743102dd7e08598a94f6660a0f159958a26e26b5e5b3338d8b655dfb:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/M0/M0h9rIVBAvG0aBIfeadHJacbQSxExRwiTnWietKtfTk.cache b/T5/tmp/cache/assets/sprockets/v3.0/M0/M0h9rIVBAvG0aBIfeadHJacbQSxExRwiTnWietKtfTk.cache new file mode 100644 index 0000000000000000000000000000000000000000..5410e363f27daed56e9880721b71af8090ad5846 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/M0/M0h9rIVBAvG0aBIfeadHJacbQSxExRwiTnWietKtfTk.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=1b29d4c52c41d33ead1f8dcfd320ec7b572baaee80bae1e2c42ad7a5a599ee96:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MC/MCB_hcbK1DIwp85b0EHL5UntoNMIGV7Oj7dPxti8z7E.cache b/T5/tmp/cache/assets/sprockets/v3.0/MC/MCB_hcbK1DIwp85b0EHL5UntoNMIGV7Oj7dPxti8z7E.cache new file mode 100644 index 0000000000000000000000000000000000000000..c179aaee67fe056b4618bd4c74d83d46fb9ca779 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/MC/MCB_hcbK1DIwp85b0EHL5UntoNMIGV7Oj7dPxti8z7E.cache @@ -0,0 +1 @@ +"%ˆÉh)<ÕˆnP“ D¢ÍiEoñc0|„QѤCv“ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MD/MD-q3Uk9aNgOJrpufAls4oeII0zHujxY-COcEFJmXUM.cache b/T5/tmp/cache/assets/sprockets/v3.0/MD/MD-q3Uk9aNgOJrpufAls4oeII0zHujxY-COcEFJmXUM.cache new file mode 100644 index 0000000000000000000000000000000000000000..b1d9abe301ea906e2c207e08cc2c1e900c35d45f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/MD/MD-q3Uk9aNgOJrpufAls4oeII0zHujxY-COcEFJmXUM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQ2DE2q_FxAbE3EK7XiAgDCotwbf8htvcx2eObmdLIQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQ2DE2q_FxAbE3EK7XiAgDCotwbf8htvcx2eObmdLIQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..bffcc78cd9d1f3e42b03770892282e14e8977234 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQ2DE2q_FxAbE3EK7XiAgDCotwbf8htvcx2eObmdLIQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQUPpLXHGBL_oQ9ozKpMY2XPw8yer4FjPY0oqrKDwdw.cache b/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQUPpLXHGBL_oQ9ozKpMY2XPw8yer4FjPY0oqrKDwdw.cache new file mode 100644 index 0000000000000000000000000000000000000000..393386f954e4d716e02d2ec9dcd2dac81c9d41d5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/MQ/MQUPpLXHGBL_oQ9ozKpMY2XPw8yer4FjPY0oqrKDwdw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MR/MRvjApqZcs4rj7kBmrmgqzTHJnbxrrQPGhLMHkFTzRc.cache b/T5/tmp/cache/assets/sprockets/v3.0/MR/MRvjApqZcs4rj7kBmrmgqzTHJnbxrrQPGhLMHkFTzRc.cache new file mode 100644 index 0000000000000000000000000000000000000000..ac62ebfc8585c4832870c0d62c7a96d400268843 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/MR/MRvjApqZcs4rj7kBmrmgqzTHJnbxrrQPGhLMHkFTzRc.cache @@ -0,0 +1 @@ +I"á/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/dialog.js?type=application/javascript&pipeline=self&id=ccdb2d36386a2cc9394676bc863f112addacfaad34d47e32db47d2f96b192e00:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MX/MXfGzg-1Pc4o_FoWdkjKQRvt2Je88OheGHu4NnHkzEY.cache b/T5/tmp/cache/assets/sprockets/v3.0/MX/MXfGzg-1Pc4o_FoWdkjKQRvt2Je88OheGHu4NnHkzEY.cache new file mode 100644 index 0000000000000000000000000000000000000000..01d443ac1eb1365aafcfe2adc85a8a6eb5ac8ec5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/MX/MXfGzg-1Pc4o_FoWdkjKQRvt2Je88OheGHu4NnHkzEY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZM1U8CaNNkXMMv1XFowUtVbqVzQnK9NBxuzGFTdDFk.cache b/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZM1U8CaNNkXMMv1XFowUtVbqVzQnK9NBxuzGFTdDFk.cache new file mode 100644 index 0000000000000000000000000000000000000000..33b72f524a4f69a990bd52594b4c0672871d6836 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZM1U8CaNNkXMMv1XFowUtVbqVzQnK9NBxuzGFTdDFk.cache @@ -0,0 +1 @@ +"% šB7ÇÆWjn:-Žž7„ù õb»:†µê¦ÀC-6© \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZcwDENEs93Wd9q7A_7UWdfJrWsBXa0pGp03P9mqG2I.cache b/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZcwDENEs93Wd9q7A_7UWdfJrWsBXa0pGp03P9mqG2I.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/MZ/MZcwDENEs93Wd9q7A_7UWdfJrWsBXa0pGp03P9mqG2I.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Mc/McGz3XW3bBzFzz4SftXkAesukyrSjNVymMr1y_aODVo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Mc/McGz3XW3bBzFzz4SftXkAesukyrSjNVymMr1y_aODVo.cache new file mode 100644 index 0000000000000000000000000000000000000000..4eacf406aae10a4fe3afec88c5c986d05a440f25 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Mc/McGz3XW3bBzFzz4SftXkAesukyrSjNVymMr1y_aODVo.cache @@ -0,0 +1 @@ +"%S[$|¹vú>9oô…<À."é,ºS4„ ›@A>Xõôh \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ml/MlNp6mupMwAeG47RigE7V9yVyP89OcL1mncSdlLpALE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ml/MlNp6mupMwAeG47RigE7V9yVyP89OcL1mncSdlLpALE.cache new file mode 100644 index 0000000000000000000000000000000000000000..5f24e27b547d351ce4642b038ad6278011d29894 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ml/MlNp6mupMwAeG47RigE7V9yVyP89OcL1mncSdlLpALE.cache @@ -0,0 +1 @@ +I"’app/assets/javascripts/prices.coffee?type=application/javascript&pipeline=self&id=da666edc5d4a1747609a7be3ae46e0edec8a6f942e072324267821b1346214b2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/My/MyMRPM_chF_Ym1jkHp6skO5sZf0qXYP2-GlS5lwV3sA.cache b/T5/tmp/cache/assets/sprockets/v3.0/My/MyMRPM_chF_Ym1jkHp6skO5sZf0qXYP2-GlS5lwV3sA.cache new file mode 100644 index 0000000000000000000000000000000000000000..19d62eee87396e1ec8ffc6d47af18e229d35cb01 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/My/MyMRPM_chF_Ym1jkHp6skO5sZf0qXYP2-GlS5lwV3sA.cache @@ -0,0 +1 @@ +"%³È²ùlÉqZŠÅg|¢dÓP|ƒ®ì \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/N0/N0rl-alNRsDoUMITZROE4q68e-ChVMozDNey8UcBdMc.cache b/T5/tmp/cache/assets/sprockets/v3.0/N0/N0rl-alNRsDoUMITZROE4q68e-ChVMozDNey8UcBdMc.cache new file mode 100644 index 0000000000000000000000000000000000000000..5c3e48ae090b92bb3963e0edf77a0d347137ba53 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/N0/N0rl-alNRsDoUMITZROE4q68e-ChVMozDNey8UcBdMc.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/categories.coffee?type=application/javascript&pipeline=self&id=f22099adb91db325e7a1e9ecedd34a0205a542f1f52036b5275e28da804e9b5b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/NA/NAXvNM_r2BwDYjKcxNYrz0kk5AuuI6n71OqDT2mgIic.cache b/T5/tmp/cache/assets/sprockets/v3.0/NA/NAXvNM_r2BwDYjKcxNYrz0kk5AuuI6n71OqDT2mgIic.cache new file mode 100644 index 0000000000000000000000000000000000000000..a16db36e42572eee810dc3c2d4f668e53824adb0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/NA/NAXvNM_r2BwDYjKcxNYrz0kk5AuuI6n71OqDT2mgIic.cache @@ -0,0 +1 @@ +"%.;7f²£?Ñ®š–Ô&¬‰DÂqj©UD3 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/NN/NNoSiBOrS-6venSz__yvM22x0zQiW9aK-zII2G3Ve50.cache b/T5/tmp/cache/assets/sprockets/v3.0/NN/NNoSiBOrS-6venSz__yvM22x0zQiW9aK-zII2G3Ve50.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/NN/NNoSiBOrS-6venSz__yvM22x0zQiW9aK-zII2G3Ve50.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/NW/NWIXBhmbrmTDUkgr2D9E6Hi8M69obNWx9X5dERutZlc.cache b/T5/tmp/cache/assets/sprockets/v3.0/NW/NWIXBhmbrmTDUkgr2D9E6Hi8M69obNWx9X5dERutZlc.cache new file mode 100644 index 0000000000000000000000000000000000000000..bd82410ab5d133e097887e56e1cda485f514d302 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/NW/NWIXBhmbrmTDUkgr2D9E6Hi8M69obNWx9X5dERutZlc.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=58332db32496ae3129979758e5dc96e3f587d2ade26433f15922aa887747c976:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/NZ/NZjZTcS12dyoJmHM1amGQJLzvj3vXExeztyIyX8bk2U.cache b/T5/tmp/cache/assets/sprockets/v3.0/NZ/NZjZTcS12dyoJmHM1amGQJLzvj3vXExeztyIyX8bk2U.cache new file mode 100644 index 0000000000000000000000000000000000000000..876387ad696e643411430cc283615c6b2c1c9dfb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/NZ/NZjZTcS12dyoJmHM1amGQJLzvj3vXExeztyIyX8bk2U.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Nd/NdYhywfzHmJUFwJUw5f2qRVf1q1fOpPM3VDfx3opVa4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Nd/NdYhywfzHmJUFwJUw5f2qRVf1q1fOpPM3VDfx3opVa4.cache new file mode 100644 index 0000000000000000000000000000000000000000..a1723e576218d9f901821530fb48500026c4ac0b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Nd/NdYhywfzHmJUFwJUw5f2qRVf1q1fOpPM3VDfx3opVa4.cache @@ -0,0 +1,2 @@ +"%„• +ÞþoÄe\=åXlsÊ|¬½ìðQ´‡ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ni/NiDwCPx3ujY8Nl8QiHUam04_QCo3KntlCGT0PbfSmSY.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ni/NiDwCPx3ujY8Nl8QiHUam04_QCo3KntlCGT0PbfSmSY.cache new file mode 100644 index 0000000000000000000000000000000000000000..55644a3189d49c14cd11981e8a645b246a59fcdb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Ni/NiDwCPx3ujY8Nl8QiHUam04_QCo3KntlCGT0PbfSmSY.cache @@ -0,0 +1 @@ +I"à/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/mouse.js?type=application/javascript&pipeline=self&id=2c13337863430bb65f312350dc7e0b2448df17ff7bfc1c1ef78615756148ce76:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/No/NoIoLgcWcu_thNa_Jhxfylz4XsQy1CH3PzTREq8Ow5g.cache b/T5/tmp/cache/assets/sprockets/v3.0/No/NoIoLgcWcu_thNa_Jhxfylz4XsQy1CH3PzTREq8Ow5g.cache new file mode 100644 index 0000000000000000000000000000000000000000..b16e2031ae98267da77a183d991c1606fb365a30 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/No/NoIoLgcWcu_thNa_Jhxfylz4XsQy1CH3PzTREq8Ow5g.cache @@ -0,0 +1 @@ +"%+›*®Šè%µŽÀqC…nëö&Õws6b"Æzœe’?×& \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtWLxqyhCMVpKXhMevywk0fIlB6-YQ6EW6BI7Q2--_E.cache b/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtWLxqyhCMVpKXhMevywk0fIlB6-YQ6EW6BI7Q2--_E.cache new file mode 100644 index 0000000000000000000000000000000000000000..878d6ff0e7eabe31a42c807d94ecf57cb5d7ded8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtWLxqyhCMVpKXhMevywk0fIlB6-YQ6EW6BI7Q2--_E.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtuUID4ichdItWnSdpNJRtmNF0TXEc0dKJR74eX3XHw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtuUID4ichdItWnSdpNJRtmNF0TXEc0dKJR74eX3XHw.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff88888a55fefde5b7876c7b2d5ff86381e4916f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Nt/NtuUID4ichdItWnSdpNJRtmNF0TXEc0dKJR74eX3XHw.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=6f4adc8a6e8126989fdaa56cd77534b8695f2dd6e4b339035263e6f7c91bc40c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/O-/O-4jZTOCsvhaAg1GIoCbbbYp-R03K6va7ynjTiRwFXs.cache b/T5/tmp/cache/assets/sprockets/v3.0/O-/O-4jZTOCsvhaAg1GIoCbbbYp-R03K6va7ynjTiRwFXs.cache new file mode 100644 index 0000000000000000000000000000000000000000..e2f8207756842070d683f0394040e5fee792443e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/O-/O-4jZTOCsvhaAg1GIoCbbbYp-R03K6va7ynjTiRwFXs.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=85c6f267a6fbca64e5a1080066760f953674e4e232205f5c8a804aafef2b8690:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/O4/O4h0MRCV9_m4t0M4ILGhzt4BnTvsRKVKnyoJ5YDHCr4.cache b/T5/tmp/cache/assets/sprockets/v3.0/O4/O4h0MRCV9_m4t0M4ILGhzt4BnTvsRKVKnyoJ5YDHCr4.cache new file mode 100644 index 0000000000000000000000000000000000000000..8888cc73f530a22944ddd7b64305b0b742965ae7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/O4/O4h0MRCV9_m4t0M4ILGhzt4BnTvsRKVKnyoJ5YDHCr4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/O6/O6mlBC8JafhrFZh2AgqiJR-_EbTAamOG5ghY6h-maxI.cache b/T5/tmp/cache/assets/sprockets/v3.0/O6/O6mlBC8JafhrFZh2AgqiJR-_EbTAamOG5ghY6h-maxI.cache new file mode 100644 index 0000000000000000000000000000000000000000..3cd993764bd11f70c5abca62f238d1055b246ea2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/O6/O6mlBC8JafhrFZh2AgqiJR-_EbTAamOG5ghY6h-maxI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/OF/OF2tcfjTCXwQcYhmqaoFUJbGFjXh9b0WLZlnU_NeD_w.cache b/T5/tmp/cache/assets/sprockets/v3.0/OF/OF2tcfjTCXwQcYhmqaoFUJbGFjXh9b0WLZlnU_NeD_w.cache new file mode 100644 index 0000000000000000000000000000000000000000..9d846ba52b08fbb10299acade1a98d5b39c0487a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/OF/OF2tcfjTCXwQcYhmqaoFUJbGFjXh9b0WLZlnU_NeD_w.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-shake.js?type=application/javascript&pipeline=self&id=fe3adb6d1f9dddd56655831cf8e7d88139373c5a7ece03e6040c479705cf49b8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/OM/OM4KMDz69LU2luGSCM9_dLQ7kvotqDrn6xTV-BLSpw0.cache b/T5/tmp/cache/assets/sprockets/v3.0/OM/OM4KMDz69LU2luGSCM9_dLQ7kvotqDrn6xTV-BLSpw0.cache new file mode 100644 index 0000000000000000000000000000000000000000..d02be1c8f1feb716ecabe0371064579b4b23baa0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/OM/OM4KMDz69LU2luGSCM9_dLQ7kvotqDrn6xTV-BLSpw0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/OM/OM5_DW7h1Y9zWF8LkDnTMo_0pO1eAfihvoP5aVJyo_o.cache b/T5/tmp/cache/assets/sprockets/v3.0/OM/OM5_DW7h1Y9zWF8LkDnTMo_0pO1eAfihvoP5aVJyo_o.cache new file mode 100644 index 0000000000000000000000000000000000000000..49eba97575a68c0a65cd939a77bb62411fddb864 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/OM/OM5_DW7h1Y9zWF8LkDnTMo_0pO1eAfihvoP5aVJyo_o.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/OQ/OQFzCOyxD-G_EH-c1Z-VvP4BzGFVfZko2yNq5cAse8Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/OQ/OQFzCOyxD-G_EH-c1Z-VvP4BzGFVfZko2yNq5cAse8Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..c678ef43a9b55a7279a2dd8d91466e14483e49d3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/OQ/OQFzCOyxD-G_EH-c1Z-VvP4BzGFVfZko2yNq5cAse8Q.cache @@ -0,0 +1 @@ +"%¨ÊCó®mÄ&’ŠUVÓU¶‚Ài¦Òþ¡>7.a2ó4à \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/OU/OUIcL4QFGtJAmOltCx9P-EN88rqusUaJCzgck4enxM0.cache b/T5/tmp/cache/assets/sprockets/v3.0/OU/OUIcL4QFGtJAmOltCx9P-EN88rqusUaJCzgck4enxM0.cache new file mode 100644 index 0000000000000000000000000000000000000000..e7ce951e4590850a85f9632639d2669cb81b1bcb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/OU/OUIcL4QFGtJAmOltCx9P-EN88rqusUaJCzgck4enxM0.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=dc5d6ac0ac19cbee374cef0957dfa7eed98cca335c24e501f1f0b8ebb36ac362:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/O_/O_v7F15sZmb07DfJHpj4J_teYG7IvsCzVS7TpD1Bmbk.cache b/T5/tmp/cache/assets/sprockets/v3.0/O_/O_v7F15sZmb07DfJHpj4J_teYG7IvsCzVS7TpD1Bmbk.cache new file mode 100644 index 0000000000000000000000000000000000000000..e397a88202fc581244aeb644d77aab69926a6ea9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/O_/O_v7F15sZmb07DfJHpj4J_teYG7IvsCzVS7TpD1Bmbk.cache @@ -0,0 +1 @@ +"% µÒEÆtÚr©eÁ¢g‚]‘Ú ¨¿JtÝÓJ\ô’ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/On/OnymnCYmZwRa1UmXzLYtTr1prz7Tl5IzxAoMxNz6wak.cache b/T5/tmp/cache/assets/sprockets/v3.0/On/OnymnCYmZwRa1UmXzLYtTr1prz7Tl5IzxAoMxNz6wak.cache new file mode 100644 index 0000000000000000000000000000000000000000..da77d9acfb95094551b1c88ebd9508b01e357008 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/On/OnymnCYmZwRa1UmXzLYtTr1prz7Tl5IzxAoMxNz6wak.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/categories.scss?type=text/css&pipeline=self&id=7ff02c3a51a3f809cdba317479afd523adf67f16da9c2a455b2ff150b1b15df3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Or/OrxfWDGCR4iK43KKpajMe2QgmuRl6zipkA_vjXxDDxQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Or/OrxfWDGCR4iK43KKpajMe2QgmuRl6zipkA_vjXxDDxQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..f7db87f134a2f59068ae1f75045207a0ec022855 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Or/OrxfWDGCR4iK43KKpajMe2QgmuRl6zipkA_vjXxDDxQ.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=1ce49073652d137aaaa4a72921c959a9b13afa4f7d376566392b808466cc9649:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ow/OwpzsI3LSt5OeAJizhlp2lrV1yj96A2p4PqyX3TjWX4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ow/OwpzsI3LSt5OeAJizhlp2lrV1yj96A2p4PqyX3TjWX4.cache new file mode 100644 index 0000000000000000000000000000000000000000..7c722c69360ace702f10219e3893555c7eebdc14 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ow/OwpzsI3LSt5OeAJizhlp2lrV1yj96A2p4PqyX3TjWX4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ox/OxlG617M-8_PJ3eKa5jBvyl1igDb3nWcjqJZKeLmu-0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ox/OxlG617M-8_PJ3eKa5jBvyl1igDb3nWcjqJZKeLmu-0.cache new file mode 100644 index 0000000000000000000000000000000000000000..b5cab1a6dff3113ccfa0712d4dcfa811ec613bed Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ox/OxlG617M-8_PJ3eKa5jBvyl1igDb3nWcjqJZKeLmu-0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/P7/P7O3YFKTeByYqDzHp_Lk6izF8eBkxFN-skoh03qdiEA.cache b/T5/tmp/cache/assets/sprockets/v3.0/P7/P7O3YFKTeByYqDzHp_Lk6izF8eBkxFN-skoh03qdiEA.cache new file mode 100644 index 0000000000000000000000000000000000000000..863e26c55d37f0ca877d431c62330f216fe2e677 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/P7/P7O3YFKTeByYqDzHp_Lk6izF8eBkxFN-skoh03qdiEA.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=db9f4bedb908d5614a90e3aef23f9c5078e3fea8be35f6b5ee89693b508fba12:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/P9/P9XXT8P4G9_tte07lQrD2mvwnmDdgSDXswUTYaO1JF4.cache b/T5/tmp/cache/assets/sprockets/v3.0/P9/P9XXT8P4G9_tte07lQrD2mvwnmDdgSDXswUTYaO1JF4.cache new file mode 100644 index 0000000000000000000000000000000000000000..5a955f3823e1fda3ffad99923e3b8a0932daf15f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/P9/P9XXT8P4G9_tte07lQrD2mvwnmDdgSDXswUTYaO1JF4.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=afcf0af15066a65b8a81a5c31eb3581077b8c0efd111848f87ca9048bf81bc36:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/PG/PGLrWmXkPPaa7_zkpMtWc75wjMilC52XNgNApad-6s0.cache b/T5/tmp/cache/assets/sprockets/v3.0/PG/PGLrWmXkPPaa7_zkpMtWc75wjMilC52XNgNApad-6s0.cache new file mode 100644 index 0000000000000000000000000000000000000000..14590421eb7a3089654623de67c73a0b0f0efb26 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/PG/PGLrWmXkPPaa7_zkpMtWc75wjMilC52XNgNApad-6s0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/PK/PKRgaZnelaAabpft5yC_KHJgKt1aGGRl-hSTlFjLZZY.cache b/T5/tmp/cache/assets/sprockets/v3.0/PK/PKRgaZnelaAabpft5yC_KHJgKt1aGGRl-hSTlFjLZZY.cache new file mode 100644 index 0000000000000000000000000000000000000000..9710af7a9c3d1f132c4385c15010fb71089b40f3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/PK/PKRgaZnelaAabpft5yC_KHJgKt1aGGRl-hSTlFjLZZY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/PW/PWu4202cCmKzqp0ZH4gjoP1S6klDam-8SYuPChd-JZY.cache b/T5/tmp/cache/assets/sprockets/v3.0/PW/PWu4202cCmKzqp0ZH4gjoP1S6klDam-8SYuPChd-JZY.cache new file mode 100644 index 0000000000000000000000000000000000000000..a413a491596990ad55d862851db7a76c6f28581c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/PW/PWu4202cCmKzqp0ZH4gjoP1S6klDam-8SYuPChd-JZY.cache @@ -0,0 +1 @@ +"%_0ÓŽþ¼ƒ™Ÿ^/¢ú¬Rÿ©^Ð4KмöuswÛT \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Pk/PkEuJk1hcsx13teaERN-SAtHKdrxlj9OzutUfT8q1A8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Pk/PkEuJk1hcsx13teaERN-SAtHKdrxlj9OzutUfT8q1A8.cache new file mode 100644 index 0000000000000000000000000000000000000000..478fe8a1e4cb0f1037359c0a44149a97f9655e37 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Pk/PkEuJk1hcsx13teaERN-SAtHKdrxlj9OzutUfT8q1A8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plit58fRxGwm8q6ESMwYKBapa-AzbwF-EgKnuaeO8LU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plit58fRxGwm8q6ESMwYKBapa-AzbwF-EgKnuaeO8LU.cache new file mode 100644 index 0000000000000000000000000000000000000000..7afe019343482ceb16aa67e30f9ae7491892a2c3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plit58fRxGwm8q6ESMwYKBapa-AzbwF-EgKnuaeO8LU.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=fc5fa11c6c760cbc41431b733302a3dc91c5271e107a5fb6da8a656e07c3bc6b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plp5tWfmBfjn7BXux-xVOB9ko6z0FpCwRg4sTvW8cuE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plp5tWfmBfjn7BXux-xVOB9ko6z0FpCwRg4sTvW8cuE.cache new file mode 100644 index 0000000000000000000000000000000000000000..809c5ffb31ebddd1e9fe9676d12924bbd1d18701 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Pl/Plp5tWfmBfjn7BXux-xVOB9ko6z0FpCwRg4sTvW8cuE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=4e660b6401ba95ba694c4578aa3429981b354843111ddcb98eacee6cd7490e28:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Pm/PmGIMFgz2IBsu97tDBtIAKRLT9AZyb4E0nblb0wB3Cw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Pm/PmGIMFgz2IBsu97tDBtIAKRLT9AZyb4E0nblb0wB3Cw.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Pm/PmGIMFgz2IBsu97tDBtIAKRLT9AZyb4E0nblb0wB3Cw.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Pp/Ppf_OM88Vi3hbnwpxNsR6TQd32k-efx07UmAZGOQids.cache b/T5/tmp/cache/assets/sprockets/v3.0/Pp/Ppf_OM88Vi3hbnwpxNsR6TQd32k-efx07UmAZGOQids.cache new file mode 100644 index 0000000000000000000000000000000000000000..8d73b994e9d9b36eabcbd44f079e4f3db4fa63a8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Pp/Ppf_OM88Vi3hbnwpxNsR6TQd32k-efx07UmAZGOQids.cache @@ -0,0 +1 @@ +I"ë/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-highlight.js?type=application/javascript&pipeline=self&id=6b91086b97b20ec191abd39bb96b65524e020baa973c8c268749056665623b50:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Q7/Q75IiV3ETuh75-hLtXUenBE-2PrLGiKdtWTPJLGr_tc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Q7/Q75IiV3ETuh75-hLtXUenBE-2PrLGiKdtWTPJLGr_tc.cache new file mode 100644 index 0000000000000000000000000000000000000000..d0fb3c96571aa6696ae269958fb8cc3bc998041d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Q7/Q75IiV3ETuh75-hLtXUenBE-2PrLGiKdtWTPJLGr_tc.cache @@ -0,0 +1 @@ +I"â/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector.js?type=application/javascript&pipeline=self&id=794dcebef9f042819bae31f28e809b9ac2a0beea1f4fc815c400c8c8cd2165a4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/QC/QCpnq2JVYWEckwjm5jIbNRaljKIOBqbxWpW9dJtFovM.cache b/T5/tmp/cache/assets/sprockets/v3.0/QC/QCpnq2JVYWEckwjm5jIbNRaljKIOBqbxWpW9dJtFovM.cache new file mode 100644 index 0000000000000000000000000000000000000000..3dfe3e1a547255ecc98f672d7f2e78fe35146da8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/QC/QCpnq2JVYWEckwjm5jIbNRaljKIOBqbxWpW9dJtFovM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/QI/QIG_d7M-rKP5iozaVY1UQ6xn0SeoDmw_Riyxpa7OwBg.cache b/T5/tmp/cache/assets/sprockets/v3.0/QI/QIG_d7M-rKP5iozaVY1UQ6xn0SeoDmw_Riyxpa7OwBg.cache new file mode 100644 index 0000000000000000000000000000000000000000..e4b7b9fa781691a6984890e07d8fef08802f13e9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/QI/QIG_d7M-rKP5iozaVY1UQ6xn0SeoDmw_Riyxpa7OwBg.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"zfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/ie.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/QT/QTC7l_EKKuDsuHNwNDzOkfRFHqPtPZ_ijA7db-VXqq0.cache b/T5/tmp/cache/assets/sprockets/v3.0/QT/QTC7l_EKKuDsuHNwNDzOkfRFHqPtPZ_ijA7db-VXqq0.cache new file mode 100644 index 0000000000000000000000000000000000000000..759ebb71f91a4cbc66040c8db203bdc073fe5f79 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/QT/QTC7l_EKKuDsuHNwNDzOkfRFHqPtPZ_ijA7db-VXqq0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/QV/QVLFLuzDDxDgFTD9S5LpydyUnCnPQ-UDDlPI7DAIs5o.cache b/T5/tmp/cache/assets/sprockets/v3.0/QV/QVLFLuzDDxDgFTD9S5LpydyUnCnPQ-UDDlPI7DAIs5o.cache new file mode 100644 index 0000000000000000000000000000000000000000..1f7fe38e7675a0dc93b1b107d3681bc67a4d6ed0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/QV/QVLFLuzDDxDgFTD9S5LpydyUnCnPQ-UDDlPI7DAIs5o.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/user.scss?type=text/css&pipeline=self&id=237191114c01055629ec5766627f1f777990774a089566db7225ce98937b9969:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/QY/QYqI-ZroW2dsTsZrKdANZE3vVirqS-s0C4JVLvNecUU.cache b/T5/tmp/cache/assets/sprockets/v3.0/QY/QYqI-ZroW2dsTsZrKdANZE3vVirqS-s0C4JVLvNecUU.cache new file mode 100644 index 0000000000000000000000000000000000000000..a108b3d738cbcc9d3e2d5586329148e4c6655c1b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/QY/QYqI-ZroW2dsTsZrKdANZE3vVirqS-s0C4JVLvNecUU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/R2/R26ok5jM6HPuzHf_0ExdRWuJg0r631jYsBZU6IwrpEM.cache b/T5/tmp/cache/assets/sprockets/v3.0/R2/R26ok5jM6HPuzHf_0ExdRWuJg0r631jYsBZU6IwrpEM.cache new file mode 100644 index 0000000000000000000000000000000000000000..9990b5d596bc0ecf66ded7fd27a94b50aedf130b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/R2/R26ok5jM6HPuzHf_0ExdRWuJg0r631jYsBZU6IwrpEM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/R9/R9PE11EDKg33nkXETH515q0B2mf1-ui1kSZo_RZmG9k.cache b/T5/tmp/cache/assets/sprockets/v3.0/R9/R9PE11EDKg33nkXETH515q0B2mf1-ui1kSZo_RZmG9k.cache new file mode 100644 index 0000000000000000000000000000000000000000..86c13333b2cfede6249834039aae2bc7ca43c18c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/R9/R9PE11EDKg33nkXETH515q0B2mf1-ui1kSZo_RZmG9k.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=836a77247c70c0fbf2cd3993f8154ba3a9c5063a5b18a801b9e8c1a2117e1df6:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/RC/RCipWM9N3FSTjqHJdsoJhtUo0mU9-xbVrrxRCk4Kcf8.cache b/T5/tmp/cache/assets/sprockets/v3.0/RC/RCipWM9N3FSTjqHJdsoJhtUo0mU9-xbVrrxRCk4Kcf8.cache new file mode 100644 index 0000000000000000000000000000000000000000..fa4ee8ea6cbd4d5e0e0b293a7abf305a61ee5038 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/RC/RCipWM9N3FSTjqHJdsoJhtUo0mU9-xbVrrxRCk4Kcf8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/RE/REvZSmhjAAaNoznX5Uks1UWhM75q2CeGRzwalX18diE.cache b/T5/tmp/cache/assets/sprockets/v3.0/RE/REvZSmhjAAaNoznX5Uks1UWhM75q2CeGRzwalX18diE.cache new file mode 100644 index 0000000000000000000000000000000000000000..603f0ff37b71c92ad111b65f2706450eac2ce765 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/RE/REvZSmhjAAaNoznX5Uks1UWhM75q2CeGRzwalX18diE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/RO/ROG5BJ0k3WFG27j9b2Q12E7pqsjyWFHnSS0lw7s9SEU.cache b/T5/tmp/cache/assets/sprockets/v3.0/RO/ROG5BJ0k3WFG27j9b2Q12E7pqsjyWFHnSS0lw7s9SEU.cache new file mode 100644 index 0000000000000000000000000000000000000000..8b10dba7a580b7f088eeb2159cb6e6f7a16f1548 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/RO/ROG5BJ0k3WFG27j9b2Q12E7pqsjyWFHnSS0lw7s9SEU.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‹file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-highlight.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/RT/RT1B5x9fs6QNucaMs9MR5wZejJaDiGYU7F1TwqxKQaE.cache b/T5/tmp/cache/assets/sprockets/v3.0/RT/RT1B5x9fs6QNucaMs9MR5wZejJaDiGYU7F1TwqxKQaE.cache new file mode 100644 index 0000000000000000000000000000000000000000..ea46f31605da20e4a0b7f55a51027663e12ee121 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/RT/RT1B5x9fs6QNucaMs9MR5wZejJaDiGYU7F1TwqxKQaE.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/focusable.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/RT/RTSd_ThYdhm55DRYSDTdlhLZR7wGCRsy66rtCtb5QRw.cache b/T5/tmp/cache/assets/sprockets/v3.0/RT/RTSd_ThYdhm55DRYSDTdlhLZR7wGCRsy66rtCtb5QRw.cache new file mode 100644 index 0000000000000000000000000000000000000000..e0097fb0559798ace5427fa7c878ae6c9ad1aa16 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/RT/RTSd_ThYdhm55DRYSDTdlhLZR7wGCRsy66rtCtb5QRw.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=7fc6c755a5f5e8fca2828a74ca3cc4c4ad1fee9a71697d11ff516740178c84f2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Rb/RbUKT0NlEygIPAsdovzk56T3FHiPkFn--2T_Z4hXhao.cache b/T5/tmp/cache/assets/sprockets/v3.0/Rb/RbUKT0NlEygIPAsdovzk56T3FHiPkFn--2T_Z4hXhao.cache new file mode 100644 index 0000000000000000000000000000000000000000..4e20cf16496af6093eeb077d6b4b8eb0aa745a30 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Rb/RbUKT0NlEygIPAsdovzk56T3FHiPkFn--2T_Z4hXhao.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Rf/RfLOLU5B4GPtkhvHQOZEOnMoOTdDzWhePudZmHI8ahg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Rf/RfLOLU5B4GPtkhvHQOZEOnMoOTdDzWhePudZmHI8ahg.cache new file mode 100644 index 0000000000000000000000000000000000000000..8e775a5bdba5b2c04d1c6e233eef3522845a6443 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Rf/RfLOLU5B4GPtkhvHQOZEOnMoOTdDzWhePudZmHI8ahg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Rg/Rg7dElrSKzuXfDI2ukl55ks-lgh9QUW_avNGi_DYGXo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Rg/Rg7dElrSKzuXfDI2ukl55ks-lgh9QUW_avNGi_DYGXo.cache new file mode 100644 index 0000000000000000000000000000000000000000..691ef2ee7b8356c63aecac1d16f70c75400f49c2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Rg/Rg7dElrSKzuXfDI2ukl55ks-lgh9QUW_avNGi_DYGXo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Rp/Rp8pCzztLVgj41NfaK86T_xPV0Lo0BjP6s-wr3fkwI8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Rp/Rp8pCzztLVgj41NfaK86T_xPV0Lo0BjP6s-wr3fkwI8.cache new file mode 100644 index 0000000000000000000000000000000000000000..a017a1bcc871405e0ef2ac7b9ac4cde530b9f5a2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Rp/Rp8pCzztLVgj41NfaK86T_xPV0Lo0BjP6s-wr3fkwI8.cache @@ -0,0 +1 @@ +I"Ù/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js?type=application/javascript&pipeline=self&id=aa0d86720b7bdba6598636e45d2cebeafd936d9e853d4ab367c7524ab4264a2e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Rs/RsjWeUMqIwMgAE62bSj7GGDdeKgwUPNmQMVzEvQeBKA.cache b/T5/tmp/cache/assets/sprockets/v3.0/Rs/RsjWeUMqIwMgAE62bSj7GGDdeKgwUPNmQMVzEvQeBKA.cache new file mode 100644 index 0000000000000000000000000000000000000000..0c36bfccf8ef80a2fdf7e493d1849f008fb7ac38 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Rs/RsjWeUMqIwMgAE62bSj7GGDdeKgwUPNmQMVzEvQeBKA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/S8/S81dAUaYptWPXVA-bmmw2LFxPMhu1hsXLNoL108eExA.cache b/T5/tmp/cache/assets/sprockets/v3.0/S8/S81dAUaYptWPXVA-bmmw2LFxPMhu1hsXLNoL108eExA.cache new file mode 100644 index 0000000000000000000000000000000000000000..2e891d8931d17963d1b104fc087feb9ab895404c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/S8/S81dAUaYptWPXVA-bmmw2LFxPMhu1hsXLNoL108eExA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SB/SBV7iuKWj5Gztg6gFObTQYElgvE4PEaz9Xunl7ZgRL4.cache b/T5/tmp/cache/assets/sprockets/v3.0/SB/SBV7iuKWj5Gztg6gFObTQYElgvE4PEaz9Xunl7ZgRL4.cache new file mode 100644 index 0000000000000000000000000000000000000000..5927b42081d559ce4d7b1852e2da0d4d83e9b559 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/SB/SBV7iuKWj5Gztg6gFObTQYElgvE4PEaz9Xunl7ZgRL4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SG/SG4tk8w94s-PAs9D4qlDU9iOh6GpjVYEF-DOqIhu2v0.cache b/T5/tmp/cache/assets/sprockets/v3.0/SG/SG4tk8w94s-PAs9D4qlDU9iOh6GpjVYEF-DOqIhu2v0.cache new file mode 100644 index 0000000000000000000000000000000000000000..5e69670ace96937d839f1832ea603e31f4087aba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/SG/SG4tk8w94s-PAs9D4qlDU9iOh6GpjVYEF-DOqIhu2v0.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/progressbar.js?type=application/javascript&pipeline=self&id=72ba82bea7a3ef52e075abdd41511b88c39e9638e480f23619c02b7cb9e6d442:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SK/SKTsD6BjQ4iFzOc38CkuiJuIBTt0XzuPaWLszBLmc_k.cache b/T5/tmp/cache/assets/sprockets/v3.0/SK/SKTsD6BjQ4iFzOc38CkuiJuIBTt0XzuPaWLszBLmc_k.cache new file mode 100644 index 0000000000000000000000000000000000000000..40df4445e937352fba7087d0359992a56353930d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/SK/SKTsD6BjQ4iFzOc38CkuiJuIBTt0XzuPaWLszBLmc_k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SN/SN6JzljLt7E7aJiSP4s1mFD9rvZJGvavSRDJ2RGbySI.cache b/T5/tmp/cache/assets/sprockets/v3.0/SN/SN6JzljLt7E7aJiSP4s1mFD9rvZJGvavSRDJ2RGbySI.cache new file mode 100644 index 0000000000000000000000000000000000000000..7336b5086d28547bc734d96e89860e888df7d7f7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/SN/SN6JzljLt7E7aJiSP4s1mFD9rvZJGvavSRDJ2RGbySI.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=a8e5e2d83b3e3ad2fd80b40185c3cf7fdd1a55ffd5aaec4a1f75f44f07d85de8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SQ/SQWX0gn8WxAoibiFKwoi9pb1Yzsj5P6vFAWvmSo81sM.cache b/T5/tmp/cache/assets/sprockets/v3.0/SQ/SQWX0gn8WxAoibiFKwoi9pb1Yzsj5P6vFAWvmSo81sM.cache new file mode 100644 index 0000000000000000000000000000000000000000..bd4d1c3072382d6ec95cf545f22c52770bab26fe --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/SQ/SQWX0gn8WxAoibiFKwoi9pb1Yzsj5P6vFAWvmSo81sM.cache @@ -0,0 +1,2 @@ +"%*îÖíÆÏ×å¥ +Äù1ª¾–½&XጘÍZpiRr? \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SY/SYJbAoZEVIKmqAtGBmIHxiuUvz97e85kLghvmqikUfo.cache b/T5/tmp/cache/assets/sprockets/v3.0/SY/SYJbAoZEVIKmqAtGBmIHxiuUvz97e85kLghvmqikUfo.cache new file mode 100644 index 0000000000000000000000000000000000000000..54146498a7ab285426e5379f880784f92c3ab6ea Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/SY/SYJbAoZEVIKmqAtGBmIHxiuUvz97e85kLghvmqikUfo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZdk_441CPce5ZxIYq5h51y2rQ9ev87bCc5dJe4g3XI.cache b/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZdk_441CPce5ZxIYq5h51y2rQ9ev87bCc5dJe4g3XI.cache new file mode 100644 index 0000000000000000000000000000000000000000..7c9b46a73c84856d473d7cd56e9739c59add69dd --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZdk_441CPce5ZxIYq5h51y2rQ9ev87bCc5dJe4g3XI.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‰file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-pulsate.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZhA_jAQxBdVBiI-Otfnvhg6ZXETxj5R1AOp2uxeA5I.cache b/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZhA_jAQxBdVBiI-Otfnvhg6ZXETxj5R1AOp2uxeA5I.cache new file mode 100644 index 0000000000000000000000000000000000000000..277cef3a89fa44010cb3b018d3a5c2b591348e2b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/SZ/SZhA_jAQxBdVBiI-Otfnvhg6ZXETxj5R1AOp2uxeA5I.cache @@ -0,0 +1 @@ +"%qÃej޵l¯tàý*Œƒ™ ßn<鮌1÷¯á_ʽ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Sf/SfqLlUO29nVQYDO_LtlfQWnq1y8mGY4lYntqPRdSMtY.cache b/T5/tmp/cache/assets/sprockets/v3.0/Sf/SfqLlUO29nVQYDO_LtlfQWnq1y8mGY4lYntqPRdSMtY.cache new file mode 100644 index 0000000000000000000000000000000000000000..6ef71e3b28fc28c85c5edc56bc29d58f4b1491e1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Sf/SfqLlUO29nVQYDO_LtlfQWnq1y8mGY4lYntqPRdSMtY.cache @@ -0,0 +1 @@ +"%s´ÚvvÚÒm(|¥ú‚aí]$mûcãÞ ¬»˜«¿ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Sl/Sldj7G1-OL9kZuCIi-4Y1Iwe1W4oSzpb6SRUcvFqqBI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Sl/Sldj7G1-OL9kZuCIi-4Y1Iwe1W4oSzpb6SRUcvFqqBI.cache new file mode 100644 index 0000000000000000000000000000000000000000..e025bf9286ad32a52def3e3491f04cbc42780430 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Sl/Sldj7G1-OL9kZuCIi-4Y1Iwe1W4oSzpb6SRUcvFqqBI.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=ce46a4593f7f71cc9ed59b7c78884607cf7ad1eac1b9790002da7334c99ef699:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/T3/T39EUnr4p9coGzHpLpOgQ0m0WwA77pKj086defJ5xMU.cache b/T5/tmp/cache/assets/sprockets/v3.0/T3/T39EUnr4p9coGzHpLpOgQ0m0WwA77pKj086defJ5xMU.cache new file mode 100644 index 0000000000000000000000000000000000000000..11fa16a4866f31b2790bdb40d2e342c655236691 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/T3/T39EUnr4p9coGzHpLpOgQ0m0WwA77pKj086defJ5xMU.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=23839941f1e2448889fbca22c78bf8059626d6eb78d0c51fd92fd886c7d74051:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/T4/T4-VmuCb4xgtI1f2ylpWQ2z0_066tKg1TuGZFIDDZ7o.cache b/T5/tmp/cache/assets/sprockets/v3.0/T4/T4-VmuCb4xgtI1f2ylpWQ2z0_066tKg1TuGZFIDDZ7o.cache new file mode 100644 index 0000000000000000000000000000000000000000..910b670df66ea0d9ffe63e0c6cb7b1eb545d3000 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/T4/T4-VmuCb4xgtI1f2ylpWQ2z0_066tKg1TuGZFIDDZ7o.cache @@ -0,0 +1 @@ +I"á/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/slider.js?type=application/javascript&pipeline=self&id=2d02a3a169cdf70ca8fcf4783f08627e05310c440f34d5a2eeff9670c652dc8d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/T4/T44HpNmCYovnWJxtWLoyqMxNib_EnkMpMK1u8o0VGcU.cache b/T5/tmp/cache/assets/sprockets/v3.0/T4/T44HpNmCYovnWJxtWLoyqMxNib_EnkMpMK1u8o0VGcU.cache new file mode 100644 index 0000000000000000000000000000000000000000..d357c15546875f14ef3d99253db723206e79f3f0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/T4/T44HpNmCYovnWJxtWLoyqMxNib_EnkMpMK1u8o0VGcU.cache @@ -0,0 +1 @@ +"%2Cçž:Ø× ‚ÔÉXîŒh])~”?®ÁÅÿ³‡ý \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/T7/T7Y_kYydQt5oPqZev3RCsotKpQzFks-cE4d_atHZBNA.cache b/T5/tmp/cache/assets/sprockets/v3.0/T7/T7Y_kYydQt5oPqZev3RCsotKpQzFks-cE4d_atHZBNA.cache new file mode 100644 index 0000000000000000000000000000000000000000..8ddb7645d49a2f8f5e508d41125a627b468ac9ab --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/T7/T7Y_kYydQt5oPqZev3RCsotKpQzFks-cE4d_atHZBNA.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"€file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/scroll-parent.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/T8/T8uhljaFsmK4N71WRnGfJA0FT2xBbL9bgiU5luLIP2k.cache b/T5/tmp/cache/assets/sprockets/v3.0/T8/T8uhljaFsmK4N71WRnGfJA0FT2xBbL9bgiU5luLIP2k.cache new file mode 100644 index 0000000000000000000000000000000000000000..5b105354ea5c19db35185ad3c350b02d5ff065fc --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/T8/T8uhljaFsmK4N71WRnGfJA0FT2xBbL9bgiU5luLIP2k.cache @@ -0,0 +1 @@ +"%C6ùµò®ŒÉܦ¨M=„ÚQuêíÏ/Ü,"cË5u \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/TA/TAr0GSSFox3G-Bwu9sancEDEhoiRgY6ly_scoXHMa8w.cache b/T5/tmp/cache/assets/sprockets/v3.0/TA/TAr0GSSFox3G-Bwu9sancEDEhoiRgY6ly_scoXHMa8w.cache new file mode 100644 index 0000000000000000000000000000000000000000..08a85d75635cd51436fc411fc24408c50c4d70f2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/TA/TAr0GSSFox3G-Bwu9sancEDEhoiRgY6ly_scoXHMa8w.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/TY/TYSMJN2wER1iYYmVItTU1ylffRacz7c2t9tQCxu_6BI.cache b/T5/tmp/cache/assets/sprockets/v3.0/TY/TYSMJN2wER1iYYmVItTU1ylffRacz7c2t9tQCxu_6BI.cache new file mode 100644 index 0000000000000000000000000000000000000000..eba4b78fc8e6e548b34296d19e6cabdc1aba01b1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/TY/TYSMJN2wER1iYYmVItTU1ylffRacz7c2t9tQCxu_6BI.cache @@ -0,0 +1,7 @@ +xÚÍšÏOÛ0ÇUiêÐ;N;sØ-É€ñc…Nl›8Óv˜ÜÔmÍÜ$Än ´¦¡ýÝK¡$¶ã4v¥½ìVš|ß÷Åý|Ÿ¬˜gßÛagã+æí΋ãb£›Öýéæk$$ƒ1¸“à˜‘0hwÚ'gg§›¯Äkâ#Ö>|¾¸ð2F„2'»¼üâ[‡>f,ŒY‡§î¢(¢ÄG<«æ£1?&3 ÿXuCD"LI€»ÓÁ²øl¡rúdˆïxž7 +ÇØ»Ä4»oÈ3¹'coˆÇÌ‹'½ÔÙvwÝ·Ÿ_Lpœ:â<6¼ç¾u·¼ÌÚCŒaÎgáfÏcìž?=¬+Ûj?dX—‚c×GÕÚ1ʾ´°Q¢MµJ»KÕÊÌñ”b6ÂØÊP« /ÖÆÅŒ—¬¼s·Ým’žÉú$žâÆÿ.Øq8GñA9ðXڦгGxäYÞÅÜ;¶c„¡^vs6´±¿éµ%Ê?uE‰ÛÉc]§b TÔiÍa£^ÕÆ2†UMü'´ª“ûÆ;)‚s`œAèOêÔJK?Š*íZÅ\¯ˆªŸ‚æBuOã zÏ¡ÙShÍë ~džúxl¿‰TÖ¬H«0Ï¥ 0á¹1…;·Má©Ê½gMx0o™ÃLp¦´È¹fÏd¡ã\ÈA!Îmc@„sÓKhˆrçkxçÞ=sxâÔûõP•ÖXZblªÖ³,«SP eïK@ªegðù(Ûß6d_@¾k9E=Lëu¥—tKÄ ÅzÂ%ñ(à’uÈ·d<…æKrŸ7ã^ÀýÞîå§-g¿V[Zò’öƒ%äô — +Ì@a/Ù__2ª¥Z7͵°ÖhèdHûÑ.élG»¡XO¼$†í’5äh—ŒÁG»ä>oƽ€û“9Ü °ƒ|Nì`Ч°µEJk_]ä‹%öëTÒg ºRë4+™æcE¿¡y]ÑËŸÿ —µÞ²?ÔéÑIlÿ–]•v× ‘~ETý>‚{ + +Á{Þ}BðoÙó +ê,¨÷ãR'Bq‘á#ò5ò¶ô[Õ¨H€¦Æ-l +4Ü@&Aã¿S×vq×hE,öÍcÁQ¯'œí›'BQY†ÁX®Ï"¿€b~H¿b νâßš6ÕÀZ[ŸI@²ÏéÛo}T©íÖÇ\¯^ÕÃn}TwÈê ¾õQ€ßúä¬u¬õôÌÖÇZ²ÐöXËTç]VÃkÉÞÇZ²38g²ýmCöOþÚnÀ! \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Tc/TcJj0yf3qu7SL390c5mCKA_5iU41ng3vglBiXNvIVZc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Tc/TcJj0yf3qu7SL390c5mCKA_5iU41ng3vglBiXNvIVZc.cache new file mode 100644 index 0000000000000000000000000000000000000000..e48fb7e30a51dfb2e3d5c4966722eabb3260d2b0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Tc/TcJj0yf3qu7SL390c5mCKA_5iU41ng3vglBiXNvIVZc.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=c8f21cb37ad76ee99af22a9fd802778792fd8010bd3d973adf0bac3240e42436:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Tp/TpdJe0sPfo_D7KlSZWB_S1VqfgnMZ3YHn_fHzL0B19s.cache b/T5/tmp/cache/assets/sprockets/v3.0/Tp/TpdJe0sPfo_D7KlSZWB_S1VqfgnMZ3YHn_fHzL0B19s.cache new file mode 100644 index 0000000000000000000000000000000000000000..9521006a65b78bdf4f4da86644c1ff8256802d81 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Tp/TpdJe0sPfo_D7KlSZWB_S1VqfgnMZ3YHn_fHzL0B19s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Tq/TqLrf5CIQs-jsvX6071hSFEi0Qt6WtSq8VEI7vy0xMU.cache b/T5/tmp/cache/assets/sprockets/v3.0/Tq/TqLrf5CIQs-jsvX6071hSFEi0Qt6WtSq8VEI7vy0xMU.cache new file mode 100644 index 0000000000000000000000000000000000000000..03fdc45ca44280d3a7af33c2e3d14c590775e1e3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Tq/TqLrf5CIQs-jsvX6071hSFEi0Qt6WtSq8VEI7vy0xMU.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=c5b567298beb15f51e4a5d6c64e691a1c2b55d537abaf24cb2fa55752f0ed69c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Tq/Tqvm69MnGq4MkRlP-GdZeKr8gRFrRd2rBuqKzsC8gB4.cache b/T5/tmp/cache/assets/sprockets/v3.0/Tq/Tqvm69MnGq4MkRlP-GdZeKr8gRFrRd2rBuqKzsC8gB4.cache new file mode 100644 index 0000000000000000000000000000000000000000..4287ec497395d59815fdd9868d8190eafe6ffa08 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Tq/Tqvm69MnGq4MkRlP-GdZeKr8gRFrRd2rBuqKzsC8gB4.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=5abe09af4fd76a404abb46d3decc315429192b84d92b1d73e484d74a522f9c81:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Tv/TvfaWYl6E2r7lCO-iSWPImqqRRg0o-V889iTZo6S9fk.cache b/T5/tmp/cache/assets/sprockets/v3.0/Tv/TvfaWYl6E2r7lCO-iSWPImqqRRg0o-V889iTZo6S9fk.cache new file mode 100644 index 0000000000000000000000000000000000000000..2d644069989f2fb0c1815010c15676961227f2a6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Tv/TvfaWYl6E2r7lCO-iSWPImqqRRg0o-V889iTZo6S9fk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/U6/U6WQ6XgjAK2mE9so-tPI4s_R46XE5kzn4pY-onrsVJc.cache b/T5/tmp/cache/assets/sprockets/v3.0/U6/U6WQ6XgjAK2mE9so-tPI4s_R46XE5kzn4pY-onrsVJc.cache new file mode 100644 index 0000000000000000000000000000000000000000..d0cee72d48f7090fcbb96a2c6a137c3718b0df94 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/U6/U6WQ6XgjAK2mE9so-tPI4s_R46XE5kzn4pY-onrsVJc.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=1aae310cd243281196a08fe5b378fb1aafe60ee8f9c7d69fca45c315a433f265:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/U9/U97XEMuZzo4Eg-6kEgHgupWhBEkzlqCX38lzGKHtcZw.cache b/T5/tmp/cache/assets/sprockets/v3.0/U9/U97XEMuZzo4Eg-6kEgHgupWhBEkzlqCX38lzGKHtcZw.cache new file mode 100644 index 0000000000000000000000000000000000000000..e71e70240e5311fe7200ee39b33db6ad60a76df9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/U9/U97XEMuZzo4Eg-6kEgHgupWhBEkzlqCX38lzGKHtcZw.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-puff.js?type=application/javascript&pipeline=self&id=5f8a50073fe784f11a5892e3ea3bdc5b1d45a692f63eb03f52a7a69fa428f7a4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/UC/UCKegzMjEHTjaC5qUpVkCVygB1r-CICAlCeBGEqLlNk.cache b/T5/tmp/cache/assets/sprockets/v3.0/UC/UCKegzMjEHTjaC5qUpVkCVygB1r-CICAlCeBGEqLlNk.cache new file mode 100644 index 0000000000000000000000000000000000000000..5a8e129d8b87d7ff854bc2f8cf2220b5c889b148 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/UC/UCKegzMjEHTjaC5qUpVkCVygB1r-CICAlCeBGEqLlNk.cache @@ -0,0 +1 @@ +"%•÷ÿ]?å8jX1®¼™ãA¹ªÈ&ˈеƒþ¦ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/UD/UDTIX4JZ7jL5of9Yf9IRgKWdWLGpM1FD3-pNDqHUHcI.cache b/T5/tmp/cache/assets/sprockets/v3.0/UD/UDTIX4JZ7jL5of9Yf9IRgKWdWLGpM1FD3-pNDqHUHcI.cache new file mode 100644 index 0000000000000000000000000000000000000000..2eccf56a3ef3c99f0fac8a5a9f9862264937be82 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/UD/UDTIX4JZ7jL5of9Yf9IRgKWdWLGpM1FD3-pNDqHUHcI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/UD/UDun7hC8ygKoDpLz7nctS366kAKiBmYakP5RKTVw98I.cache b/T5/tmp/cache/assets/sprockets/v3.0/UD/UDun7hC8ygKoDpLz7nctS366kAKiBmYakP5RKTVw98I.cache new file mode 100644 index 0000000000000000000000000000000000000000..560aa6b84d711a5e26abc78ee4273f641a01c063 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/UD/UDun7hC8ygKoDpLz7nctS366kAKiBmYakP5RKTVw98I.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=8d9deaf625af7aba6c575f410f482064da64554d276a48c49351c02a8913631b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/UU/UUKGZMCm3kikTL2jmSsvVHEoBXUF072dP2e403VXjD8.cache b/T5/tmp/cache/assets/sprockets/v3.0/UU/UUKGZMCm3kikTL2jmSsvVHEoBXUF072dP2e403VXjD8.cache new file mode 100644 index 0000000000000000000000000000000000000000..8b07d4cbb6fa1a0897cee97753a5084d6f9d6898 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/UU/UUKGZMCm3kikTL2jmSsvVHEoBXUF072dP2e403VXjD8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/UW/UWyg-TBM99RiSVgovJgZG6fO0pITcibln2aPg_s5KUs.cache b/T5/tmp/cache/assets/sprockets/v3.0/UW/UWyg-TBM99RiSVgovJgZG6fO0pITcibln2aPg_s5KUs.cache new file mode 100644 index 0000000000000000000000000000000000000000..2f1015584d361cc85396247e7c9775d48d05c0d2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/UW/UWyg-TBM99RiSVgovJgZG6fO0pITcibln2aPg_s5KUs.cache @@ -0,0 +1 @@ +"%Šz¼nójwM7’ d¹nuoœ‘Á|é–àîÍésJ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Uf/Uf4tgg4Katk28OL1yS3kDF5ZpF0xx_9Dy8cAbbCXGg0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Uf/Uf4tgg4Katk28OL1yS3kDF5ZpF0xx_9Dy8cAbbCXGg0.cache new file mode 100644 index 0000000000000000000000000000000000000000..42ec135e3a34614eec3d7caae61771fb5b71ac26 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Uf/Uf4tgg4Katk28OL1yS3kDF5ZpF0xx_9Dy8cAbbCXGg0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Up/UpE-EiOQiPhRkF1X0SSxsgu8Pwiv_4sQz0jWyBprlIs.cache b/T5/tmp/cache/assets/sprockets/v3.0/Up/UpE-EiOQiPhRkF1X0SSxsgu8Pwiv_4sQz0jWyBprlIs.cache new file mode 100644 index 0000000000000000000000000000000000000000..83195013a6c2c942e6b2b89fe7cea9647b5bf1af --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Up/UpE-EiOQiPhRkF1X0SSxsgu8Pwiv_4sQz0jWyBprlIs.cache @@ -0,0 +1,2 @@ +"%©,þ£dÐFu?Šè¯Ož°Œ +< îA&Í›*ô¡ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/V2/V2S2HahrJyxdIdczvHql3GBqjV8G7VcVOgVr4ZyVKU4.cache b/T5/tmp/cache/assets/sprockets/v3.0/V2/V2S2HahrJyxdIdczvHql3GBqjV8G7VcVOgVr4ZyVKU4.cache new file mode 100644 index 0000000000000000000000000000000000000000..81323712d5a07e31e243e5207bc37da410dc5838 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/V2/V2S2HahrJyxdIdczvHql3GBqjV8G7VcVOgVr4ZyVKU4.cache @@ -0,0 +1 @@ +"%©lµ•õ˜U,‘&^] …EþøO„ç;r<úRlfH® \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/V3/V3kJfp0d143dvE2ONPqpU3iKCEf5HkVH1_ilX_P5rGY.cache b/T5/tmp/cache/assets/sprockets/v3.0/V3/V3kJfp0d143dvE2ONPqpU3iKCEf5HkVH1_ilX_P5rGY.cache new file mode 100644 index 0000000000000000000000000000000000000000..de0ecc664407f0bbeb0fc512fbf8faff6eb727a8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/V3/V3kJfp0d143dvE2ONPqpU3iKCEf5HkVH1_ilX_P5rGY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/V3/V3p3iMCXJ-S7w3621vM1QO4qAtiTjibrFx6Mlfp1yJA.cache b/T5/tmp/cache/assets/sprockets/v3.0/V3/V3p3iMCXJ-S7w3621vM1QO4qAtiTjibrFx6Mlfp1yJA.cache new file mode 100644 index 0000000000000000000000000000000000000000..39e8914ae58d30d5032913a6c2668c8cf6b5f67b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/V3/V3p3iMCXJ-S7w3621vM1QO4qAtiTjibrFx6Mlfp1yJA.cache @@ -0,0 +1 @@ +I"Õ/home/wellington/.rvm/gems/ruby-2.5.0/gems/turbolinks-source-5.1.0/lib/assets/javascripts/turbolinks.js?type=application/javascript&pipeline=self&id=58e023a066db541d36c5e34e4509223609d992bc3dd0df1568b536a6db481255:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/VJ/VJpVv48bdqPW983ZuLzn_OuRuzsIb9tkqY_KfB5Z7FA.cache b/T5/tmp/cache/assets/sprockets/v3.0/VJ/VJpVv48bdqPW983ZuLzn_OuRuzsIb9tkqY_KfB5Z7FA.cache new file mode 100644 index 0000000000000000000000000000000000000000..598aab11ca6f868b698efbd8c4914364818d8b2d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/VJ/VJpVv48bdqPW983ZuLzn_OuRuzsIb9tkqY_KfB5Z7FA.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-blind.js?type=application/javascript&pipeline=self&id=f2931ee4f569959fff379287f774e4b64f2e3c60f1667f8f4cfa78f879e4c233:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/VK/VKpv49ikFw0L7bT0qeOHr1_sPtAguRLwbOnf_8r3zXE.cache b/T5/tmp/cache/assets/sprockets/v3.0/VK/VKpv49ikFw0L7bT0qeOHr1_sPtAguRLwbOnf_8r3zXE.cache new file mode 100644 index 0000000000000000000000000000000000000000..8e487417aac4bf8a13ec06c02923eed921506304 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/VK/VKpv49ikFw0L7bT0qeOHr1_sPtAguRLwbOnf_8r3zXE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/VW/VWvOfaz0GE8_yfkaE7V2gCKHs6QP0keuQBHXJCXFjlQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/VW/VWvOfaz0GE8_yfkaE7V2gCKHs6QP0keuQBHXJCXFjlQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..9b724aed630e7cfce6e818514dc94b530ec3dce8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/VW/VWvOfaz0GE8_yfkaE7V2gCKHs6QP0keuQBHXJCXFjlQ.cache @@ -0,0 +1 @@ +I"…app/assets/javascripts/application.js?type=application/javascript&id=20c983ff2efff8939a6c62ad747f8fdcb6ff34b6736e88c85f70e6a9ede86dcb:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vf/VfEgBWooMrSVZn-F4cLgU6zPPc1tfmPJtsCXqlSTXQ0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vf/VfEgBWooMrSVZn-F4cLgU6zPPc1tfmPJtsCXqlSTXQ0.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Vf/VfEgBWooMrSVZn-F4cLgU6zPPc1tfmPJtsCXqlSTXQ0.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vu/VumV3CMhTADaqVlsQDo6S_lDA8SzPLVJluUDgWITngw.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vu/VumV3CMhTADaqVlsQDo6S_lDA8SzPLVJluUDgWITngw.cache new file mode 100644 index 0000000000000000000000000000000000000000..4bf54b5da95e30d2d37d96ebbe5d2a9ae2f13fec Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Vu/VumV3CMhTADaqVlsQDo6S_lDA8SzPLVJluUDgWITngw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwBEW5xEho9QYGlhyLQ7NlYgqL3-HcZ8Heq7PszdhPQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwBEW5xEho9QYGlhyLQ7NlYgqL3-HcZ8Heq7PszdhPQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..1eb7aeee9ccd68528b33d6a82ce15cc6b53b47dd Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwBEW5xEho9QYGlhyLQ7NlYgqL3-HcZ8Heq7PszdhPQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwYAfAeB30uRxUjFeyRVL1ddIY0Ed8AnA9RKOj7DTrg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwYAfAeB30uRxUjFeyRVL1ddIY0Ed8AnA9RKOj7DTrg.cache new file mode 100644 index 0000000000000000000000000000000000000000..695808585ca1b29cad3511b1b6be921a58306676 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwYAfAeB30uRxUjFeyRVL1ddIY0Ed8AnA9RKOj7DTrg.cache @@ -0,0 +1 @@ +I"à/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/scroll-parent.js?type=application/javascript&pipeline=self&id=51a3d27d7a5a25448363f8a652a6f94edd93418e755afe6a4a6fb6bd013006d1:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwrnnytNfoHDZEGj36g4ri6RE93av79LYBPtP8tYSB0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwrnnytNfoHDZEGj36g4ri6RE93av79LYBPtP8tYSB0.cache new file mode 100644 index 0000000000000000000000000000000000000000..dff6918fa24d830a2a4317d031e6c02d7da40a11 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Vw/VwrnnytNfoHDZEGj36g4ri6RE93av79LYBPtP8tYSB0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Vx/VxTQDz3RrMRZYZtiZYVX5IAi147zR928Jp8PutecXKs.cache b/T5/tmp/cache/assets/sprockets/v3.0/Vx/VxTQDz3RrMRZYZtiZYVX5IAi147zR928Jp8PutecXKs.cache new file mode 100644 index 0000000000000000000000000000000000000000..5baf16536884c3e77af713078b64d3fc728acabb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Vx/VxTQDz3RrMRZYZtiZYVX5IAi147zR928Jp8PutecXKs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/W8/W88VupL2BnXz3a_nsybhpJW5ZusXlC2qlDs2SCIuBtM.cache b/T5/tmp/cache/assets/sprockets/v3.0/W8/W88VupL2BnXz3a_nsybhpJW5ZusXlC2qlDs2SCIuBtM.cache new file mode 100644 index 0000000000000000000000000000000000000000..832ae6cd8c7c6e550b2b6ce6f0c4c9b06b550624 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/W8/W88VupL2BnXz3a_nsybhpJW5ZusXlC2qlDs2SCIuBtM.cache @@ -0,0 +1 @@ +I"Ï/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-rails-4.3.3/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=705e4491f21b110957d40a45b7c30ea67013568b4b8aad037abe242d78f86677:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/WE/WE8Zv52vjw0eXec_DR8f3rAumtTsOlykLjbKhyQGMQM.cache b/T5/tmp/cache/assets/sprockets/v3.0/WE/WE8Zv52vjw0eXec_DR8f3rAumtTsOlykLjbKhyQGMQM.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ebd0d8224b95fc3f2c77b40c470618d28355d04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/WE/WE8Zv52vjw0eXec_DR8f3rAumtTsOlykLjbKhyQGMQM.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"3file-digest://app/assets/stylesheets/home.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/WF/WFXFa7sZEiRkqaEtetk3_sE8Du9jnColEK0RX4dFqZE.cache b/T5/tmp/cache/assets/sprockets/v3.0/WF/WFXFa7sZEiRkqaEtetk3_sE8Du9jnColEK0RX4dFqZE.cache new file mode 100644 index 0000000000000000000000000000000000000000..eeca6b1eb5cea0ac5a783a8aec7f22fc4d49a256 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/WF/WFXFa7sZEiRkqaEtetk3_sE8Du9jnColEK0RX4dFqZE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/WG/WGJe_ws41y9llFuInw21CQFrASCbCteJIQGRtC4xuxE.cache b/T5/tmp/cache/assets/sprockets/v3.0/WG/WGJe_ws41y9llFuInw21CQFrASCbCteJIQGRtC4xuxE.cache new file mode 100644 index 0000000000000000000000000000000000000000..618122e61d2ab7abe69d85707e5a553d80b9dc29 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/WG/WGJe_ws41y9llFuInw21CQFrASCbCteJIQGRtC4xuxE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/WQ/WQzeYVV9s6PByyCrWX0cNVurA1UGNGD9SgW8YecWwUA.cache b/T5/tmp/cache/assets/sprockets/v3.0/WQ/WQzeYVV9s6PByyCrWX0cNVurA1UGNGD9SgW8YecWwUA.cache new file mode 100644 index 0000000000000000000000000000000000000000..b578472f22deea797cb5fdb9ee1d3c2294be3d98 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/WQ/WQzeYVV9s6PByyCrWX0cNVurA1UGNGD9SgW8YecWwUA.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-drop.js?type=application/javascript&pipeline=self&id=1b2dcbd9232a65e8b595014d716f73cbdc3b75d11eae2acf67a9d8fc4bde1718:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Wn/WnaY5X0oY_tsBTVPtg0kYiDvYREGe-UkyT1DkUyDir0.cache b/T5/tmp/cache/assets/sprockets/v3.0/Wn/WnaY5X0oY_tsBTVPtg0kYiDvYREGe-UkyT1DkUyDir0.cache new file mode 100644 index 0000000000000000000000000000000000000000..d5a6e6b8905c658caba5a29f214d20e016ee72af --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Wn/WnaY5X0oY_tsBTVPtg0kYiDvYREGe-UkyT1DkUyDir0.cache @@ -0,0 +1 @@ +"%ã$.nÑë/ݸy÷ÚÅ»îé®-“øOÄŠÕ¸‰EËÎ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Wt/WtJgLSf6yxyAfrLdu-O3YNzHu-7HK2jrpeCdxOmbDVE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Wt/WtJgLSf6yxyAfrLdu-O3YNzHu-7HK2jrpeCdxOmbDVE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f87555695b2270bc6f9e613e090636a502fbd4ea --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Wt/WtJgLSf6yxyAfrLdu-O3YNzHu-7HK2jrpeCdxOmbDVE.cache @@ -0,0 +1 @@ +I"Õ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/ie.js?type=application/javascript&pipeline=self&id=dc1b6f87e101b94807bd01c6b9cb21ac480935cd07684eec4b6c9838a3e14d67:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Wu/WuGEMARmSi_lshh0S-RdezkZDAIAvVV3SJt98lwDxQE.cache b/T5/tmp/cache/assets/sprockets/v3.0/Wu/WuGEMARmSi_lshh0S-RdezkZDAIAvVV3SJt98lwDxQE.cache new file mode 100644 index 0000000000000000000000000000000000000000..74db4c2691a15d43cb50a7fc939acb8761bd0bb4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Wu/WuGEMARmSi_lshh0S-RdezkZDAIAvVV3SJt98lwDxQE.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-size.js?type=application/javascript&pipeline=self&id=503237ba27de66c6f0953cce55a3d42a7c140e61257d11ee96fe28c2f845715d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ww/Wws8L7syg_t_F9ZvD0CaNu4UD4rARKBvL2OE1GrNljQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ww/Wws8L7syg_t_F9ZvD0CaNu4UD4rARKBvL2OE1GrNljQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..f42c1cae33771b140c0eb3d0a55e7a61e5c16b40 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ww/Wws8L7syg_t_F9ZvD0CaNu4UD4rARKBvL2OE1GrNljQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/X4/X4Aav4n2BmXIAJidJT5-Z4M-nTJBo1G7Olz0bmM8Pk8.cache b/T5/tmp/cache/assets/sprockets/v3.0/X4/X4Aav4n2BmXIAJidJT5-Z4M-nTJBo1G7Olz0bmM8Pk8.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ebd0d8224b95fc3f2c77b40c470618d28355d04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/X4/X4Aav4n2BmXIAJidJT5-Z4M-nTJBo1G7Olz0bmM8Pk8.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"3file-digest://app/assets/stylesheets/home.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/X4/X4YMDB5ZgP0Kwcc4TiP1LUzSgCgAdS-Kc405y71lr0g.cache b/T5/tmp/cache/assets/sprockets/v3.0/X4/X4YMDB5ZgP0Kwcc4TiP1LUzSgCgAdS-Kc405y71lr0g.cache new file mode 100644 index 0000000000000000000000000000000000000000..5705ef39efceb793ad9f4ba001e2b206280913d3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/X4/X4YMDB5ZgP0Kwcc4TiP1LUzSgCgAdS-Kc405y71lr0g.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/XG/XGU63gFEgL0JNBMBFEVqhLQr_HopN_nwEQ2l9UZgXiY.cache b/T5/tmp/cache/assets/sprockets/v3.0/XG/XGU63gFEgL0JNBMBFEVqhLQr_HopN_nwEQ2l9UZgXiY.cache new file mode 100644 index 0000000000000000000000000000000000000000..885d80e00ac42f57b5f566ad03218f0cf70268df Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/XG/XGU63gFEgL0JNBMBFEVqhLQr_HopN_nwEQ2l9UZgXiY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/XH/XHFd0Bgrj-noFKLODhY7Xv8oeFgQQQGT0v8YaQG9LkE.cache b/T5/tmp/cache/assets/sprockets/v3.0/XH/XHFd0Bgrj-noFKLODhY7Xv8oeFgQQQGT0v8YaQG9LkE.cache new file mode 100644 index 0000000000000000000000000000000000000000..6f725adacdbb3c8d2abb47850c97e113e00d9448 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/XH/XHFd0Bgrj-noFKLODhY7Xv8oeFgQQQGT0v8YaQG9LkE.cache @@ -0,0 +1 @@ +I"app/assets/stylesheets/games.scss?type=text/css&pipeline=self&id=8554acf784e192aa991834298dcb220184928b938881ca7c5e8ccfb4b5d81442:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Xd/Xd5civOijS3-HH36G2QkXdRCqQCnMzVc_SErl0Fow-w.cache b/T5/tmp/cache/assets/sprockets/v3.0/Xd/Xd5civOijS3-HH36G2QkXdRCqQCnMzVc_SErl0Fow-w.cache new file mode 100644 index 0000000000000000000000000000000000000000..a409641777e2d6f4ba9c90a64650d6a672974650 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Xd/Xd5civOijS3-HH36G2QkXdRCqQCnMzVc_SErl0Fow-w.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Xe/XeHMtR4sW0g_E9BwXcFCzYJ8Cmrfe70woWczwHIBaZo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Xe/XeHMtR4sW0g_E9BwXcFCzYJ8Cmrfe70woWczwHIBaZo.cache new file mode 100644 index 0000000000000000000000000000000000000000..130139f3f9c3fcdc5f31c41b18655e8681cb1d9c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Xe/XeHMtR4sW0g_E9BwXcFCzYJ8Cmrfe70woWczwHIBaZo.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/categories.coffee?type=application/javascript&pipeline=self&id=714008f160bbcb9b7e436e1c3df9e4f8f9c5b53c90340688eaf060befd45f60a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Xg/XgqbPHAlvpTLmzeSE4i8X-LKnbvBHZ2cxZQHkmNT19c.cache b/T5/tmp/cache/assets/sprockets/v3.0/Xg/XgqbPHAlvpTLmzeSE4i8X-LKnbvBHZ2cxZQHkmNT19c.cache new file mode 100644 index 0000000000000000000000000000000000000000..67537e3c7ee8e60ae1156125419cfb7ea9de9bbe Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Xg/XgqbPHAlvpTLmzeSE4i8X-LKnbvBHZ2cxZQHkmNT19c.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Xn/Xn-CGgQnko_1eDd4Kjw1nOrsTo1T-iwccWV1PJFKDZg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Xn/Xn-CGgQnko_1eDd4Kjw1nOrsTo1T-iwccWV1PJFKDZg.cache new file mode 100644 index 0000000000000000000000000000000000000000..78b5e98fd0d9ca6c5f28aed29c902be085712e47 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Xn/Xn-CGgQnko_1eDd4Kjw1nOrsTo1T-iwccWV1PJFKDZg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Xp/XpjUnKuSSOkOH1r9VNesrWRvDDH7uTJZ6uJMYjQWsVo.cache b/T5/tmp/cache/assets/sprockets/v3.0/Xp/XpjUnKuSSOkOH1r9VNesrWRvDDH7uTJZ6uJMYjQWsVo.cache new file mode 100644 index 0000000000000000000000000000000000000000..7d24c9cd81c1cd604419c1f659131298378111f9 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Xp/XpjUnKuSSOkOH1r9VNesrWRvDDH7uTJZ6uJMYjQWsVo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Y0/Y0bugeSnvLummMjQoInGW9rOKE-W4Z-QfXx5m2g3ZBI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Y0/Y0bugeSnvLummMjQoInGW9rOKE-W4Z-QfXx5m2g3ZBI.cache new file mode 100644 index 0000000000000000000000000000000000000000..aadc10f82ffc89bb29211fdcf9acc643689c58bf Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Y0/Y0bugeSnvLummMjQoInGW9rOKE-W4Z-QfXx5m2g3ZBI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/YA/YAX2QRkNMAvz07VecouJORlE07Nd21jP6XDe1XkisAQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/YA/YAX2QRkNMAvz07VecouJORlE07Nd21jP6XDe1XkisAQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..06a36107330ef927666d859316798c3c8f47bf72 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/YA/YAX2QRkNMAvz07VecouJORlE07Nd21jP6XDe1XkisAQ.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=34395ac2c54e361a030dc5bb1f8e39d7a3cd87c76793a55edbc5bb52ccde224d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/YF/YFAxQ8eHKXyLAABm-C8N_tS4N92fIXPdQpiPTUPWN-k.cache b/T5/tmp/cache/assets/sprockets/v3.0/YF/YFAxQ8eHKXyLAABm-C8N_tS4N92fIXPdQpiPTUPWN-k.cache new file mode 100644 index 0000000000000000000000000000000000000000..5935540d57d9fe419754e9998dea24e7258a27c6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/YF/YFAxQ8eHKXyLAABm-C8N_tS4N92fIXPdQpiPTUPWN-k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/YH/YHlVnUAQcjFnSK5XMB5vrOaR0c1k7lzTTNTIAHoxzZU.cache b/T5/tmp/cache/assets/sprockets/v3.0/YH/YHlVnUAQcjFnSK5XMB5vrOaR0c1k7lzTTNTIAHoxzZU.cache new file mode 100644 index 0000000000000000000000000000000000000000..681a828bb4348d6ae5ee12731514c62c2504ad90 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/YH/YHlVnUAQcjFnSK5XMB5vrOaR0c1k7lzTTNTIAHoxzZU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/YJ/YJJFvDHgC5lRBnZdgNR48uq2OMl0And72ZqTdFswANM.cache b/T5/tmp/cache/assets/sprockets/v3.0/YJ/YJJFvDHgC5lRBnZdgNR48uq2OMl0And72ZqTdFswANM.cache new file mode 100644 index 0000000000000000000000000000000000000000..d833d601d862ef839ff05a5bc81af46f26bc238d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/YJ/YJJFvDHgC5lRBnZdgNR48uq2OMl0And72ZqTdFswANM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/YM/YMEp6bNigcZ4Fna1p5JhCyGHgr-kP1wZ80zSbDWgptM.cache b/T5/tmp/cache/assets/sprockets/v3.0/YM/YMEp6bNigcZ4Fna1p5JhCyGHgr-kP1wZ80zSbDWgptM.cache new file mode 100644 index 0000000000000000000000000000000000000000..ce78aa13fbc0cbaaef3b77f7ff0602ce4db26069 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/YM/YMEp6bNigcZ4Fna1p5JhCyGHgr-kP1wZ80zSbDWgptM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Ye/Ye_Zq8SiKkpmQG2EnQV2mYut8qpidMcIg6-fc7Z1YsY.cache b/T5/tmp/cache/assets/sprockets/v3.0/Ye/Ye_Zq8SiKkpmQG2EnQV2mYut8qpidMcIg6-fc7Z1YsY.cache new file mode 100644 index 0000000000000000000000000000000000000000..2baa1d5f9a28db282a2c550f8bf48327fb7874e2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Ye/Ye_Zq8SiKkpmQG2EnQV2mYut8qpidMcIg6-fc7Z1YsY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Yj/YjDz5AgbXr6tQA8KKndpfuBVDaeF-lGhLZRH9ya893I.cache b/T5/tmp/cache/assets/sprockets/v3.0/Yj/YjDz5AgbXr6tQA8KKndpfuBVDaeF-lGhLZRH9ya893I.cache new file mode 100644 index 0000000000000000000000000000000000000000..697b8bf345c9304cbd909364894688eb9b2691b1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Yj/YjDz5AgbXr6tQA8KKndpfuBVDaeF-lGhLZRH9ya893I.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/data.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Yz/YzZoacaRViMugO5R4BFqirtwL9qzCoGpP7I2ho0HRgc.cache b/T5/tmp/cache/assets/sprockets/v3.0/Yz/YzZoacaRViMugO5R4BFqirtwL9qzCoGpP7I2ho0HRgc.cache new file mode 100644 index 0000000000000000000000000000000000000000..a4793e455d0114f283ffbc5f4bad604ed940e75c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Yz/YzZoacaRViMugO5R4BFqirtwL9qzCoGpP7I2ho0HRgc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Z0/Z089SxZBc0m-q93_83tDbXAHdjTBT4s56XqwFS775wg.cache b/T5/tmp/cache/assets/sprockets/v3.0/Z0/Z089SxZBc0m-q93_83tDbXAHdjTBT4s56XqwFS775wg.cache new file mode 100644 index 0000000000000000000000000000000000000000..71c78931ddf39680080311ce1cdb1e1188e2c19e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Z0/Z089SxZBc0m-q93_83tDbXAHdjTBT4s56XqwFS775wg.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=dff5f08dbf3098ef3da2e1f5e4433079d9c0d5366945b1976017e47fd56cb0b2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Z3/Z3xTpTxplHesZJ3HN1oS0r3ErpsopNDdUt7I1llBS7Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/Z3/Z3xTpTxplHesZJ3HN1oS0r3ErpsopNDdUt7I1llBS7Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..0c235c791c0a3121b36aa13496a0197bfeba9c24 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/Z3/Z3xTpTxplHesZJ3HN1oS0r3ErpsopNDdUt7I1llBS7Q.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Z8/Z8jYnRQEOA7SfEIxfN7FZvdGuEY8zeVhgfkIiARofLI.cache b/T5/tmp/cache/assets/sprockets/v3.0/Z8/Z8jYnRQEOA7SfEIxfN7FZvdGuEY8zeVhgfkIiARofLI.cache new file mode 100644 index 0000000000000000000000000000000000000000..cccb69aa73cdaa93b0b7a14bb0af3d9e040d6bfc --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Z8/Z8jYnRQEOA7SfEIxfN7FZvdGuEY8zeVhgfkIiARofLI.cache @@ -0,0 +1 @@ +"%÷û}žßÕéŒÿªJñd¿÷ápýA,#GÐÏ Ðj²“ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ZF/ZFcRChpPkA3JnYndyBIH2O5WS6dvZhGdbat4yWa23pw.cache b/T5/tmp/cache/assets/sprockets/v3.0/ZF/ZFcRChpPkA3JnYndyBIH2O5WS6dvZhGdbat4yWa23pw.cache new file mode 100644 index 0000000000000000000000000000000000000000..e7dbfec7221d806c397779e00ad7369d8401a94c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ZF/ZFcRChpPkA3JnYndyBIH2O5WS6dvZhGdbat4yWa23pw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ZK/ZKbzYjxazviTqordxe-etcbgUCg2JvVMyi-l5q_HQmA.cache b/T5/tmp/cache/assets/sprockets/v3.0/ZK/ZKbzYjxazviTqordxe-etcbgUCg2JvVMyi-l5q_HQmA.cache new file mode 100644 index 0000000000000000000000000000000000000000..4eb40e61ffd2ce168f43f3ef687efb7641eaee14 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ZK/ZKbzYjxazviTqordxe-etcbgUCg2JvVMyi-l5q_HQmA.cache @@ -0,0 +1 @@ +"%h±±ösc¸ äß:£\óAxJ÷íbAô„—V§myX \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ZN/ZNdyu8Jd6jqj-IhURJ26JPeiH-AF6-gagLK99Oh_ezw.cache b/T5/tmp/cache/assets/sprockets/v3.0/ZN/ZNdyu8Jd6jqj-IhURJ26JPeiH-AF6-gagLK99Oh_ezw.cache new file mode 100644 index 0000000000000000000000000000000000000000..59b348e263d8d42aa2208306419df0bcc7f223cb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ZN/ZNdyu8Jd6jqj-IhURJ26JPeiH-AF6-gagLK99Oh_ezw.cache @@ -0,0 +1 @@ +"%ãdû-êK’£„`¶äè·8Yáç3Í͹/Y£„ÐÄa~K \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ZS/ZSn2c_wnTTD6mP0H5i07qmmS_P3KVsC-LyXAMJ6v4wI.cache b/T5/tmp/cache/assets/sprockets/v3.0/ZS/ZSn2c_wnTTD6mP0H5i07qmmS_P3KVsC-LyXAMJ6v4wI.cache new file mode 100644 index 0000000000000000000000000000000000000000..3bcaa1f88e0b2b2c713b306c2cb850d851b0f86b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ZS/ZSn2c_wnTTD6mP0H5i07qmmS_P3KVsC-LyXAMJ6v4wI.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=fbe3c5443617c9133eda64bcbbc75040962b9b1974bbbd7feed2050805d1c0f1:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ZU/ZUASaTMK9RoXyLakoOs-720qH23xlp8lUVNJIs4wGf4.cache b/T5/tmp/cache/assets/sprockets/v3.0/ZU/ZUASaTMK9RoXyLakoOs-720qH23xlp8lUVNJIs4wGf4.cache new file mode 100644 index 0000000000000000000000000000000000000000..c31947809ea2e60f7a1566fe39ae014b967ca47b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ZU/ZUASaTMK9RoXyLakoOs-720qH23xlp8lUVNJIs4wGf4.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/progressbar.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Zs/Zs-AuC1Wug2E0BSid9bU3hEBC3b-ic6VpGB2bMGW64s.cache b/T5/tmp/cache/assets/sprockets/v3.0/Zs/Zs-AuC1Wug2E0BSid9bU3hEBC3b-ic6VpGB2bMGW64s.cache new file mode 100644 index 0000000000000000000000000000000000000000..7d1c75e714b813a5e9fbb1076ee0a2cfb8e549bb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Zs/Zs-AuC1Wug2E0BSid9bU3hEBC3b-ic6VpGB2bMGW64s.cache @@ -0,0 +1 @@ +"%ó2ã"XÁ¶ôwÃÐü-$/¯êÅfT©]üfu)Ζ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/Zv/ZvCEW2ZyS-k4cHH7Gd8P2nKFE9Uh1VOrfR-1PYY2yz8.cache b/T5/tmp/cache/assets/sprockets/v3.0/Zv/ZvCEW2ZyS-k4cHH7Gd8P2nKFE9Uh1VOrfR-1PYY2yz8.cache new file mode 100644 index 0000000000000000000000000000000000000000..736a5548195ff345971a3add0810ca55a8d444bf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/Zv/ZvCEW2ZyS-k4cHH7Gd8P2nKFE9Uh1VOrfR-1PYY2yz8.cache @@ -0,0 +1,5 @@ +I"$(function() { + + +}).call(this); +:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_-/_-ABLm3QtM7nS8xnk4JDZ1i0W54jBRFVTZj5ubUqN5k.cache b/T5/tmp/cache/assets/sprockets/v3.0/_-/_-ABLm3QtM7nS8xnk4JDZ1i0W54jBRFVTZj5ubUqN5k.cache new file mode 100644 index 0000000000000000000000000000000000000000..aab1dc177f8fb3fdada54a24018f1da56d02bc2c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/_-/_-ABLm3QtM7nS8xnk4JDZ1i0W54jBRFVTZj5ubUqN5k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_0/_0o0aC59w0KYGDcwRSg_Zt4-SZ2pUBPCurMCvxYhBRs.cache b/T5/tmp/cache/assets/sprockets/v3.0/_0/_0o0aC59w0KYGDcwRSg_Zt4-SZ2pUBPCurMCvxYhBRs.cache new file mode 100644 index 0000000000000000000000000000000000000000..624e472dbb894ab870bcd3fe23af34efaed05c49 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_0/_0o0aC59w0KYGDcwRSg_Zt4-SZ2pUBPCurMCvxYhBRs.cache @@ -0,0 +1 @@ +I"yapp/assets/images/SteamDB-Big.png?type=image/png&id=0952e7579934975552b5c222b05750093af6ee373e00f23bb1cc189e226ce190:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_6/_6MkkuWBw9iYepjtZM-SR3_t4denV8t7zWBhr2V7_NQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/_6/_6MkkuWBw9iYepjtZM-SR3_t4denV8t7zWBhr2V7_NQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..96d07aee3a0bdd7d3845c53a2f13f75bc57eb001 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_6/_6MkkuWBw9iYepjtZM-SR3_t4denV8t7zWBhr2V7_NQ.cache @@ -0,0 +1 @@ +I"ä/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/accordion.js?type=application/javascript&pipeline=self&id=aadb5d79eab4e0adb93bac49fa87af6232db54352ffab3c08cc245eaaa40a38d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_C/_C1x0sq1pgFykLyhabh-k11y_JTouOiZ1pYRbk_1E-g.cache b/T5/tmp/cache/assets/sprockets/v3.0/_C/_C1x0sq1pgFykLyhabh-k11y_JTouOiZ1pYRbk_1E-g.cache new file mode 100644 index 0000000000000000000000000000000000000000..9a33d79c0fd977992704c0ac4d65e72d83c45c92 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_C/_C1x0sq1pgFykLyhabh-k11y_JTouOiZ1pYRbk_1E-g.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/user.coffee?type=application/javascript&pipeline=self&id=4e38c8a5e7dacd363158c16efaf9ef6e3b6845e401e8990cb8ab8d5b29aa1c03:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_D/_Db_jU9kvscNnh-5Rn24V9LSl3tsEnDH4yCDdkwEoPM.cache b/T5/tmp/cache/assets/sprockets/v3.0/_D/_Db_jU9kvscNnh-5Rn24V9LSl3tsEnDH4yCDdkwEoPM.cache new file mode 100644 index 0000000000000000000000000000000000000000..e4e8f85725d9e06b6d726f692065656443d5b7d4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_D/_Db_jU9kvscNnh-5Rn24V9LSl3tsEnDH4yCDdkwEoPM.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/sessions.coffee?type=application/javascript&pipeline=self&id=ad00741678bf786254ac18efa8e1d8d416ceb5cd9adb32f95c85d41d6830c191:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_K/_KqGwwRdmC1lpWm9RhMApQbXIGts3uj8vb7izN3kR9Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/_K/_KqGwwRdmC1lpWm9RhMApQbXIGts3uj8vb7izN3kR9Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..3f76a55c463f83b3df4b2f2dcdc2347d19d379a2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_K/_KqGwwRdmC1lpWm9RhMApQbXIGts3uj8vb7izN3kR9Q.cache @@ -0,0 +1,2 @@ +"% +î{7¬ªÒ³ž/”ðá¤×kK™‡?ÚçÊ}€qB”]õ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_O/_OK40R-xhnogoHP1ErspXNWzduXAWpIF_IuQYvq9_Rc.cache b/T5/tmp/cache/assets/sprockets/v3.0/_O/_OK40R-xhnogoHP1ErspXNWzduXAWpIF_IuQYvq9_Rc.cache new file mode 100644 index 0000000000000000000000000000000000000000..df57f27a5cbbba431c85c0aa46cf4c8863d82973 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_O/_OK40R-xhnogoHP1ErspXNWzduXAWpIF_IuQYvq9_Rc.cache @@ -0,0 +1 @@ +I"Î/home/wellington/.rvm/gems/ruby-2.5.0/gems/actioncable-5.1.5/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=c84c4be498f5825bb9c34a3819b5af4c18d1aeeb27c718785678e8b8d505a3f2:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_P/_PkiL2PzXSIUzo_LXmwwGOAbw8ZFnWcOEYNPDsQ0Xfs.cache b/T5/tmp/cache/assets/sprockets/v3.0/_P/_PkiL2PzXSIUzo_LXmwwGOAbw8ZFnWcOEYNPDsQ0Xfs.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_P/_PkiL2PzXSIUzo_LXmwwGOAbw8ZFnWcOEYNPDsQ0Xfs.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_P/_Puywefb2Pb34hIdyl3QFoMKCrtdlMl7Yd5cXE3t8Dg.cache b/T5/tmp/cache/assets/sprockets/v3.0/_P/_Puywefb2Pb34hIdyl3QFoMKCrtdlMl7Yd5cXE3t8Dg.cache new file mode 100644 index 0000000000000000000000000000000000000000..b433cf45952ea4638ae6e141a766551a1633902b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_P/_Puywefb2Pb34hIdyl3QFoMKCrtdlMl7Yd5cXE3t8Dg.cache @@ -0,0 +1 @@ +"%âjy(È«ƒâ`Ÿ^I'ø¤ó#D(Z,Ÿ( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_R/_RZNQ2OZpJ0KtILbEL1VT-diTznwixmqHdgv9mBokus.cache b/T5/tmp/cache/assets/sprockets/v3.0/_R/_RZNQ2OZpJ0KtILbEL1VT-diTznwixmqHdgv9mBokus.cache new file mode 100644 index 0000000000000000000000000000000000000000..8cb795884519675f825f6bc37bfa626525db5e35 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_R/_RZNQ2OZpJ0KtILbEL1VT-diTznwixmqHdgv9mBokus.cache @@ -0,0 +1,2 @@ +"%} óOX +~M' Œ|›:ÀËô„±Õì' €Œ8ç@Š` \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_e/_eWwh1sKknVq7RupVn_LRQLBBQV3HK78DhNwT7WwLJ8.cache b/T5/tmp/cache/assets/sprockets/v3.0/_e/_eWwh1sKknVq7RupVn_LRQLBBQV3HK78DhNwT7WwLJ8.cache new file mode 100644 index 0000000000000000000000000000000000000000..a8d31f07675673cbb9d2bb4ae5574b769209c8b4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_e/_eWwh1sKknVq7RupVn_LRQLBBQV3HK78DhNwT7WwLJ8.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=ac25d1800e416628f59c202a62cf857fd73146ab8ed41ab5f2ecb8f5597ca2b9:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_m/_miPPZ0UyPg6OTHCrn3WWgjYbXw66Tome2fF4GSr0Qk.cache b/T5/tmp/cache/assets/sprockets/v3.0/_m/_miPPZ0UyPg6OTHCrn3WWgjYbXw66Tome2fF4GSr0Qk.cache new file mode 100644 index 0000000000000000000000000000000000000000..8cc8d9d0f9b4c33aa757c6ceab785ff65cadfb23 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/_m/_miPPZ0UyPg6OTHCrn3WWgjYbXw66Tome2fF4GSr0Qk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_p/_pQ4USHB2TW1BKLcayuj6tokQG4q2rPJC70TPYG4x_c.cache b/T5/tmp/cache/assets/sprockets/v3.0/_p/_pQ4USHB2TW1BKLcayuj6tokQG4q2rPJC70TPYG4x_c.cache new file mode 100644 index 0000000000000000000000000000000000000000..6de1765bbc3dc04cb3937a1e6af1c95bde9fec14 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_p/_pQ4USHB2TW1BKLcayuj6tokQG4q2rPJC70TPYG4x_c.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=15a95efc6dc287f01dfd6ed555c2cb3262d451d7bf38564a08a4fc0226b151be:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_r/_rJdcWv2IgawyeEtQvbQHW-8uY9AQHG-l0GOza842Us.cache b/T5/tmp/cache/assets/sprockets/v3.0/_r/_rJdcWv2IgawyeEtQvbQHW-8uY9AQHG-l0GOza842Us.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_r/_rJdcWv2IgawyeEtQvbQHW-8uY9AQHG-l0GOza842Us.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_w/_wcX9p42-tCx2jv1bgj46axYgNEv6t9Pbpci1Khpz-A.cache b/T5/tmp/cache/assets/sprockets/v3.0/_w/_wcX9p42-tCx2jv1bgj46axYgNEv6t9Pbpci1Khpz-A.cache new file mode 100644 index 0000000000000000000000000000000000000000..d5664a8d3cf2ea50cd65e2ec369aa0e680c276f9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_w/_wcX9p42-tCx2jv1bgj46axYgNEv6t9Pbpci1Khpz-A.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=a92b4319f890c67870bd9e47832ff506f43246d12e3d4f03b110c3a63093d512:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/_y/_ywtV9PYf4Az9uuvBzpyG4yntEtA7vahdMyc56zG6nA.cache b/T5/tmp/cache/assets/sprockets/v3.0/_y/_ywtV9PYf4Az9uuvBzpyG4yntEtA7vahdMyc56zG6nA.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/_y/_ywtV9PYf4Az9uuvBzpyG4yntEtA7vahdMyc56zG6nA.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/a-/a-SEnqqnJsnTHJnCb5iESULGdmag9ICeMpPn4_NWcKs.cache b/T5/tmp/cache/assets/sprockets/v3.0/a-/a-SEnqqnJsnTHJnCb5iESULGdmag9ICeMpPn4_NWcKs.cache new file mode 100644 index 0000000000000000000000000000000000000000..e81621d563090869cf01994cfd5c0588e1b26070 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/a-/a-SEnqqnJsnTHJnCb5iESULGdmag9ICeMpPn4_NWcKs.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=155f2461b255b234feee550ba78405ca82d9858d08340712bd3d29b39f1c0386:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/a0/a00JqPDXle32XrEm7_6FpdYqPHBbuVt3k2TH5utyS0M.cache b/T5/tmp/cache/assets/sprockets/v3.0/a0/a00JqPDXle32XrEm7_6FpdYqPHBbuVt3k2TH5utyS0M.cache new file mode 100644 index 0000000000000000000000000000000000000000..054c2b39ccc1426da75a5838b0b2c883444aaea6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/a0/a00JqPDXle32XrEm7_6FpdYqPHBbuVt3k2TH5utyS0M.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=a6e11c1a9c07aede68b91dbd351050829ccdfb12d78da2130cd89da4d6c89a72:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/aG/aG7V-1L_R3SPMqPWKggNTURvAxLfd7acXsb6u2CuVxg.cache b/T5/tmp/cache/assets/sprockets/v3.0/aG/aG7V-1L_R3SPMqPWKggNTURvAxLfd7acXsb6u2CuVxg.cache new file mode 100644 index 0000000000000000000000000000000000000000..2c928e9a9b3d9142680d171f04e03e373fdf63f7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/aG/aG7V-1L_R3SPMqPWKggNTURvAxLfd7acXsb6u2CuVxg.cache @@ -0,0 +1 @@ +I"Ê/home/wellington/.rvm/gems/ruby-2.5.0/gems/actionview-5.1.5/lib/assets/compiled/rails-ujs.js?type=application/javascript&pipeline=self&id=41c9f5088b08c38b3f3a4a0ef6343158b31a67ed9965219e5b8fedd3f74ed8f7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/aS/aSp1LsYTXnIXM2OIAMMwyyE-NPbPewOtM7ke8BFyfRk.cache b/T5/tmp/cache/assets/sprockets/v3.0/aS/aSp1LsYTXnIXM2OIAMMwyyE-NPbPewOtM7ke8BFyfRk.cache new file mode 100644 index 0000000000000000000000000000000000000000..8234ae2db775283cd1975f61eae52269a4801c81 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/aS/aSp1LsYTXnIXM2OIAMMwyyE-NPbPewOtM7ke8BFyfRk.cache @@ -0,0 +1 @@ +I"â/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/spinner.js?type=application/javascript&pipeline=self&id=7486326efdeffa4d17056c92e4bbed743875eac83703538e03dc0980a8db5813:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/aU/aUqx4TEO-A23Gs7X44qgq95zWZBL7DKmGnx3xRkcDEQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/aU/aUqx4TEO-A23Gs7X44qgq95zWZBL7DKmGnx3xRkcDEQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..8f6fe87d0cf7fe230cd1dcc0fd3c42a1b1df8881 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/aU/aUqx4TEO-A23Gs7X44qgq95zWZBL7DKmGnx3xRkcDEQ.cache @@ -0,0 +1 @@ +"%½Fã<’:Ÿ¿×Go[ub÷M5l>”z‘QKž8‡ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/af/af1r11J-1lMS8NgfbdWlBnlx9A_u25tCTMcaZiFHGSs.cache b/T5/tmp/cache/assets/sprockets/v3.0/af/af1r11J-1lMS8NgfbdWlBnlx9A_u25tCTMcaZiFHGSs.cache new file mode 100644 index 0000000000000000000000000000000000000000..17f90650d41d73f593b5f4bc65ee11b705a0fcd0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/af/af1r11J-1lMS8NgfbdWlBnlx9A_u25tCTMcaZiFHGSs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/au/auGQDXAS_zFpgiEhAYDnZ5hWsZfkhMvMlZ8EIKMeTlE.cache b/T5/tmp/cache/assets/sprockets/v3.0/au/auGQDXAS_zFpgiEhAYDnZ5hWsZfkhMvMlZ8EIKMeTlE.cache new file mode 100644 index 0000000000000000000000000000000000000000..e08085b832d40a491e65220736974b2451707f64 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/au/auGQDXAS_zFpgiEhAYDnZ5hWsZfkhMvMlZ8EIKMeTlE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=2022a199554addcd6523ccd5f0919ff87d5587a50af7b8a5d4ed6cc8b79ca402:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/b2/b2xeScr9faHL8zk4I1BlHtkQrVA51M4yLSGPFao3yvM.cache b/T5/tmp/cache/assets/sprockets/v3.0/b2/b2xeScr9faHL8zk4I1BlHtkQrVA51M4yLSGPFao3yvM.cache new file mode 100644 index 0000000000000000000000000000000000000000..00ba2556689a97d292630b2c5b20cda3b76aea19 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/b2/b2xeScr9faHL8zk4I1BlHtkQrVA51M4yLSGPFao3yvM.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=946cbdfebb7cd87d50dca99a9164469ceb82453e4df488198a0f57b8e4b357e4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/b3/b3U_q3WYj84IanetDmaufKDoJxilno0O1-70ZepRnsk.cache b/T5/tmp/cache/assets/sprockets/v3.0/b3/b3U_q3WYj84IanetDmaufKDoJxilno0O1-70ZepRnsk.cache new file mode 100644 index 0000000000000000000000000000000000000000..a157ea83c663f809592c8480a391b876d16ec515 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/b3/b3U_q3WYj84IanetDmaufKDoJxilno0O1-70ZepRnsk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/b5/b5Shq8JRgDQCFT-g154WZiNDNKel5S879ndtgIJ5jGA.cache b/T5/tmp/cache/assets/sprockets/v3.0/b5/b5Shq8JRgDQCFT-g154WZiNDNKel5S879ndtgIJ5jGA.cache new file mode 100644 index 0000000000000000000000000000000000000000..9347d6e2bef23a3cc6263d229c3024c8da8fdfc8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/b5/b5Shq8JRgDQCFT-g154WZiNDNKel5S879ndtgIJ5jGA.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=2d4aef0eeffd58bca00e19d5a33fceb40e337596d01c6e6c9b9e7bd07f203c49:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/b8/b8iNc2mLnvXBdnhlS_Ehr-zJlSvjBCfsZQuiVhGDCho.cache b/T5/tmp/cache/assets/sprockets/v3.0/b8/b8iNc2mLnvXBdnhlS_Ehr-zJlSvjBCfsZQuiVhGDCho.cache new file mode 100644 index 0000000000000000000000000000000000000000..40f5fcfdae5578cb0a457b00dfa979171d894a7f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/b8/b8iNc2mLnvXBdnhlS_Ehr-zJlSvjBCfsZQuiVhGDCho.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bB/bBGdge2JIzFs19Sp-OrTN-50EU7-YABljSbHBSExJJ8.cache b/T5/tmp/cache/assets/sprockets/v3.0/bB/bBGdge2JIzFs19Sp-OrTN-50EU7-YABljSbHBSExJJ8.cache new file mode 100644 index 0000000000000000000000000000000000000000..c22242bb352b78e0e535c94e7e486c76dd6e0773 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/bB/bBGdge2JIzFs19Sp-OrTN-50EU7-YABljSbHBSExJJ8.cache @@ -0,0 +1 @@ +I"×/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/core.js?type=application/javascript&pipeline=self&id=67a784369fc2f9703a11665d5d0b5c7107ef7851ce645bdbc2784fb1ff7689a8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bF/bF6H6lU6HkiNKlfo3zsAYLEv_Ehfa0BpewElHAAjbug.cache b/T5/tmp/cache/assets/sprockets/v3.0/bF/bF6H6lU6HkiNKlfo3zsAYLEv_Ehfa0BpewElHAAjbug.cache new file mode 100644 index 0000000000000000000000000000000000000000..a8a7c3576bb74f3391ef18b3ac50c1a459f84143 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/bF/bF6H6lU6HkiNKlfo3zsAYLEv_Ehfa0BpewElHAAjbug.cache @@ -0,0 +1 @@ +I"‚app/assets/stylesheets/prices.scss?type=text/css&pipeline=self&id=60babeaa1300132afd9b5b9b39b32545f6dc6b4e4cc82b3ea56f131a5a782386:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bF/bFogesyBRmtf0OiOSvKHZrNKzTXRpWYkpBDbuIUyXLQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/bF/bFogesyBRmtf0OiOSvKHZrNKzTXRpWYkpBDbuIUyXLQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..fbf5cb94d91c5583f01165a851fffd3d20ddd451 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bF/bFogesyBRmtf0OiOSvKHZrNKzTXRpWYkpBDbuIUyXLQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bP/bPfyDWO4cWIr7trR-tVYfBrRt1b0U8FqL3Y74ruf3D0.cache b/T5/tmp/cache/assets/sprockets/v3.0/bP/bPfyDWO4cWIr7trR-tVYfBrRt1b0U8FqL3Y74ruf3D0.cache new file mode 100644 index 0000000000000000000000000000000000000000..198abb2d1c232bc30d41c8186438a04d5ae41589 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bP/bPfyDWO4cWIr7trR-tVYfBrRt1b0U8FqL3Y74ruf3D0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bS/bSuUBWacvVfz9fbqn41zEPdfmFMaMFpJPwCBtLzJpyM.cache b/T5/tmp/cache/assets/sprockets/v3.0/bS/bSuUBWacvVfz9fbqn41zEPdfmFMaMFpJPwCBtLzJpyM.cache new file mode 100644 index 0000000000000000000000000000000000000000..b6769929f562b6b5eac8d81b7d4b2c420b9354fd Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bS/bSuUBWacvVfz9fbqn41zEPdfmFMaMFpJPwCBtLzJpyM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bd/bdUxwdEaqBuWF5BXtg9qMIgU_b2B8KOZTsEFKIGiqG4.cache b/T5/tmp/cache/assets/sprockets/v3.0/bd/bdUxwdEaqBuWF5BXtg9qMIgU_b2B8KOZTsEFKIGiqG4.cache new file mode 100644 index 0000000000000000000000000000000000000000..5985905670de64aa4a4358f52b5a0042e09781a2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bd/bdUxwdEaqBuWF5BXtg9qMIgU_b2B8KOZTsEFKIGiqG4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bd/bdpzrGzB8xQ6A9EsvuV5P5bkWo5NvN_S7py1JQLc4xk.cache b/T5/tmp/cache/assets/sprockets/v3.0/bd/bdpzrGzB8xQ6A9EsvuV5P5bkWo5NvN_S7py1JQLc4xk.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/bd/bdpzrGzB8xQ6A9EsvuV5P5bkWo5NvN_S7py1JQLc4xk.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bn/bnfI5hxFZ0cPfExVEI1aOtWuNs9mCE8JzGnvbbQF1vM.cache b/T5/tmp/cache/assets/sprockets/v3.0/bn/bnfI5hxFZ0cPfExVEI1aOtWuNs9mCE8JzGnvbbQF1vM.cache new file mode 100644 index 0000000000000000000000000000000000000000..4cc6f270ad42684c44ece9bd99573d37740986e5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/bn/bnfI5hxFZ0cPfExVEI1aOtWuNs9mCE8JzGnvbbQF1vM.cache @@ -0,0 +1 @@ +I"á/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/button.js?type=application/javascript&pipeline=self&id=bd770ad182e8cc779622d9cb1f29b594c5165b9c3217383bb34b8bba7d9cb62f:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bo/bo2Q8xiqgKM_692_PDwMBrfpeA9YHheZeVCbpCzWlBE.cache b/T5/tmp/cache/assets/sprockets/v3.0/bo/bo2Q8xiqgKM_692_PDwMBrfpeA9YHheZeVCbpCzWlBE.cache new file mode 100644 index 0000000000000000000000000000000000000000..ae7d465121dd178424163555c2d45641d27e0544 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bo/bo2Q8xiqgKM_692_PDwMBrfpeA9YHheZeVCbpCzWlBE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/bw/bwxSRr_KJk_jquTcaDxzf0czq4IURSUbqvln6-QsWFo.cache b/T5/tmp/cache/assets/sprockets/v3.0/bw/bwxSRr_KJk_jquTcaDxzf0czq4IURSUbqvln6-QsWFo.cache new file mode 100644 index 0000000000000000000000000000000000000000..db9d0f41b1b954d801c4c8e32dbeb12607641864 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/bw/bwxSRr_KJk_jquTcaDxzf0czq4IURSUbqvln6-QsWFo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/c-/c-IjeBKwKGSgfWoiqEprObAdqig24KGCEqkuTiwk2W4.cache b/T5/tmp/cache/assets/sprockets/v3.0/c-/c-IjeBKwKGSgfWoiqEprObAdqig24KGCEqkuTiwk2W4.cache new file mode 100644 index 0000000000000000000000000000000000000000..98a5f7296ca4c99c9ff07f6f1825d19f64010906 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/c-/c-IjeBKwKGSgfWoiqEprObAdqig24KGCEqkuTiwk2W4.cache @@ -0,0 +1 @@ +I"”app/assets/javascripts/application.js?type=application/javascript&pipeline=debug&id=e446883bca416d945dc23ad440a9b3cb97724df0f708daa69264a76a093775fc:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/c1/c15jzDCYVJEhMZt1x3hsktqk2zWXOm_UybTbdbcM4MM.cache b/T5/tmp/cache/assets/sprockets/v3.0/c1/c15jzDCYVJEhMZt1x3hsktqk2zWXOm_UybTbdbcM4MM.cache new file mode 100644 index 0000000000000000000000000000000000000000..316ebbbdcbaff899e4225142fe7ff1cf89d0946c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/c1/c15jzDCYVJEhMZt1x3hsktqk2zWXOm_UybTbdbcM4MM.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=2d6c8b3ba7c82b674573721481a6a2ec40948e420e6822256849f669896a2783:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/c6/c6jdiM5_gejDoZyClLlkt51F7kl1I2jBXP1EkyWmvCQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/c6/c6jdiM5_gejDoZyClLlkt51F7kl1I2jBXP1EkyWmvCQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..c9d1427e9400a33382e6ac1d9109dca10d94db51 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/c6/c6jdiM5_gejDoZyClLlkt51F7kl1I2jBXP1EkyWmvCQ.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=7d0cbc89e97334a816d7e2e955d5501d5f82d4c13511304b9dfd7f44bb9560c5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cA/cAIBC5UL8ZfO_uvX8F-jG1JV4xe28GawV2sGX58xodQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/cA/cAIBC5UL8ZfO_uvX8F-jG1JV4xe28GawV2sGX58xodQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..509a62bbe9cbd1ebe743b051d7279c3a8853a9ee Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/cA/cAIBC5UL8ZfO_uvX8F-jG1JV4xe28GawV2sGX58xodQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cB/cBHNTIidI3nLps4kbXN2sq8Eyq4Z44TbhbXVVGTcDw8.cache b/T5/tmp/cache/assets/sprockets/v3.0/cB/cBHNTIidI3nLps4kbXN2sq8Eyq4Z44TbhbXVVGTcDw8.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ebd0d8224b95fc3f2c77b40c470618d28355d04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/cB/cBHNTIidI3nLps4kbXN2sq8Eyq4Z44TbhbXVVGTcDw8.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"3file-digest://app/assets/stylesheets/home.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cM/cMBfXWgZleWhGt48dmbziExar9u-gdj4Xeteb3dq1mE.cache b/T5/tmp/cache/assets/sprockets/v3.0/cM/cMBfXWgZleWhGt48dmbziExar9u-gdj4Xeteb3dq1mE.cache new file mode 100644 index 0000000000000000000000000000000000000000..4a9f9c97ad6391aa77fe57d40c153eaf9ed4e30e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/cM/cMBfXWgZleWhGt48dmbziExar9u-gdj4Xeteb3dq1mE.cache @@ -0,0 +1 @@ +"%EÚ ±B"ïYz.6ç7fè#DGÇLÈÍ>!É7±®¶ò× \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cU/cUpBTS24K_hUpFoqe9EoiCO_QuqWJhqRl6wjErzF3Lk.cache b/T5/tmp/cache/assets/sprockets/v3.0/cU/cUpBTS24K_hUpFoqe9EoiCO_QuqWJhqRl6wjErzF3Lk.cache new file mode 100644 index 0000000000000000000000000000000000000000..8535794e167b6ed2ea201520687fafc65dda34a0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/cU/cUpBTS24K_hUpFoqe9EoiCO_QuqWJhqRl6wjErzF3Lk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cW/cWwjpy5LR4otNPIJRMqwqkGbqjsrv_HKCa_73TMv0Gg.cache b/T5/tmp/cache/assets/sprockets/v3.0/cW/cWwjpy5LR4otNPIJRMqwqkGbqjsrv_HKCa_73TMv0Gg.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/cW/cWwjpy5LR4otNPIJRMqwqkGbqjsrv_HKCa_73TMv0Gg.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ck/ck_Jz8Uw-Rsi-BcrymoOYdrqqaBNcEqV2w7Zlhb2NHI.cache b/T5/tmp/cache/assets/sprockets/v3.0/ck/ck_Jz8Uw-Rsi-BcrymoOYdrqqaBNcEqV2w7Zlhb2NHI.cache new file mode 100644 index 0000000000000000000000000000000000000000..d627953fc8e40725b0c3397e0e3dcc460041debf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ck/ck_Jz8Uw-Rsi-BcrymoOYdrqqaBNcEqV2w7Zlhb2NHI.cache @@ -0,0 +1 @@ +I"Ê/home/wellington/.rvm/gems/ruby-2.5.0/gems/actionview-5.1.5/lib/assets/compiled/rails-ujs.js?type=application/javascript&pipeline=self&id=d32f14b54da51157de0e1761389618f13e59264a946bcb31cce6d5362168a5b3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cy/cyct01BpWf4la5AbyXFgnpxSqxi_Idfg0Duvr5rfwy8.cache b/T5/tmp/cache/assets/sprockets/v3.0/cy/cyct01BpWf4la5AbyXFgnpxSqxi_Idfg0Duvr5rfwy8.cache new file mode 100644 index 0000000000000000000000000000000000000000..d802dc805c88539597fa2ccb21312d86e975056d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/cy/cyct01BpWf4la5AbyXFgnpxSqxi_Idfg0Duvr5rfwy8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/cz/czwnYKW3iuugnJ-NvUkKGQDvvSuM1wzajHqmxJnvqL4.cache b/T5/tmp/cache/assets/sprockets/v3.0/cz/czwnYKW3iuugnJ-NvUkKGQDvvSuM1wzajHqmxJnvqL4.cache new file mode 100644 index 0000000000000000000000000000000000000000..e304c3ac13117943a718922bf3e350656bed4c18 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/cz/czwnYKW3iuugnJ-NvUkKGQDvvSuM1wzajHqmxJnvqL4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/d3/d3QJdeA4ROGmPCTsScy7QxyV1Ip_zQaqwcmnPA34MQk.cache b/T5/tmp/cache/assets/sprockets/v3.0/d3/d3QJdeA4ROGmPCTsScy7QxyV1Ip_zQaqwcmnPA34MQk.cache new file mode 100644 index 0000000000000000000000000000000000000000..2b3a5c2b9b63a177e201c60361c7e050c4149ed8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/d3/d3QJdeA4ROGmPCTsScy7QxyV1Ip_zQaqwcmnPA34MQk.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/developers.scss?type=text/css&pipeline=self&id=160f530193c5c2e4b01ba4e94ab69efb5d7e3ffd66a84a02ad574bb66447647b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/d7/d7vE_Fsc-Wv5vK6SSw1WHn0r6ej7UMfilOljxd1JjsI.cache b/T5/tmp/cache/assets/sprockets/v3.0/d7/d7vE_Fsc-Wv5vK6SSw1WHn0r6ej7UMfilOljxd1JjsI.cache new file mode 100644 index 0000000000000000000000000000000000000000..cfec4041d7081ec3689c122266793313e3254006 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/d7/d7vE_Fsc-Wv5vK6SSw1WHn0r6ej7UMfilOljxd1JjsI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/d8/d8RmbwZSBWsRCEeAhmlLCWXMCytI0BxgHGq0oqdED2E.cache b/T5/tmp/cache/assets/sprockets/v3.0/d8/d8RmbwZSBWsRCEeAhmlLCWXMCytI0BxgHGq0oqdED2E.cache new file mode 100644 index 0000000000000000000000000000000000000000..139cc81dc8cb1d1d6049a933e494b3e67951e5a0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/d8/d8RmbwZSBWsRCEeAhmlLCWXMCytI0BxgHGq0oqdED2E.cache @@ -0,0 +1 @@ +"%\†³{þxØwÓícà'¨ž_*]×]¦Pë™Y \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/d8/d8cFAqr0scXDNWni4FusgTnagk4q87cR89jiLMbhKXE.cache b/T5/tmp/cache/assets/sprockets/v3.0/d8/d8cFAqr0scXDNWni4FusgTnagk4q87cR89jiLMbhKXE.cache new file mode 100644 index 0000000000000000000000000000000000000000..df47a22c4f340b999579201a33abd3017304b264 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/d8/d8cFAqr0scXDNWni4FusgTnagk4q87cR89jiLMbhKXE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dC/dCGWfwuG9jBbDYmI3r81bPa78Uf54VxByGo2JU_3BhI.cache b/T5/tmp/cache/assets/sprockets/v3.0/dC/dCGWfwuG9jBbDYmI3r81bPa78Uf54VxByGo2JU_3BhI.cache new file mode 100644 index 0000000000000000000000000000000000000000..7985c363abd2330a162cf4ce753f030d31ea65e5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/dC/dCGWfwuG9jBbDYmI3r81bPa78Uf54VxByGo2JU_3BhI.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/safe-blur.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dL/dLk7VlJCplrNBRj6jwCdcs6NlM0kJJwux5WgER-3TLE.cache b/T5/tmp/cache/assets/sprockets/v3.0/dL/dLk7VlJCplrNBRj6jwCdcs6NlM0kJJwux5WgER-3TLE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f1366d6beeb967fef9b35f485f038dba6393c2ce Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/dL/dLk7VlJCplrNBRj6jwCdcs6NlM0kJJwux5WgER-3TLE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dg/dgPvnRODJVdFkJV6vM1_78p98JP_AvxIQ_X9oWSfKPU.cache b/T5/tmp/cache/assets/sprockets/v3.0/dg/dgPvnRODJVdFkJV6vM1_78p98JP_AvxIQ_X9oWSfKPU.cache new file mode 100644 index 0000000000000000000000000000000000000000..18dc8f04155e4f9dd8e829f3491437f34cbc6881 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/dg/dgPvnRODJVdFkJV6vM1_78p98JP_AvxIQ_X9oWSfKPU.cache @@ -0,0 +1 @@ +"%úŒýî—Ö¶Ÿ,ޱT(ò©¡‹W.ò&٣ɯ1Â6 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dh/dha0hS4RCFi4m2Eoe2ccYuHvHRL7d2eeLEHyw8l7azU.cache b/T5/tmp/cache/assets/sprockets/v3.0/dh/dha0hS4RCFi4m2Eoe2ccYuHvHRL7d2eeLEHyw8l7azU.cache new file mode 100644 index 0000000000000000000000000000000000000000..54f6f05b2060a6013de783633251c00e94cf42eb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/dh/dha0hS4RCFi4m2Eoe2ccYuHvHRL7d2eeLEHyw8l7azU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dh/dhgmqQZjrwqvrKIoMBi2G7RTkMZNzUZjuucrrQyhc6Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/dh/dhgmqQZjrwqvrKIoMBi2G7RTkMZNzUZjuucrrQyhc6Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..b01e25fe6023991be739e7c38c9226029e7cc567 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/dh/dhgmqQZjrwqvrKIoMBi2G7RTkMZNzUZjuucrrQyhc6Y.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/dm/dmekT9Znntnn4Zh0Tw6_0Nh0Rpq0y_SDqqzprCrm7fc.cache b/T5/tmp/cache/assets/sprockets/v3.0/dm/dmekT9Znntnn4Zh0Tw6_0Nh0Rpq0y_SDqqzprCrm7fc.cache new file mode 100644 index 0000000000000000000000000000000000000000..f49b0e80f3aa05a99474360e235cb8a1bb4d2686 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/dm/dmekT9Znntnn4Zh0Tw6_0Nh0Rpq0y_SDqqzprCrm7fc.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/home.coffee?type=application/javascript&pipeline=self&id=405550d3e19933b57039a0bacb95418c5ece9468945e6b51a7068129d0940b80:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/do/do0A4UEn-xG3MPIcJ26EAiUO6QKLoOPJ2DYKb-3mOqw.cache b/T5/tmp/cache/assets/sprockets/v3.0/do/do0A4UEn-xG3MPIcJ26EAiUO6QKLoOPJ2DYKb-3mOqw.cache new file mode 100644 index 0000000000000000000000000000000000000000..d2247319c1706b0484ff34d0fc5ae1def4aedd9d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/do/do0A4UEn-xG3MPIcJ26EAiUO6QKLoOPJ2DYKb-3mOqw.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=9c4c37a91aefc84fe03436580213f82094e34a0ab1a1dd7afc8475c64fc00863:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/eC/eCPQ5mALYXB3_EK3QMXCKre9TUs2CAzXcOQJenM8wko.cache b/T5/tmp/cache/assets/sprockets/v3.0/eC/eCPQ5mALYXB3_EK3QMXCKre9TUs2CAzXcOQJenM8wko.cache new file mode 100644 index 0000000000000000000000000000000000000000..aa41a2ba2d1916b4b47410160cdea756bd08e8c2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/eC/eCPQ5mALYXB3_EK3QMXCKre9TUs2CAzXcOQJenM8wko.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/eT/eTWD0LVv94_1Nm13039Z7vDc8rYbz6m4NgyPgM5tsFQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/eT/eTWD0LVv94_1Nm13039Z7vDc8rYbz6m4NgyPgM5tsFQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..b75dd0a10e4afa1226f4e6bc09686aec68942bdf Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/eT/eTWD0LVv94_1Nm13039Z7vDc8rYbz6m4NgyPgM5tsFQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/eT/eT_RC4aPSt78sabWy3qtdeYb2lIO1ofB3CkuLBGDdAs.cache b/T5/tmp/cache/assets/sprockets/v3.0/eT/eT_RC4aPSt78sabWy3qtdeYb2lIO1ofB3CkuLBGDdAs.cache new file mode 100644 index 0000000000000000000000000000000000000000..72d839767e77a905a2a893852202367487fdd4f0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/eT/eT_RC4aPSt78sabWy3qtdeYb2lIO1ofB3CkuLBGDdAs.cache @@ -0,0 +1 @@ +"%±ÿדõX"šòV9i$'OûìwÈqB󾑕B)“8 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/eW/eWcYbh1Hh9ivwGx5ngt27sdF3IkbJdRq4GgkFjEJjmw.cache b/T5/tmp/cache/assets/sprockets/v3.0/eW/eWcYbh1Hh9ivwGx5ngt27sdF3IkbJdRq4GgkFjEJjmw.cache new file mode 100644 index 0000000000000000000000000000000000000000..7c3cb9ae9f315daa9216ee6785f18638a7459c44 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/eW/eWcYbh1Hh9ivwGx5ngt27sdF3IkbJdRq4GgkFjEJjmw.cache @@ -0,0 +1 @@ +"%z¦0£ë'• ªì0æ¥×qQ¹ ű~íÌÂ7J ‘ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ea/eahXyKt-gV1baotIqFDyvtv9QBBniNOS5tpFSZcO0uc.cache b/T5/tmp/cache/assets/sprockets/v3.0/ea/eahXyKt-gV1baotIqFDyvtv9QBBniNOS5tpFSZcO0uc.cache new file mode 100644 index 0000000000000000000000000000000000000000..bf77fe410acc31b50c98b4a7d42c8928eeacd806 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ea/eahXyKt-gV1baotIqFDyvtv9QBBniNOS5tpFSZcO0uc.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=a7c41b5fa1f2c6704f6c77d5472381ab179917626bd2a24bf0f2ed8560053d06:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ed/edUPD5wBN2YJ3NQNlrp5OEq3ShZIEnp6MlNqv4yyPPI.cache b/T5/tmp/cache/assets/sprockets/v3.0/ed/edUPD5wBN2YJ3NQNlrp5OEq3ShZIEnp6MlNqv4yyPPI.cache new file mode 100644 index 0000000000000000000000000000000000000000..04bb1ec795843047e33dbc6cb720decba682b6c5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ed/edUPD5wBN2YJ3NQNlrp5OEq3ShZIEnp6MlNqv4yyPPI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ed/edvN0GMLgAxO7hZLT2_8sSmhq0Ydoo8n4UgjXQz4_Lg.cache b/T5/tmp/cache/assets/sprockets/v3.0/ed/edvN0GMLgAxO7hZLT2_8sSmhq0Ydoo8n4UgjXQz4_Lg.cache new file mode 100644 index 0000000000000000000000000000000000000000..b1ceb302a2da04016ade74cdb7e6a99d4d9ffd2c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ed/edvN0GMLgAxO7hZLT2_8sSmhq0Ydoo8n4UgjXQz4_Lg.cache @@ -0,0 +1 @@ +"%’£‹|}јþÉäƒ7ÝŒ¶þèƒCÌO…GVÅGåWð \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ek/ekqYtXQtMC742WR3RU2rJbLBAk9BE6lgawmOiguNzH4.cache b/T5/tmp/cache/assets/sprockets/v3.0/ek/ekqYtXQtMC742WR3RU2rJbLBAk9BE6lgawmOiguNzH4.cache new file mode 100644 index 0000000000000000000000000000000000000000..1a2579d03daf2081d994ce2517b140010e5867b5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ek/ekqYtXQtMC742WR3RU2rJbLBAk9BE6lgawmOiguNzH4.cache @@ -0,0 +1 @@ +"%ŒfCöòÄý[Çðš"¬{ÏBfa…m>Ñê^áÇ[ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ex/exG1ccbWG0yXry7e-tu8a6x2NNNmj5Elimy5Ubra3aw.cache b/T5/tmp/cache/assets/sprockets/v3.0/ex/exG1ccbWG0yXry7e-tu8a6x2NNNmj5Elimy5Ubra3aw.cache new file mode 100644 index 0000000000000000000000000000000000000000..22ed43a221426760c825ca4e7e647c0096b93ecb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ex/exG1ccbWG0yXry7e-tu8a6x2NNNmj5Elimy5Ubra3aw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ex/expBYsRww9rz0zpICKSOWhGbYSIcYvt4zqZ0zoWCBlw.cache b/T5/tmp/cache/assets/sprockets/v3.0/ex/expBYsRww9rz0zpICKSOWhGbYSIcYvt4zqZ0zoWCBlw.cache new file mode 100644 index 0000000000000000000000000000000000000000..20c957bd7edecc935b9877728cfd72101c878687 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ex/expBYsRww9rz0zpICKSOWhGbYSIcYvt4zqZ0zoWCBlw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/f4/f45OQ52_NUFsS_0Q0WPXPRKDptcPS46ebJUPnYzDjCI.cache b/T5/tmp/cache/assets/sprockets/v3.0/f4/f45OQ52_NUFsS_0Q0WPXPRKDptcPS46ebJUPnYzDjCI.cache new file mode 100644 index 0000000000000000000000000000000000000000..bab6af1329d66c9765aca596c516c732baeb8049 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/f4/f45OQ52_NUFsS_0Q0WPXPRKDptcPS46ebJUPnYzDjCI.cache @@ -0,0 +1 @@ +"%Í´SÈUÓ¸ÚrÐ'^M i{™ÍXVÎÀK‹Î)Bæ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fC/fCODexI9IG5DzKLg4szO1OP4awYWTkZmADZxPhqPcno.cache b/T5/tmp/cache/assets/sprockets/v3.0/fC/fCODexI9IG5DzKLg4szO1OP4awYWTkZmADZxPhqPcno.cache new file mode 100644 index 0000000000000000000000000000000000000000..0f01ef5d530dc7b715aff20e927dabcfd29abdd2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fC/fCODexI9IG5DzKLg4szO1OP4awYWTkZmADZxPhqPcno.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fC/fCdHM25R5RNEw13qCAJAWhy-HjSeNis4Lr4XMmdcbzo.cache b/T5/tmp/cache/assets/sprockets/v3.0/fC/fCdHM25R5RNEw13qCAJAWhy-HjSeNis4Lr4XMmdcbzo.cache new file mode 100644 index 0000000000000000000000000000000000000000..9039d157406dabe7a175f985adeff92d0c2e54ea Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fC/fCdHM25R5RNEw13qCAJAWhy-HjSeNis4Lr4XMmdcbzo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fG/fG5gudP4WILe3HOUPsdcnKMtpxoNmU1ShRY3jdT3o60.cache b/T5/tmp/cache/assets/sprockets/v3.0/fG/fG5gudP4WILe3HOUPsdcnKMtpxoNmU1ShRY3jdT3o60.cache new file mode 100644 index 0000000000000000000000000000000000000000..c990a2f67464d34d5716c342acda957791b88dcb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fG/fG5gudP4WILe3HOUPsdcnKMtpxoNmU1ShRY3jdT3o60.cache @@ -0,0 +1 @@ +I"Î/home/wellington/.rvm/gems/ruby-2.5.0/gems/actioncable-5.1.5/lib/assets/compiled/action_cable.js?type=application/javascript&pipeline=self&id=b60412d581c67f6c74979e3ed238679c2c337703bb1d76b00003a09645702172:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fO/fODvD68mwR4Nj9fsXydLjgJXp_j4Vn9RsOPnIsCyglw.cache b/T5/tmp/cache/assets/sprockets/v3.0/fO/fODvD68mwR4Nj9fsXydLjgJXp_j4Vn9RsOPnIsCyglw.cache new file mode 100644 index 0000000000000000000000000000000000000000..ff9124f98473a6c22545d2ba3dc13516eb86d718 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fO/fODvD68mwR4Nj9fsXydLjgJXp_j4Vn9RsOPnIsCyglw.cache @@ -0,0 +1 @@ +"%ÜDùš¶ #+ÌàR=¶Íý–ìÏÕï@7‘˜ì|( \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fP/fPJTyyfXldY3EPJGvGr1xTSaHFA5bTHJtV33im0YIM8.cache b/T5/tmp/cache/assets/sprockets/v3.0/fP/fPJTyyfXldY3EPJGvGr1xTSaHFA5bTHJtV33im0YIM8.cache new file mode 100644 index 0000000000000000000000000000000000000000..f0f416726d60e7a5292a5ac3291a335292774307 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fP/fPJTyyfXldY3EPJGvGr1xTSaHFA5bTHJtV33im0YIM8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fT/fTKVr1s-cSqXFucEGXTFXCRhb4A4ywIAzeFPITgEn8c.cache b/T5/tmp/cache/assets/sprockets/v3.0/fT/fTKVr1s-cSqXFucEGXTFXCRhb4A4ywIAzeFPITgEn8c.cache new file mode 100644 index 0000000000000000000000000000000000000000..ae8911d4ec26a9ad04c83a3b9b59e7e462704f7b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fT/fTKVr1s-cSqXFucEGXTFXCRhb4A4ywIAzeFPITgEn8c.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fU/fU_fwHTF0giZa7e0WzoFsy7NeVIzKhZDEIjo54gQCoA.cache b/T5/tmp/cache/assets/sprockets/v3.0/fU/fU_fwHTF0giZa7e0WzoFsy7NeVIzKhZDEIjo54gQCoA.cache new file mode 100644 index 0000000000000000000000000000000000000000..2085aa14a735d3b556d9a4a86f59147654992bff --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fU/fU_fwHTF0giZa7e0WzoFsy7NeVIzKhZDEIjo54gQCoA.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/developers.coffee?type=application/javascript&pipeline=self&id=0238857affcbec04a13895dcacfa868cfd635ef52fe02fead2f5bfb0c24fab7e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fU/fUaxqA2Pd4fjKx1m-pQKhwLZGVE5M5SYYlp6R2Vdj_k.cache b/T5/tmp/cache/assets/sprockets/v3.0/fU/fUaxqA2Pd4fjKx1m-pQKhwLZGVE5M5SYYlp6R2Vdj_k.cache new file mode 100644 index 0000000000000000000000000000000000000000..8d091705e290f29d64ff1d854bae925d8bab6212 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fU/fUaxqA2Pd4fjKx1m-pQKhwLZGVE5M5SYYlp6R2Vdj_k.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=94ac3f5b276a6e85b7491f0e01177ec1effe1f7236a40deb881465a60ee7e9aa:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fX/fXvfhxYo8kgV68ngbveNMf_DymNdWeWa6y058aTryPE.cache b/T5/tmp/cache/assets/sprockets/v3.0/fX/fXvfhxYo8kgV68ngbveNMf_DymNdWeWa6y058aTryPE.cache new file mode 100644 index 0000000000000000000000000000000000000000..602a88149be81d87c86135963b44ff8891b7b9e8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fX/fXvfhxYo8kgV68ngbveNMf_DymNdWeWa6y058aTryPE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fa/faZnPzWXC74zqQZ-_ITv5dH8nJKNJEbiScS_2JqHqqo.cache b/T5/tmp/cache/assets/sprockets/v3.0/fa/faZnPzWXC74zqQZ-_ITv5dH8nJKNJEbiScS_2JqHqqo.cache new file mode 100644 index 0000000000000000000000000000000000000000..e1d6ac678bab379e408706bd6d739598d1f61f07 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fa/faZnPzWXC74zqQZ-_ITv5dH8nJKNJEbiScS_2JqHqqo.cache @@ -0,0 +1 @@ +I"å/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/datepicker.js?type=application/javascript&pipeline=self&id=fe5fe373383ff6b1f0550b178d54d8d050d89696e404ad2d91ba0efe9484af18:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fh/fh2PTEudT-qefhfRb9Ix40A5aytMjnCwzH1aghkYmo0.cache b/T5/tmp/cache/assets/sprockets/v3.0/fh/fh2PTEudT-qefhfRb9Ix40A5aytMjnCwzH1aghkYmo0.cache new file mode 100644 index 0000000000000000000000000000000000000000..7ecd1e88fb5574f53ae0d2e8a2a931f896b63b6f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fh/fh2PTEudT-qefhfRb9Ix40A5aytMjnCwzH1aghkYmo0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fj/fjsJeYcUen34Hf93gtCgNJzQikucdd6hAkY-f1XEut4.cache b/T5/tmp/cache/assets/sprockets/v3.0/fj/fjsJeYcUen34Hf93gtCgNJzQikucdd6hAkY-f1XEut4.cache new file mode 100644 index 0000000000000000000000000000000000000000..e5ca7a4c5c6557f0afd7424e21df783f458c36ed Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/fj/fjsJeYcUen34Hf93gtCgNJzQikucdd6hAkY-f1XEut4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/fx/fxW1RU3Z1bfC08ZW1_FvxBZg9zZtV4REBeeXaS4zW2Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/fx/fxW1RU3Z1bfC08ZW1_FvxBZg9zZtV4REBeeXaS4zW2Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..5d8b88cbb1482454e48c2f01041927e537bf764a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/fx/fxW1RU3Z1bfC08ZW1_FvxBZg9zZtV4REBeeXaS4zW2Q.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=b3eca247154bab49696d59ef79cab1b88a83212b9916b0ca7ad8281478ec4bab:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/g4/g4c5nD2TSaOsb3q-ehQiRfGceu68Q_Lb4Ka8Y-zIqqs.cache b/T5/tmp/cache/assets/sprockets/v3.0/g4/g4c5nD2TSaOsb3q-ehQiRfGceu68Q_Lb4Ka8Y-zIqqs.cache new file mode 100644 index 0000000000000000000000000000000000000000..09da1675f943dbab366b4af36c0af994457cdb55 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/g4/g4c5nD2TSaOsb3q-ehQiRfGceu68Q_Lb4Ka8Y-zIqqs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/g5/g5A2jSKcdZntXkvdUker64pdbA7LCnMuy11xaMU9P6k.cache b/T5/tmp/cache/assets/sprockets/v3.0/g5/g5A2jSKcdZntXkvdUker64pdbA7LCnMuy11xaMU9P6k.cache new file mode 100644 index 0000000000000000000000000000000000000000..d4a1f69cb5fd77244252740c6c94c6fc39573ebe --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/g5/g5A2jSKcdZntXkvdUker64pdbA7LCnMuy11xaMU9P6k.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-fade.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gK/gKmaUL9npOkOf09gcZkrd9ODFpTrG82glEwV37wZkOw.cache b/T5/tmp/cache/assets/sprockets/v3.0/gK/gKmaUL9npOkOf09gcZkrd9ODFpTrG82glEwV37wZkOw.cache new file mode 100644 index 0000000000000000000000000000000000000000..dbfef70f933c37269b8a06acf68d7a15826aa278 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/gK/gKmaUL9npOkOf09gcZkrd9ODFpTrG82glEwV37wZkOw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gU/gUXcOFPwO5AmG6-0sT7qjj5n0g9iPfdNEyaK_Mxd7n8.cache b/T5/tmp/cache/assets/sprockets/v3.0/gU/gUXcOFPwO5AmG6-0sT7qjj5n0g9iPfdNEyaK_Mxd7n8.cache new file mode 100644 index 0000000000000000000000000000000000000000..847c5e40774f7d19cfce8f632ddea8c2b5c92535 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/gU/gUXcOFPwO5AmG6-0sT7qjj5n0g9iPfdNEyaK_Mxd7n8.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=55511145df9b8d128767b42b765880dc761927d1730e8892ccc138b230fa8e69:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gW/gWnJAjRG8HnhW0p3X0B30Ow7AwBonOaf-5TbIbqXOkU.cache b/T5/tmp/cache/assets/sprockets/v3.0/gW/gWnJAjRG8HnhW0p3X0B30Ow7AwBonOaf-5TbIbqXOkU.cache new file mode 100644 index 0000000000000000000000000000000000000000..a1de82cc407645cf0d30965c2f2be14f8edfd100 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/gW/gWnJAjRG8HnhW0p3X0B30Ow7AwBonOaf-5TbIbqXOkU.cache @@ -0,0 +1 @@ +I"‘app/assets/javascripts/games.coffee?type=application/javascript&pipeline=self&id=e1aaedb7e06dc4f72a7473eca9debd5a9d1b7d2928c2380e802da0719ae9cb5e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gY/gYPiU9VKB6bFNjQXPxNM4IR4jlTFXZhWo1a6wxfmm8U.cache b/T5/tmp/cache/assets/sprockets/v3.0/gY/gYPiU9VKB6bFNjQXPxNM4IR4jlTFXZhWo1a6wxfmm8U.cache new file mode 100644 index 0000000000000000000000000000000000000000..079ecc1780786017c5531859f4822da7215d5854 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/gY/gYPiU9VKB6bFNjQXPxNM4IR4jlTFXZhWo1a6wxfmm8U.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/g_/g_un7L9oJnipDVqyEYjdVmj5JKT484Q5LTZ1PwWRsPM.cache b/T5/tmp/cache/assets/sprockets/v3.0/g_/g_un7L9oJnipDVqyEYjdVmj5JKT484Q5LTZ1PwWRsPM.cache new file mode 100644 index 0000000000000000000000000000000000000000..feedd200e96e40a96911713f2522c5f480ca644b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/g_/g_un7L9oJnipDVqyEYjdVmj5JKT484Q5LTZ1PwWRsPM.cache @@ -0,0 +1 @@ +I"Õ/home/wellington/.rvm/gems/ruby-2.5.0/gems/turbolinks-source-5.1.0/lib/assets/javascripts/turbolinks.js?type=application/javascript&pipeline=self&id=4a2e0a38be3a71927197da41edf6774e35e02df8596a3fa9823790bb504c58df:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gc/gcFIJ2TaWNAYEMkxhRvY12KsAyS9EQ-J2N5eM1vOE8c.cache b/T5/tmp/cache/assets/sprockets/v3.0/gc/gcFIJ2TaWNAYEMkxhRvY12KsAyS9EQ-J2N5eM1vOE8c.cache new file mode 100644 index 0000000000000000000000000000000000000000..5edd2239e4c77c6ed2a00e83886fd135d78e60ae --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/gc/gcFIJ2TaWNAYEMkxhRvY12KsAyS9EQ-J2N5eM1vOE8c.cache @@ -0,0 +1 @@ +"%x5™·ÆÉX|‹Bvad,+?#Wj½EJ Ncr)@¦ Û \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gc/gcPpuYbluIlRLuYlPvq5HcymSfFOBpVlpVC9Eduv3xw.cache b/T5/tmp/cache/assets/sprockets/v3.0/gc/gcPpuYbluIlRLuYlPvq5HcymSfFOBpVlpVC9Eduv3xw.cache new file mode 100644 index 0000000000000000000000000000000000000000..c3d38925c04ac3c9925690cf429483d64c27a01b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/gc/gcPpuYbluIlRLuYlPvq5HcymSfFOBpVlpVC9Eduv3xw.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}1I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"„file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/accordion.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"6file-digest://app/assets/config/jquery-ui/keycode;TTI"6file-digest://app/assets/images/jquery-ui/keycode;TTI";file-digest://app/assets/javascripts/jquery-ui/keycode;TTI";file-digest://app/assets/stylesheets/jquery-ui/keycode;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/keycode;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/keycode;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode.js;TTI"8file-digest://app/assets/config/jquery-ui/unique-id;TTI"8file-digest://app/assets/images/jquery-ui/unique-id;TTI"=file-digest://app/assets/javascripts/jquery-ui/unique-id;TTI"=file-digest://app/assets/stylesheets/jquery-ui/unique-id;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/unique-id;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/unique-id;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/unique-id;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/unique-id.js;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ge/geU84kRivVI_wHebBlBUc7gqXQb8Aji6OFEwOVhyiQE.cache b/T5/tmp/cache/assets/sprockets/v3.0/ge/geU84kRivVI_wHebBlBUc7gqXQb8Aji6OFEwOVhyiQE.cache new file mode 100644 index 0000000000000000000000000000000000000000..7c897f40132daead0ea975f5e89324a07353b088 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ge/geU84kRivVI_wHebBlBUc7gqXQb8Aji6OFEwOVhyiQE.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/developers.coffee?type=application/javascript&pipeline=self&id=b80dadadaa3efdee02aec61b2501cea3ce28fce518282b249e0e8779421f2052:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gg/ggSqHymNytyPmluOKhenFa0onTE8R2Wg1XZuKBFOn5Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/gg/ggSqHymNytyPmluOKhenFa0onTE8R2Wg1XZuKBFOn5Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..5f48b533513c0dda880f202238ba1c8dc716bc09 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/gg/ggSqHymNytyPmluOKhenFa0onTE8R2Wg1XZuKBFOn5Y.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/go/gokFs5vFO_BiSL69S2QF-xFYDtyWGB4PwqMuKtiYe_c.cache b/T5/tmp/cache/assets/sprockets/v3.0/go/gokFs5vFO_BiSL69S2QF-xFYDtyWGB4PwqMuKtiYe_c.cache new file mode 100644 index 0000000000000000000000000000000000000000..63bad3397f75f9816fcfe73b37297ff5d6898db4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/go/gokFs5vFO_BiSL69S2QF-xFYDtyWGB4PwqMuKtiYe_c.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gr/gr-L1ibubQFqsyFQJLStdu0qT5T4vEYdyPTBy-eIVEE.cache b/T5/tmp/cache/assets/sprockets/v3.0/gr/gr-L1ibubQFqsyFQJLStdu0qT5T4vEYdyPTBy-eIVEE.cache new file mode 100644 index 0000000000000000000000000000000000000000..9df19caba36eb119e8a2882e05b688421385d02c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/gr/gr-L1ibubQFqsyFQJLStdu0qT5T4vEYdyPTBy-eIVEE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gs/gsTyvI21HjGbcPRsNCMGCnQQ30-KB2qZUQKoqB-6s8A.cache b/T5/tmp/cache/assets/sprockets/v3.0/gs/gsTyvI21HjGbcPRsNCMGCnQQ30-KB2qZUQKoqB-6s8A.cache new file mode 100644 index 0000000000000000000000000000000000000000..2b36ab83913f19f3f29a887f2711f5d510c91381 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/gs/gsTyvI21HjGbcPRsNCMGCnQQ30-KB2qZUQKoqB-6s8A.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/gt/gt8wSdJJEY1Dco9rkmFHPrIZbAlRprgwA4AKFSBkEHo.cache b/T5/tmp/cache/assets/sprockets/v3.0/gt/gt8wSdJJEY1Dco9rkmFHPrIZbAlRprgwA4AKFSBkEHo.cache new file mode 100644 index 0000000000000000000000000000000000000000..8b5d519c6166f8a49c037cbf741a671da59dfc20 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/gt/gt8wSdJJEY1Dco9rkmFHPrIZbAlRprgwA4AKFSBkEHo.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=91cda34b41275df4453dbb3429b6222b2b0dcef9604c3c3d27915cb02f0d8579:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/h2/h2rTAhWjvbS6GKnFP6gNBNo5O6JoW6VhU_E6rmzOzu0.cache b/T5/tmp/cache/assets/sprockets/v3.0/h2/h2rTAhWjvbS6GKnFP6gNBNo5O6JoW6VhU_E6rmzOzu0.cache new file mode 100644 index 0000000000000000000000000000000000000000..a71011ad06b7341ee096ffb3683af72ece65bf2c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/h2/h2rTAhWjvbS6GKnFP6gNBNo5O6JoW6VhU_E6rmzOzu0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/h4/h425-Hnajxf08734kYJgfutn4Y3_qcVLlMEWedqqW3A.cache b/T5/tmp/cache/assets/sprockets/v3.0/h4/h425-Hnajxf08734kYJgfutn4Y3_qcVLlMEWedqqW3A.cache new file mode 100644 index 0000000000000000000000000000000000000000..10b158107f254f67de8d3ad35d3abdb194e3e07c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/h4/h425-Hnajxf08734kYJgfutn4Y3_qcVLlMEWedqqW3A.cache @@ -0,0 +1 @@ +I"é/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-explode.js?type=application/javascript&pipeline=self&id=df281da34726b26b11114b84368ae80ad33569de54cd9749e4155a673b44b2d3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hE/hEi-XIK_7A-D6V8vOo9UqmJZ-i3bJ2hl2RyCy-KL958.cache b/T5/tmp/cache/assets/sprockets/v3.0/hE/hEi-XIK_7A-D6V8vOo9UqmJZ-i3bJ2hl2RyCy-KL958.cache new file mode 100644 index 0000000000000000000000000000000000000000..601e468cffa6f3b14921c4b5713af035c939b09e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/hE/hEi-XIK_7A-D6V8vOo9UqmJZ-i3bJ2hl2RyCy-KL958.cache @@ -0,0 +1 @@ +"%·:ƒœQŽ ÿ™ìj …ëŸ'Žmãö´‰oF‡$§n \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hH/hHvw44LFhkPw70JWN5xj7MYVRFOLqSM6le6zc4I2yzc.cache b/T5/tmp/cache/assets/sprockets/v3.0/hH/hHvw44LFhkPw70JWN5xj7MYVRFOLqSM6le6zc4I2yzc.cache new file mode 100644 index 0000000000000000000000000000000000000000..29508e80561403669379fff8999e12b5a8a4aaec --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/hH/hHvw44LFhkPw70JWN5xj7MYVRFOLqSM6le6zc4I2yzc.cache @@ -0,0 +1 @@ +"%¢qdFJ—¯LÁK^9ìÊÚ¸°«ô¹v¼«?‘ìo; \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hN/hN7Eq9ZEH9qt-NQRjr9_D72lTjEEKK2euzYzlgwYCjo.cache b/T5/tmp/cache/assets/sprockets/v3.0/hN/hN7Eq9ZEH9qt-NQRjr9_D72lTjEEKK2euzYzlgwYCjo.cache new file mode 100644 index 0000000000000000000000000000000000000000..8591d8052b7cb422091f3382aa54a0eafef6d4d4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/hN/hN7Eq9ZEH9qt-NQRjr9_D72lTjEEKK2euzYzlgwYCjo.cache @@ -0,0 +1 @@ +"%“v%uaÏLí³q_teälè¢Þ¯AGÖ)Û½Üá \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hY/hYt3h_Y0QL7YXPhE4swBzbD2-EvdlI4ZxzNCU-Ee_VA.cache b/T5/tmp/cache/assets/sprockets/v3.0/hY/hYt3h_Y0QL7YXPhE4swBzbD2-EvdlI4ZxzNCU-Ee_VA.cache new file mode 100644 index 0000000000000000000000000000000000000000..045c2400afb532ab076bc85192f30b676495a142 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/hY/hYt3h_Y0QL7YXPhE4swBzbD2-EvdlI4ZxzNCU-Ee_VA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/h_/h_-WWE1jH2ipGwR0NJ-sCZnZ4O6Wlru7EHxqFlL9jtE.cache b/T5/tmp/cache/assets/sprockets/v3.0/h_/h_-WWE1jH2ipGwR0NJ-sCZnZ4O6Wlru7EHxqFlL9jtE.cache new file mode 100644 index 0000000000000000000000000000000000000000..be93afe865f552c7defbf1457772fe7ff8cc1cb0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/h_/h_-WWE1jH2ipGwR0NJ-sCZnZ4O6Wlru7EHxqFlL9jtE.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=4c675293c9564072cd86852488a9f3f0cc22eb7c25d78ffa31e0eff263c70992:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/he/heXcv3bg8_-vXHlELWwy-uBMrxtxwUWWWA_7R20-6FA.cache b/T5/tmp/cache/assets/sprockets/v3.0/he/heXcv3bg8_-vXHlELWwy-uBMrxtxwUWWWA_7R20-6FA.cache new file mode 100644 index 0000000000000000000000000000000000000000..5fe7d1aa529078ef5aabe2b41412951f7dd7b548 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/he/heXcv3bg8_-vXHlELWwy-uBMrxtxwUWWWA_7R20-6FA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hg/hgFoZE5mwBgownajPvQX551v4nq0u7hILbD2gEnfhqE.cache b/T5/tmp/cache/assets/sprockets/v3.0/hg/hgFoZE5mwBgownajPvQX551v4nq0u7hILbD2gEnfhqE.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/hg/hgFoZE5mwBgownajPvQX551v4nq0u7hILbD2gEnfhqE.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/hr/hroLKXNr6xAM_AWpsr0OXwkey4cvMATt30Km-jFiKZM.cache b/T5/tmp/cache/assets/sprockets/v3.0/hr/hroLKXNr6xAM_AWpsr0OXwkey4cvMATt30Km-jFiKZM.cache new file mode 100644 index 0000000000000000000000000000000000000000..99c6beefc829c9c3111efbf004c8bf10b0c2416e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/hr/hroLKXNr6xAM_AWpsr0OXwkey4cvMATt30Km-jFiKZM.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‚file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/i4/i4Xt1_HsayS_Tz87NZsEIodORQ1lYiqmuHZUuf2tikI.cache b/T5/tmp/cache/assets/sprockets/v3.0/i4/i4Xt1_HsayS_Tz87NZsEIodORQ1lYiqmuHZUuf2tikI.cache new file mode 100644 index 0000000000000000000000000000000000000000..e617d6d045fae0e3655152115d038ac3bd4e30d3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/i4/i4Xt1_HsayS_Tz87NZsEIodORQ1lYiqmuHZUuf2tikI.cache @@ -0,0 +1,2 @@ +"%aM8«(A˜ý/xP½3õ›èàêÁ94g` +•\[ìÄ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/i8/i8_bgZdbq9Y_KYU5_VGVoC2P8-_hCBKKBXMhKUCbCmY.cache b/T5/tmp/cache/assets/sprockets/v3.0/i8/i8_bgZdbq9Y_KYU5_VGVoC2P8-_hCBKKBXMhKUCbCmY.cache new file mode 100644 index 0000000000000000000000000000000000000000..c81af1897331949b5ece56a76664c14b74bd6ae2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/i8/i8_bgZdbq9Y_KYU5_VGVoC2P8-_hCBKKBXMhKUCbCmY.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=4698650bb822ebabd15ac320027d8cff830a79ef1e6a8e5d85e8872a239e536a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iE/iEgPBCJTQjnpVAWXStCYwOvRlZFlJ0AlnecUywCmVck.cache b/T5/tmp/cache/assets/sprockets/v3.0/iE/iEgPBCJTQjnpVAWXStCYwOvRlZFlJ0AlnecUywCmVck.cache new file mode 100644 index 0000000000000000000000000000000000000000..5759eebc8e67d539afa5cd55c42cc3e507544dd8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/iE/iEgPBCJTQjnpVAWXStCYwOvRlZFlJ0AlnecUywCmVck.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=6f8e5c43a9d32df38364bc3337faccade842cd9ff4889fd51e457e0426ff2d7b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iF/iFZJCLLQ9GEUIZgS973OcUvDbiqsEolQ9BONqnGwofA.cache b/T5/tmp/cache/assets/sprockets/v3.0/iF/iFZJCLLQ9GEUIZgS973OcUvDbiqsEolQ9BONqnGwofA.cache new file mode 100644 index 0000000000000000000000000000000000000000..183233cb01ae57d16bc39b49e6c3184c566e323e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/iF/iFZJCLLQ9GEUIZgS973OcUvDbiqsEolQ9BONqnGwofA.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=aad33fd4940268225b5df30afdabbd492da84035056a85a00ad3fdcb95011065:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iF/iFuNLm8Ksi_Y4g0EXIQdpylHwRAcNFtKV4pAU3RvLsE.cache b/T5/tmp/cache/assets/sprockets/v3.0/iF/iFuNLm8Ksi_Y4g0EXIQdpylHwRAcNFtKV4pAU3RvLsE.cache new file mode 100644 index 0000000000000000000000000000000000000000..6821649f95d16e47ebcd126e2efb97a925ea4d45 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/iF/iFuNLm8Ksi_Y4g0EXIQdpylHwRAcNFtKV4pAU3RvLsE.cache @@ -0,0 +1 @@ +I"Ù/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/labels.js?type=application/javascript&pipeline=self&id=c396d1c06231a99e5246e2bdb04f76400ae78aac3b46061b158efdae65da4f8c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iG/iGJ0ukbPfqOjxgOTH8VrlcE_ugJGXqrHta1xM9piuDg.cache b/T5/tmp/cache/assets/sprockets/v3.0/iG/iGJ0ukbPfqOjxgOTH8VrlcE_ugJGXqrHta1xM9piuDg.cache new file mode 100644 index 0000000000000000000000000000000000000000..b38473700d4c942038df585d26ea536c3d159920 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/iG/iGJ0ukbPfqOjxgOTH8VrlcE_ugJGXqrHta1xM9piuDg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iI/iIMf5so25l3q4AVUbPUKu8mTa6tPQsw7PK1XoWgSnAs.cache b/T5/tmp/cache/assets/sprockets/v3.0/iI/iIMf5so25l3q4AVUbPUKu8mTa6tPQsw7PK1XoWgSnAs.cache new file mode 100644 index 0000000000000000000000000000000000000000..664820ec9329c267bd0a8652a963b7a9ef5477e7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/iI/iIMf5so25l3q4AVUbPUKu8mTa6tPQsw7PK1XoWgSnAs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iI/iItnDaA4AHWPOo9fFCAeHOA1yCH_aJyoz4JcEUoKNHI.cache b/T5/tmp/cache/assets/sprockets/v3.0/iI/iItnDaA4AHWPOo9fFCAeHOA1yCH_aJyoz4JcEUoKNHI.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/iI/iItnDaA4AHWPOo9fFCAeHOA1yCH_aJyoz4JcEUoKNHI.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iL/iLI859cO5UxZ8VPjp9-0DLTFRRi5hVMaN0sUhPO88Lw.cache b/T5/tmp/cache/assets/sprockets/v3.0/iL/iLI859cO5UxZ8VPjp9-0DLTFRRi5hVMaN0sUhPO88Lw.cache new file mode 100644 index 0000000000000000000000000000000000000000..831237ff595470dc49c3fbba627c9c7210239485 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/iL/iLI859cO5UxZ8VPjp9-0DLTFRRi5hVMaN0sUhPO88Lw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/i_/i_xwzx9jvqbl9s7m2vosT6Zgdus3-USu04IKm5Lf_MM.cache b/T5/tmp/cache/assets/sprockets/v3.0/i_/i_xwzx9jvqbl9s7m2vosT6Zgdus3-USu04IKm5Lf_MM.cache new file mode 100644 index 0000000000000000000000000000000000000000..2ce80a77100c48e854305e07f722bdc342b20bf0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/i_/i_xwzx9jvqbl9s7m2vosT6Zgdus3-USu04IKm5Lf_MM.cache @@ -0,0 +1 @@ +I"Ò/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui.js?type=application/javascript&pipeline=self&id=0a14f31e4e0942ab6527bb46c81507314ffbb63b7e7ed9a11a7e275457981a1a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ic/icXDHrH9YiHNZq7EaH0y5GSmUsvJYN3EGgMMeKGEon4.cache b/T5/tmp/cache/assets/sprockets/v3.0/ic/icXDHrH9YiHNZq7EaH0y5GSmUsvJYN3EGgMMeKGEon4.cache new file mode 100644 index 0000000000000000000000000000000000000000..96d8f2d7101fd6abc8d9ff08d83bd53f379ff44b Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ic/icXDHrH9YiHNZq7EaH0y5GSmUsvJYN3EGgMMeKGEon4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/id/id6SOPYVCsA7c_bu0DcEtty9HRAsbb-qv3_20AG0H6I.cache b/T5/tmp/cache/assets/sprockets/v3.0/id/id6SOPYVCsA7c_bu0DcEtty9HRAsbb-qv3_20AG0H6I.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/id/id6SOPYVCsA7c_bu0DcEtty9HRAsbb-qv3_20AG0H6I.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/id/idn6CMMo1T4eu3cix_u2mClTWKr7Lz3zkoyfr6RW-m4.cache b/T5/tmp/cache/assets/sprockets/v3.0/id/idn6CMMo1T4eu3cix_u2mClTWKr7Lz3zkoyfr6RW-m4.cache new file mode 100644 index 0000000000000000000000000000000000000000..c8a9a27efd21e921ab29806819eae32ff5d2daed --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/id/idn6CMMo1T4eu3cix_u2mClTWKr7Lz3zkoyfr6RW-m4.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=c958e6aaaf577397fbc59a039ba99cd6ac3ee7dcbf1d608ca5896c14ebe12d09:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/if/ifrNaH8oC12Vgt9gx7D73PW1tFS9x-SpWoXsaV4FvGg.cache b/T5/tmp/cache/assets/sprockets/v3.0/if/ifrNaH8oC12Vgt9gx7D73PW1tFS9x-SpWoXsaV4FvGg.cache new file mode 100644 index 0000000000000000000000000000000000000000..b034d2cf50949f6cb21f2a307c95e02c013e5dd4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/if/ifrNaH8oC12Vgt9gx7D73PW1tFS9x-SpWoXsaV4FvGg.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=0e78f06f9a3a899a449fb32cf4aab537e9ef33d1058e0d4a5872d9ee312d0cf9:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/im/imDojC8ki7Al5x-2b7uuKCCHlI7TP2vCIjlO7NR9MhQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/im/imDojC8ki7Al5x-2b7uuKCCHlI7TP2vCIjlO7NR9MhQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/im/imDojC8ki7Al5x-2b7uuKCCHlI7TP2vCIjlO7NR9MhQ.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ip/ipXSeD8PoYzIJL1Lur7hqZVGnKXHO4BRSP6QtalPwsI.cache b/T5/tmp/cache/assets/sprockets/v3.0/ip/ipXSeD8PoYzIJL1Lur7hqZVGnKXHO4BRSP6QtalPwsI.cache new file mode 100644 index 0000000000000000000000000000000000000000..1c9b01d28821c32c400fd42136b2563cf0723fd9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ip/ipXSeD8PoYzIJL1Lur7hqZVGnKXHO4BRSP6QtalPwsI.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=4f8fd73d6b91202a2d2d0e1522007628c935f12c4db2b057c02c1d053dff4069:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/iz/izY7oa4iSsjSVwNFo8y37sjO2olCj6ogoErU4_rH6nc.cache b/T5/tmp/cache/assets/sprockets/v3.0/iz/izY7oa4iSsjSVwNFo8y37sjO2olCj6ogoErU4_rH6nc.cache new file mode 100644 index 0000000000000000000000000000000000000000..70afa20e91c695e2826116302b3f5e45be0bd442 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/iz/izY7oa4iSsjSVwNFo8y37sjO2olCj6ogoErU4_rH6nc.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=bed8393e6487eead6a5549a56e518c53be2f706d6af810818279a66062cb0f5d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/j5/j5oEtEu4W3ehwgtY4z6mqW2QT1Sg7KFnpYSG-wNT-Qo.cache b/T5/tmp/cache/assets/sprockets/v3.0/j5/j5oEtEu4W3ehwgtY4z6mqW2QT1Sg7KFnpYSG-wNT-Qo.cache new file mode 100644 index 0000000000000000000000000000000000000000..7b48809c81f135d5abe1e8fdf82b9e0c9c51f600 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/j5/j5oEtEu4W3ehwgtY4z6mqW2QT1Sg7KFnpYSG-wNT-Qo.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=18cbaae364afe2b9c219f1d68849964354ca8cab5e1c106befeb93c299757e5e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/j7/j7Qgol7dUwx_5eSvJEJpS53CzRqWKSQBBCE4cyjwsUg.cache b/T5/tmp/cache/assets/sprockets/v3.0/j7/j7Qgol7dUwx_5eSvJEJpS53CzRqWKSQBBCE4cyjwsUg.cache new file mode 100644 index 0000000000000000000000000000000000000000..91c3097f9090bb29b6f9893252c99356b2cc7c82 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/j7/j7Qgol7dUwx_5eSvJEJpS53CzRqWKSQBBCE4cyjwsUg.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=9d265fce4f6cba24d94641699da3ccf80a784c68cfff608ac3c79e318bd000ba:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jH/jHqXos6Si1DXjfxZR8fU9cO2cqJR7PKgGua19N8vbJ0.cache b/T5/tmp/cache/assets/sprockets/v3.0/jH/jHqXos6Si1DXjfxZR8fU9cO2cqJR7PKgGua19N8vbJ0.cache new file mode 100644 index 0000000000000000000000000000000000000000..1831785b02ddbdf0ca4e81a4155e482246fe5658 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/jH/jHqXos6Si1DXjfxZR8fU9cO2cqJR7PKgGua19N8vbJ0.cache @@ -0,0 +1,2 @@ +"%ËΩÿ•«Gۛˆ! +rKj{:e"öá <ƒƒ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jR/jRS4SXEoCWHTos710tq1hIi6DqOemReXnQ0sl9kJNEc.cache b/T5/tmp/cache/assets/sprockets/v3.0/jR/jRS4SXEoCWHTos710tq1hIi6DqOemReXnQ0sl9kJNEc.cache new file mode 100644 index 0000000000000000000000000000000000000000..4b0288a4508ab828316f42c8d4e4720eac55c8ac Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/jR/jRS4SXEoCWHTos710tq1hIi6DqOemReXnQ0sl9kJNEc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jR/jR_B3TZI7cKHSBbyW9lCzOZd8ReaNj1LpoXmpk17M5s.cache b/T5/tmp/cache/assets/sprockets/v3.0/jR/jR_B3TZI7cKHSBbyW9lCzOZd8ReaNj1LpoXmpk17M5s.cache new file mode 100644 index 0000000000000000000000000000000000000000..49dfe68f5b192262c5b9d815175879a6c4b85221 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/jR/jR_B3TZI7cKHSBbyW9lCzOZd8ReaNj1LpoXmpk17M5s.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jX/jX5re68X9EiV9qjT4jHJh5xK54CQEZquATuqYHEFW3k.cache b/T5/tmp/cache/assets/sprockets/v3.0/jX/jX5re68X9EiV9qjT4jHJh5xK54CQEZquATuqYHEFW3k.cache new file mode 100644 index 0000000000000000000000000000000000000000..aeae36f32e6bb4499a290b92855decae522ed8be Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/jX/jX5re68X9EiV9qjT4jHJh5xK54CQEZquATuqYHEFW3k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jc/jcsWXFs0WxTzpCl4Pp8aqrDBQMdZfk8ZNrN76iu1vrg.cache b/T5/tmp/cache/assets/sprockets/v3.0/jc/jcsWXFs0WxTzpCl4Pp8aqrDBQMdZfk8ZNrN76iu1vrg.cache new file mode 100644 index 0000000000000000000000000000000000000000..afbc14ae554649ef6c31cf9166d083c7d999dc44 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/jc/jcsWXFs0WxTzpCl4Pp8aqrDBQMdZfk8ZNrN76iu1vrg.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=17564c688cbceab13d036158e41279f9e2a3fab50ace57b006e33b329671fe3f:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/jm/jmMUWuQkZOfF_pqSibgekJLbCEhDx-rw2BtCL9Ic1Wc.cache b/T5/tmp/cache/assets/sprockets/v3.0/jm/jmMUWuQkZOfF_pqSibgekJLbCEhDx-rw2BtCL9Ic1Wc.cache new file mode 100644 index 0000000000000000000000000000000000000000..f18c7c4fa091b9b55634462407f1ac9ae88d9f5d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/jm/jmMUWuQkZOfF_pqSibgekJLbCEhDx-rw2BtCL9Ic1Wc.cache @@ -0,0 +1 @@ +I"yapp/assets/images/SteamDB-Big.png?type=image/png&id=1a6f9534819dd3fcc7422efd7d5c89cee0448a1708a86d9004b228d9ed015e62:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ju/juwqATbF2pOg5NtQMi7T8HFYaa0yyatuO72lTYkk6no.cache b/T5/tmp/cache/assets/sprockets/v3.0/ju/juwqATbF2pOg5NtQMi7T8HFYaa0yyatuO72lTYkk6no.cache new file mode 100644 index 0000000000000000000000000000000000000000..bfc633de4d53320011bb4d611384f2ce73e239b5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ju/juwqATbF2pOg5NtQMi7T8HFYaa0yyatuO72lTYkk6no.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}0I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-scale.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTI"6file-digest://app/assets/config/jquery-ui/effects;TTI"Bfile-digest://app/assets/config/jquery-ui/effects/effect-size;TTI"6file-digest://app/assets/images/jquery-ui/effects;TTI"Bfile-digest://app/assets/images/jquery-ui/effects/effect-size;TTI";file-digest://app/assets/javascripts/jquery-ui/effects;TTI"Gfile-digest://app/assets/javascripts/jquery-ui/effects/effect-size;TTI";file-digest://app/assets/stylesheets/jquery-ui/effects;TTI"Gfile-digest://app/assets/stylesheets/jquery-ui/effects/effect-size;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effects;TTI"€file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effects/effect-size;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effects;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effects/effect-size;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects;TTI"ƒfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-size;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-size.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/k8/k8tOGiCd-Jvb_S12u8_WByijlRfPvN2YO0EdJIwa5s0.cache b/T5/tmp/cache/assets/sprockets/v3.0/k8/k8tOGiCd-Jvb_S12u8_WByijlRfPvN2YO0EdJIwa5s0.cache new file mode 100644 index 0000000000000000000000000000000000000000..6804ea6be9825df2803cf2db9f092044d98e10a8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/k8/k8tOGiCd-Jvb_S12u8_WByijlRfPvN2YO0EdJIwa5s0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/k9/k9WEwxg1AOzL1zQPTCmsNPGEOEMoBjv7RVkmOpTorxs.cache b/T5/tmp/cache/assets/sprockets/v3.0/k9/k9WEwxg1AOzL1zQPTCmsNPGEOEMoBjv7RVkmOpTorxs.cache new file mode 100644 index 0000000000000000000000000000000000000000..952634586fdc19401614d39d1c45adcda1828d0e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/k9/k9WEwxg1AOzL1zQPTCmsNPGEOEMoBjv7RVkmOpTorxs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kB/kBV-m-W0HhGQ4CBLU2Rfk5HU18UO1_38h1OmB4Ce7NE.cache b/T5/tmp/cache/assets/sprockets/v3.0/kB/kBV-m-W0HhGQ4CBLU2Rfk5HU18UO1_38h1OmB4Ce7NE.cache new file mode 100644 index 0000000000000000000000000000000000000000..bdada23799b5e04c832f361ce2e329c6872778c8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/kB/kBV-m-W0HhGQ4CBLU2Rfk5HU18UO1_38h1OmB4Ce7NE.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-fold.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kC/kCeUxt6vMXN9wKehCp4NdSOzRrgQRmexglLPo_NpvPw.cache b/T5/tmp/cache/assets/sprockets/v3.0/kC/kCeUxt6vMXN9wKehCp4NdSOzRrgQRmexglLPo_NpvPw.cache new file mode 100644 index 0000000000000000000000000000000000000000..4b644e50c83db6c55271fdea41a048dfaa2cc33a Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/kC/kCeUxt6vMXN9wKehCp4NdSOzRrgQRmexglLPo_NpvPw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kH/kHpZY5PHdmfe82fITUfi385qDwDzlUnQru251aA85oY.cache b/T5/tmp/cache/assets/sprockets/v3.0/kH/kHpZY5PHdmfe82fITUfi385qDwDzlUnQru251aA85oY.cache new file mode 100644 index 0000000000000000000000000000000000000000..ec3db50867fa1eea4d0b6f4f60e3709229b40758 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/kH/kHpZY5PHdmfe82fITUfi385qDwDzlUnQru251aA85oY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kM/kMhS8MDZIM4mKhmqB-ccMp2PQvwS7zSbRIjb8TSCTvU.cache b/T5/tmp/cache/assets/sprockets/v3.0/kM/kMhS8MDZIM4mKhmqB-ccMp2PQvwS7zSbRIjb8TSCTvU.cache new file mode 100644 index 0000000000000000000000000000000000000000..e61832c40636297151af7c679ed4748ffbf9f5fc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/kM/kMhS8MDZIM4mKhmqB-ccMp2PQvwS7zSbRIjb8TSCTvU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kP/kPEJbEL3m1yqgRS8Ib-nqR1qodNpp-OT8oaBLrLxo9g.cache b/T5/tmp/cache/assets/sprockets/v3.0/kP/kPEJbEL3m1yqgRS8Ib-nqR1qodNpp-OT8oaBLrLxo9g.cache new file mode 100644 index 0000000000000000000000000000000000000000..29e6a63cb9f6487e07aac3fc16ded7f17ceb425e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/kP/kPEJbEL3m1yqgRS8Ib-nqR1qodNpp-OT8oaBLrLxo9g.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kR/kRfEriL26Ctl697FqPcweUmyM2Qzuky6DYXR3g68c_8.cache b/T5/tmp/cache/assets/sprockets/v3.0/kR/kRfEriL26Ctl697FqPcweUmyM2Qzuky6DYXR3g68c_8.cache new file mode 100644 index 0000000000000000000000000000000000000000..3a75356862c2617fd49a1ee82dcb091ccc6abbb1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/kR/kRfEriL26Ctl697FqPcweUmyM2Qzuky6DYXR3g68c_8.cache @@ -0,0 +1 @@ +"%ç~›èGÌÏð†’ÙwÓt û´6vzÉÛ¸ôx>EF× \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kV/kV83Lv0pVXryTXQREyn9G-zv52oyOFs6GSocONlX3Ac.cache b/T5/tmp/cache/assets/sprockets/v3.0/kV/kV83Lv0pVXryTXQREyn9G-zv52oyOFs6GSocONlX3Ac.cache new file mode 100644 index 0000000000000000000000000000000000000000..7019c7b310155f96099c12557a101954b1c6a2cc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/kV/kV83Lv0pVXryTXQREyn9G-zv52oyOFs6GSocONlX3Ac.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kX/kXAHCjjaqiQrjcF7mLIBmlt74FCc2m4ufBEBk0jZy8w.cache b/T5/tmp/cache/assets/sprockets/v3.0/kX/kXAHCjjaqiQrjcF7mLIBmlt74FCc2m4ufBEBk0jZy8w.cache new file mode 100644 index 0000000000000000000000000000000000000000..4efb41f585fbee1a5a33d32e32ef8b581925986b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/kX/kXAHCjjaqiQrjcF7mLIBmlt74FCc2m4ufBEBk0jZy8w.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=898678e223ebcf1f6c3036718f1dad172942ff0a5356ecfd4250ccfbfbaab67d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/kj/kjv-b54y524xcbAG0BgoTrYLLe0I3esQ3CQHBhltkos.cache b/T5/tmp/cache/assets/sprockets/v3.0/kj/kjv-b54y524xcbAG0BgoTrYLLe0I3esQ3CQHBhltkos.cache new file mode 100644 index 0000000000000000000000000000000000000000..14047250d1c2c679e8261d425165b9a415e37005 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/kj/kjv-b54y524xcbAG0BgoTrYLLe0I3esQ3CQHBhltkos.cache @@ -0,0 +1 @@ +"%Iýòù¸Ë:,—ÑbÅ—ÔWGíØ%û“!õ. Té– \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/l2/l2Yko9vMvLBHg2t9zcfMDBEQck6k__joHHhQGA20M5o.cache b/T5/tmp/cache/assets/sprockets/v3.0/l2/l2Yko9vMvLBHg2t9zcfMDBEQck6k__joHHhQGA20M5o.cache new file mode 100644 index 0000000000000000000000000000000000000000..b7b0014f6a71fe3d86102a983cc64158fcb27c3f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/l2/l2Yko9vMvLBHg2t9zcfMDBEQck6k__joHHhQGA20M5o.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lD/lDFmDg0mvaXHs9e3w3M-fkEiQqCLXZdOueJggj0TLmg.cache b/T5/tmp/cache/assets/sprockets/v3.0/lD/lDFmDg0mvaXHs9e3w3M-fkEiQqCLXZdOueJggj0TLmg.cache new file mode 100644 index 0000000000000000000000000000000000000000..e274e78447d69d074254d2f89ea1bea373567574 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lD/lDFmDg0mvaXHs9e3w3M-fkEiQqCLXZdOueJggj0TLmg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lE/lEQI9BCSqbU7zv0O-BJWZGux124CpxEcBYKAMY9H2F4.cache b/T5/tmp/cache/assets/sprockets/v3.0/lE/lEQI9BCSqbU7zv0O-BJWZGux124CpxEcBYKAMY9H2F4.cache new file mode 100644 index 0000000000000000000000000000000000000000..b90f497fd637d82f2cc9beeeaeee75a4d5c11fb3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lE/lEQI9BCSqbU7zv0O-BJWZGux124CpxEcBYKAMY9H2F4.cache @@ -0,0 +1 @@ +I"ä/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/draggable.js?type=application/javascript&pipeline=self&id=e223b8b72b0d2fdab30a5357f6ff4cfcd926c7397ff2a992b34cf019293d771a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lE/lEgY3buLhMy9e52swJ3lJug_z_6L1b45gxniWMOXnf8.cache b/T5/tmp/cache/assets/sprockets/v3.0/lE/lEgY3buLhMy9e52swJ3lJug_z_6L1b45gxniWMOXnf8.cache new file mode 100644 index 0000000000000000000000000000000000000000..2800ad3b2e2cbf3921f3032ad1306f4749f08af2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lE/lEgY3buLhMy9e52swJ3lJug_z_6L1b45gxniWMOXnf8.cache @@ -0,0 +1 @@ +"%ã°ÄB˜üšûôÈ™o¹$'®Aäd›“L¤•™xR¸U \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lH/lHxZgzrVbNXTWLxsyBKx8nvpqSmNFQLU2c7eZ4JwueU.cache b/T5/tmp/cache/assets/sprockets/v3.0/lH/lHxZgzrVbNXTWLxsyBKx8nvpqSmNFQLU2c7eZ4JwueU.cache new file mode 100644 index 0000000000000000000000000000000000000000..08f0c32efafd24ce84b53c719953049842790ee5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lH/lHxZgzrVbNXTWLxsyBKx8nvpqSmNFQLU2c7eZ4JwueU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lO/lO1Ae_BaBBzaIyR6YBkRuhME54mBsc6RgfJxAg-Ww50.cache b/T5/tmp/cache/assets/sprockets/v3.0/lO/lO1Ae_BaBBzaIyR6YBkRuhME54mBsc6RgfJxAg-Ww50.cache new file mode 100644 index 0000000000000000000000000000000000000000..2d1f95c0e5f5e980ebbbac08d07a3f74bc8a97c0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lO/lO1Ae_BaBBzaIyR6YBkRuhME54mBsc6RgfJxAg-Ww50.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"†file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/safe-active-element.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lO/lOvQY-zbVKp0peX-S-NBQ1NTdjlUbbyfsE6xLo3obRM.cache b/T5/tmp/cache/assets/sprockets/v3.0/lO/lOvQY-zbVKp0peX-S-NBQ1NTdjlUbbyfsE6xLo3obRM.cache new file mode 100644 index 0000000000000000000000000000000000000000..5d13f62e8168d0740435d6a940140f51a3ed48c3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lO/lOvQY-zbVKp0peX-S-NBQ1NTdjlUbbyfsE6xLo3obRM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lP/lPRj_3LZc7z8hm_DWNRjyFFO_CkbChn32HYOQqP8498.cache b/T5/tmp/cache/assets/sprockets/v3.0/lP/lPRj_3LZc7z8hm_DWNRjyFFO_CkbChn32HYOQqP8498.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lP/lPRj_3LZc7z8hm_DWNRjyFFO_CkbChn32HYOQqP8498.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lS/lS96z2FAhiOxPk4hbs2Oj5rb3Nhd91U5qXC_vE6A0oY.cache b/T5/tmp/cache/assets/sprockets/v3.0/lS/lS96z2FAhiOxPk4hbs2Oj5rb3Nhd91U5qXC_vE6A0oY.cache new file mode 100644 index 0000000000000000000000000000000000000000..f1957148a0f00a68d8e67f6858ad91bf28f46b2c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lS/lS96z2FAhiOxPk4hbs2Oj5rb3Nhd91U5qXC_vE6A0oY.cache @@ -0,0 +1 @@ +"%ï}:÷•Q€Õú(|[VjYbæBGççÀt3ù9yˆ3 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lW/lWKRvBcKgHhT32eNa8G0Y6bCaNG7DXN6TGD0Bm4MmuY.cache b/T5/tmp/cache/assets/sprockets/v3.0/lW/lWKRvBcKgHhT32eNa8G0Y6bCaNG7DXN6TGD0Bm4MmuY.cache new file mode 100644 index 0000000000000000000000000000000000000000..f8677b61e21b423daea8023d4537f4bdf655d213 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lW/lWKRvBcKgHhT32eNa8G0Y6bCaNG7DXN6TGD0Bm4MmuY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lX/lX8OpmD_pgBdjmU6qBe9oU1Du0dK3gEJfm-yvwjHne4.cache b/T5/tmp/cache/assets/sprockets/v3.0/lX/lX8OpmD_pgBdjmU6qBe9oU1Du0dK3gEJfm-yvwjHne4.cache new file mode 100644 index 0000000000000000000000000000000000000000..f63390b0771f3668f16de96e4ec093443bbdb0f3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lX/lX8OpmD_pgBdjmU6qBe9oU1Du0dK3gEJfm-yvwjHne4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lY/lYqj_w_e-049Y1LiGLSLBY7m_cFUIq69RaY_sQq-4Co.cache b/T5/tmp/cache/assets/sprockets/v3.0/lY/lYqj_w_e-049Y1LiGLSLBY7m_cFUIq69RaY_sQq-4Co.cache new file mode 100644 index 0000000000000000000000000000000000000000..79b05d57eed921a747a2a6b5115dfd99164c4c3a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lY/lYqj_w_e-049Y1LiGLSLBY7m_cFUIq69RaY_sQq-4Co.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=165a17d750bfdac670345fd8c328aa30f5dfd6fa414cfc5618d5233a9be3649e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lj/ljwzpJT-kOADaUCHIfEwBkf7VVG7nbAOPftwgKPpcXA.cache b/T5/tmp/cache/assets/sprockets/v3.0/lj/ljwzpJT-kOADaUCHIfEwBkf7VVG7nbAOPftwgKPpcXA.cache new file mode 100644 index 0000000000000000000000000000000000000000..dafbf57bd0da7b9349f80cdc1ccb377036d4da09 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lj/ljwzpJT-kOADaUCHIfEwBkf7VVG7nbAOPftwgKPpcXA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lm/lmFP3C0vUWolCdgIEWKOzx2TB3ZzZbjslqI5aSBp9QM.cache b/T5/tmp/cache/assets/sprockets/v3.0/lm/lmFP3C0vUWolCdgIEWKOzx2TB3ZzZbjslqI5aSBp9QM.cache new file mode 100644 index 0000000000000000000000000000000000000000..2b15ce008b5c0442d0e7f2ab06c596ce22d5085d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lm/lmFP3C0vUWolCdgIEWKOzx2TB3ZzZbjslqI5aSBp9QM.cache @@ -0,0 +1 @@ +"%é6⨿´øŒXí¦šj|þ>¤ÆË{lBfì["2Wîká \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lp/lpjtT-Heu_Slw_mjMp82qffhCStXkNm4ZXG8UqC2ytA.cache b/T5/tmp/cache/assets/sprockets/v3.0/lp/lpjtT-Heu_Slw_mjMp82qffhCStXkNm4ZXG8UqC2ytA.cache new file mode 100644 index 0000000000000000000000000000000000000000..c7921ccbdadfa153e74d08f99ac5c850dddbf04d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lp/lpjtT-Heu_Slw_mjMp82qffhCStXkNm4ZXG8UqC2ytA.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/categories.scss?type=text/css&pipeline=self&id=4f8fd0bc17ca2c5b0ba65817555552aac7ce23c22e2e24d350d1cd0d326f9a4d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ls/ls5ome3Qj5T-Kyeekir8h8el8FX0qbTL2eIqGAKfcXA.cache b/T5/tmp/cache/assets/sprockets/v3.0/ls/ls5ome3Qj5T-Kyeekir8h8el8FX0qbTL2eIqGAKfcXA.cache new file mode 100644 index 0000000000000000000000000000000000000000..eed504af4f5974d0f327909fdd249700f73818e7 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ls/ls5ome3Qj5T-Kyeekir8h8el8FX0qbTL2eIqGAKfcXA.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/developers.scss?type=text/css&pipeline=self&id=dfa437de011f64f5c8cecaedfd42ac0c6a418d65906b02cede110f02d819a745:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lw/lwz-50IkKpdj6YwUi4ssdY4F13alMT1uHN8lRNN1YyY.cache b/T5/tmp/cache/assets/sprockets/v3.0/lw/lwz-50IkKpdj6YwUi4ssdY4F13alMT1uHN8lRNN1YyY.cache new file mode 100644 index 0000000000000000000000000000000000000000..35450f77813e7e3a9e24a6c532a2768a01aee7c0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lw/lwz-50IkKpdj6YwUi4ssdY4F13alMT1uHN8lRNN1YyY.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"}file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/jquery-1-7.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lx/lx1cVB3BRffiktnyQxwpnzezLJcGk85142Pj5hE8qOw.cache b/T5/tmp/cache/assets/sprockets/v3.0/lx/lx1cVB3BRffiktnyQxwpnzezLJcGk85142Pj5hE8qOw.cache new file mode 100644 index 0000000000000000000000000000000000000000..433916c9a993a3d7373f0527fcfc49a013244ec8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/lx/lx1cVB3BRffiktnyQxwpnzezLJcGk85142Pj5hE8qOw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ly/lymQUs7qHCg71G2r6EwfG7121Eip8HfSFrSAeW6Iq4s.cache b/T5/tmp/cache/assets/sprockets/v3.0/ly/lymQUs7qHCg71G2r6EwfG7121Eip8HfSFrSAeW6Iq4s.cache new file mode 100644 index 0000000000000000000000000000000000000000..81b750222f99468caeaef1e56cd03bdbc5fdda1e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ly/lymQUs7qHCg71G2r6EwfG7121Eip8HfSFrSAeW6Iq4s.cache @@ -0,0 +1 @@ +I"ã/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/sortable.js?type=application/javascript&pipeline=self&id=4c36d8a8290e7aa6541df1475581fc6dd27c064664771c6141a938825e89f0de:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lz/lzCa5z39S8NtXILY21HRBu_dhx-JPa9pGnR-do4Rdis.cache b/T5/tmp/cache/assets/sprockets/v3.0/lz/lzCa5z39S8NtXILY21HRBu_dhx-JPa9pGnR-do4Rdis.cache new file mode 100644 index 0000000000000000000000000000000000000000..1a8d4d41214ddaad1231e4b7cbd5345be2850255 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lz/lzCa5z39S8NtXILY21HRBu_dhx-JPa9pGnR-do4Rdis.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=ba105e119da6deef766e328567908d3d196136774cfb3a742d5a3acf90bb0ab5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/lz/lzX9S5ZnXkxfHyLWw6OaFlWGRCYpSNVPisYcQjLoJyE.cache b/T5/tmp/cache/assets/sprockets/v3.0/lz/lzX9S5ZnXkxfHyLWw6OaFlWGRCYpSNVPisYcQjLoJyE.cache new file mode 100644 index 0000000000000000000000000000000000000000..69e447e718a0bb945de9f23b750e45a0d0ad91c1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/lz/lzX9S5ZnXkxfHyLWw6OaFlWGRCYpSNVPisYcQjLoJyE.cache @@ -0,0 +1 @@ +"%x„ oAbúmo»G‹sÞlZˆt’l×!dvõŸ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/m-/m-lUSv1L1iLW3zcKc_Y8dcDqlgdV4hhrMOy9DeK_oBg.cache b/T5/tmp/cache/assets/sprockets/v3.0/m-/m-lUSv1L1iLW3zcKc_Y8dcDqlgdV4hhrMOy9DeK_oBg.cache new file mode 100644 index 0000000000000000000000000000000000000000..5a2f73de65624dcf661c31921d9317953bd6aa5c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/m-/m-lUSv1L1iLW3zcKc_Y8dcDqlgdV4hhrMOy9DeK_oBg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/m1/m1K_QNMiyTKkupBZv2e6tADQ849eX6CBArYH6-n-p7A.cache b/T5/tmp/cache/assets/sprockets/v3.0/m1/m1K_QNMiyTKkupBZv2e6tADQ849eX6CBArYH6-n-p7A.cache new file mode 100644 index 0000000000000000000000000000000000000000..856ee64af32c4dbe32a2784c4b0130f1674b85e1 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/m1/m1K_QNMiyTKkupBZv2e6tADQ849eX6CBArYH6-n-p7A.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/m7/m7ba17B1MWlgBxdkKwbeKDy-bO0MfuCp2B7msAKiWFo.cache b/T5/tmp/cache/assets/sprockets/v3.0/m7/m7ba17B1MWlgBxdkKwbeKDy-bO0MfuCp2B7msAKiWFo.cache new file mode 100644 index 0000000000000000000000000000000000000000..8d1247273a1de80f79954103ef17a75d4e5d1b11 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/m7/m7ba17B1MWlgBxdkKwbeKDy-bO0MfuCp2B7msAKiWFo.cache @@ -0,0 +1,2 @@ +"%`ç´Œ„j>}IA=ŸÞP°Ø¬žãë5Z Iò¤ +èó@ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mE/mEitUsLypWUVcg44a7isW3Jd7T_eXttpdYt-qBHJSsI.cache b/T5/tmp/cache/assets/sprockets/v3.0/mE/mEitUsLypWUVcg44a7isW3Jd7T_eXttpdYt-qBHJSsI.cache new file mode 100644 index 0000000000000000000000000000000000000000..3c52c57341e766161ab22aab871742b519071bd2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/mE/mEitUsLypWUVcg44a7isW3Jd7T_eXttpdYt-qBHJSsI.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=c9f3c2721f9e52a1951a675afbba8b1be42d1426a10faa567f35e214b584eb77:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mH/mHipOJRNyWqCaRInhacs3VmR-DW2Ji0-h7qJWtbujGE.cache b/T5/tmp/cache/assets/sprockets/v3.0/mH/mHipOJRNyWqCaRInhacs3VmR-DW2Ji0-h7qJWtbujGE.cache new file mode 100644 index 0000000000000000000000000000000000000000..86a25ed7e94965073551773a19772f78cd460c15 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/mH/mHipOJRNyWqCaRInhacs3VmR-DW2Ji0-h7qJWtbujGE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mS/mS6VOkzd1zIjN0yVKkajYCi2TprgyOxUxmKDBRfL4E8.cache b/T5/tmp/cache/assets/sprockets/v3.0/mS/mS6VOkzd1zIjN0yVKkajYCi2TprgyOxUxmKDBRfL4E8.cache new file mode 100644 index 0000000000000000000000000000000000000000..7cdfc496905e964a1c7c62ffc2e176c0bef66b6f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/mS/mS6VOkzd1zIjN0yVKkajYCi2TprgyOxUxmKDBRfL4E8.cache @@ -0,0 +1 @@ +"%keó@Ëf‹·*¤ëÑõ3[ßm²ÜM¿ýÆFã–jOP \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mS/mS8oJLDi3KSW0SGjeVQO83MLAnVfCirdMfk1WsTs7DI.cache b/T5/tmp/cache/assets/sprockets/v3.0/mS/mS8oJLDi3KSW0SGjeVQO83MLAnVfCirdMfk1WsTs7DI.cache new file mode 100644 index 0000000000000000000000000000000000000000..1171f288aaf4040b328e829df2862675d29b1891 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/mS/mS8oJLDi3KSW0SGjeVQO83MLAnVfCirdMfk1WsTs7DI.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=1ad5dc6e1ef4e3d3e8e8db7d993ed0fb2ec255d4c4688f0852d3cb256ff6a064:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mU/mUY5n7ccjGQm-Sf7qJAbOsmEsP3V0CjtMtzaSpevZbg.cache b/T5/tmp/cache/assets/sprockets/v3.0/mU/mUY5n7ccjGQm-Sf7qJAbOsmEsP3V0CjtMtzaSpevZbg.cache new file mode 100644 index 0000000000000000000000000000000000000000..63ebe45d6169ff6a6bb477f10e0d77e48ccc5e04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/mU/mUY5n7ccjGQm-Sf7qJAbOsmEsP3V0CjtMtzaSpevZbg.cache @@ -0,0 +1 @@ +"%jã“`eãovÄ1‰ýœm“åf ÂÁ?ºfˆóA¿;¹ª \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mX/mX9eSeGdaup-CnqX11BJMrGBilUOzmW3-wtAhdGN2yc.cache b/T5/tmp/cache/assets/sprockets/v3.0/mX/mX9eSeGdaup-CnqX11BJMrGBilUOzmW3-wtAhdGN2yc.cache new file mode 100644 index 0000000000000000000000000000000000000000..37e75aad04ee7d85ff464edb543ccada455f37c5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/mX/mX9eSeGdaup-CnqX11BJMrGBilUOzmW3-wtAhdGN2yc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mZ/mZaIgKWzkclnqvrWGuXORNOGz6yMN3-KActuhvbznCA.cache b/T5/tmp/cache/assets/sprockets/v3.0/mZ/mZaIgKWzkclnqvrWGuXORNOGz6yMN3-KActuhvbznCA.cache new file mode 100644 index 0000000000000000000000000000000000000000..daa1c534f491c6ac14021281872a08502995642e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/mZ/mZaIgKWzkclnqvrWGuXORNOGz6yMN3-KActuhvbznCA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mh/mhqprm0ateFImYAXYeJD0dlrxEiCcw9HQmuNKCf5OVM.cache b/T5/tmp/cache/assets/sprockets/v3.0/mh/mhqprm0ateFImYAXYeJD0dlrxEiCcw9HQmuNKCf5OVM.cache new file mode 100644 index 0000000000000000000000000000000000000000..0437dd633fafa6ad3cdd1b55e3e9a381ee2b60ea Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/mh/mhqprm0ateFImYAXYeJD0dlrxEiCcw9HQmuNKCf5OVM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/mw/mw8seW4BUmOw-pRKyBr1H_9-MLOu1HVktQlV-dSeKBg.cache b/T5/tmp/cache/assets/sprockets/v3.0/mw/mw8seW4BUmOw-pRKyBr1H_9-MLOu1HVktQlV-dSeKBg.cache new file mode 100644 index 0000000000000000000000000000000000000000..8c777010568bc7404f2a3e45c285ad5c598fb819 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/mw/mw8seW4BUmOw-pRKyBr1H_9-MLOu1HVktQlV-dSeKBg.cache @@ -0,0 +1 @@ +I"×/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form.js?type=application/javascript&pipeline=self&id=082fc90bc9a66b2d011cd1c4bac248b3beaa8fbe029aa496526c9dfc930b7094:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/n2/n2wo7odHm1roLepi00OmPCYM5fw_IzBW_CHHzjY2A2U.cache b/T5/tmp/cache/assets/sprockets/v3.0/n2/n2wo7odHm1roLepi00OmPCYM5fw_IzBW_CHHzjY2A2U.cache new file mode 100644 index 0000000000000000000000000000000000000000..66c3ba4aeaae5cd9fe9a684edf3870d54f959ba8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/n2/n2wo7odHm1roLepi00OmPCYM5fw_IzBW_CHHzjY2A2U.cache @@ -0,0 +1 @@ +I"Ü/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/focusable.js?type=application/javascript&pipeline=self&id=d89a63c65bb5728da165071fe9b293301e45c04bdd5d8ccbcdd28075c86411d1:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/n5/n5omdb_P80TqYNqR78X0QquCTFUqppnKqYaUfPG9FJA.cache b/T5/tmp/cache/assets/sprockets/v3.0/n5/n5omdb_P80TqYNqR78X0QquCTFUqppnKqYaUfPG9FJA.cache new file mode 100644 index 0000000000000000000000000000000000000000..69eaf5dce2e8ee6e1a6639449ea9d43caeb8dc1e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/n5/n5omdb_P80TqYNqR78X0QquCTFUqppnKqYaUfPG9FJA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nC/nCIE6gsN_FWtO_JgknrK7xCsqKeqyPo5wcK4CgBQIkI.cache b/T5/tmp/cache/assets/sprockets/v3.0/nC/nCIE6gsN_FWtO_JgknrK7xCsqKeqyPo5wcK4CgBQIkI.cache new file mode 100644 index 0000000000000000000000000000000000000000..8ff02c525e595b688673b4bec6efa1ffac011a50 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/nC/nCIE6gsN_FWtO_JgknrK7xCsqKeqyPo5wcK4CgBQIkI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nE/nE-EjsAEu8UamNrmO8Yq4qOD-Wtn8P6jJJsELDqJLFc.cache b/T5/tmp/cache/assets/sprockets/v3.0/nE/nE-EjsAEu8UamNrmO8Yq4qOD-Wtn8P6jJJsELDqJLFc.cache new file mode 100644 index 0000000000000000000000000000000000000000..380c320ff0a9d19b361b67798d41f4f84dc4c858 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nE/nE-EjsAEu8UamNrmO8Yq4qOD-Wtn8P6jJJsELDqJLFc.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-blind.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nI/nI_18PFQYoq4qtRXlbeL5TBDOl91vatIoHQk-kJjz08.cache b/T5/tmp/cache/assets/sprockets/v3.0/nI/nI_18PFQYoq4qtRXlbeL5TBDOl91vatIoHQk-kJjz08.cache new file mode 100644 index 0000000000000000000000000000000000000000..58b2090aea65afabf1a94b64b6548ec67acfe2f3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nI/nI_18PFQYoq4qtRXlbeL5TBDOl91vatIoHQk-kJjz08.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=fa2b251216122583dd4ef38fe8626c612e23be8e9ad8e61a3bdd447433f05dbe:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nJ/nJ1HQAvNdZIEE3W3Zee8RiyF7ZwlaQ7e5a7LS-QTqrI.cache b/T5/tmp/cache/assets/sprockets/v3.0/nJ/nJ1HQAvNdZIEE3W3Zee8RiyF7ZwlaQ7e5a7LS-QTqrI.cache new file mode 100644 index 0000000000000000000000000000000000000000..25508dffa7c9c28e8d4a2b7058310d33dbdf4813 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/nJ/nJ1HQAvNdZIEE3W3Zee8RiyF7ZwlaQ7e5a7LS-QTqrI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nQ/nQyTO3C-zEtZUrjmEKxuZa3B4J8jfEX9SwKpvvo8tIE.cache b/T5/tmp/cache/assets/sprockets/v3.0/nQ/nQyTO3C-zEtZUrjmEKxuZa3B4J8jfEX9SwKpvvo8tIE.cache new file mode 100644 index 0000000000000000000000000000000000000000..d26f9803b489fbe1e6af711d4e6089b0da4ac15e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nQ/nQyTO3C-zEtZUrjmEKxuZa3B4J8jfEX9SwKpvvo8tIE.cache @@ -0,0 +1 @@ +"%ÄŸ‰vvÜúÝO›4W7äØÙ#·§{›„ËÌúÁ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nU/nU0TYdiDoudrgF55XPd22Q0ggsanYFJwYsaLDe1AocM.cache b/T5/tmp/cache/assets/sprockets/v3.0/nU/nU0TYdiDoudrgF55XPd22Q0ggsanYFJwYsaLDe1AocM.cache new file mode 100644 index 0000000000000000000000000000000000000000..fc1c073c7effad882f3f59aa8af6226eb7cea267 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/nU/nU0TYdiDoudrgF55XPd22Q0ggsanYFJwYsaLDe1AocM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nV/nVTgVyA1OBApDxdIdVPIs5ZuxDrf2bepGej2cWnn_6E.cache b/T5/tmp/cache/assets/sprockets/v3.0/nV/nVTgVyA1OBApDxdIdVPIs5ZuxDrf2bepGej2cWnn_6E.cache new file mode 100644 index 0000000000000000000000000000000000000000..44f9e2d6cb2828acbb92c72bb681906a2a43d77e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nV/nVTgVyA1OBApDxdIdVPIs5ZuxDrf2bepGej2cWnn_6E.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=57b2b747634566db839ff4c561637ee631db96c81bfbc3dd38558d770ad2e9a7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nX/nXtC6tio1arUxJO79N6o0n3wrZmhmweef2FmXfoUUqU.cache b/T5/tmp/cache/assets/sprockets/v3.0/nX/nXtC6tio1arUxJO79N6o0n3wrZmhmweef2FmXfoUUqU.cache new file mode 100644 index 0000000000000000000000000000000000000000..318adeda598573b6a18c83f3218ab6bd1163d96b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nX/nXtC6tio1arUxJO79N6o0n3wrZmhmweef2FmXfoUUqU.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}0I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"…file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/selectable.js;TTI"6file-digest://app/assets/config/jquery-ui/widgets;TTI"<file-digest://app/assets/config/jquery-ui/widgets/mouse;TTI"6file-digest://app/assets/images/jquery-ui/widgets;TTI"<file-digest://app/assets/images/jquery-ui/widgets/mouse;TTI";file-digest://app/assets/javascripts/jquery-ui/widgets;TTI"Afile-digest://app/assets/javascripts/jquery-ui/widgets/mouse;TTI";file-digest://app/assets/stylesheets/jquery-ui/widgets;TTI"Afile-digest://app/assets/stylesheets/jquery-ui/widgets/mouse;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widgets;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widgets/mouse;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widgets;TTI"}file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widgets/mouse;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets;TTI"}file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/mouse;TTI"€file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/mouse.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nb/nbfySBeuSetHFIDsPaFdEMJPSlriuqGIo3VqVIFmDks.cache b/T5/tmp/cache/assets/sprockets/v3.0/nb/nbfySBeuSetHFIDsPaFdEMJPSlriuqGIo3VqVIFmDks.cache new file mode 100644 index 0000000000000000000000000000000000000000..03c6a7db155ad224e4dce51052fdf1f1be886b7d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nb/nbfySBeuSetHFIDsPaFdEMJPSlriuqGIo3VqVIFmDks.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=668ad7c7e92923d7d2ad464096698ef53332b8981798beb90cda147bc5e187e4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ne/nepMVEbGXw_MdSoqmG_cqz3ahZ-ou2PVfD2szbMNocY.cache b/T5/tmp/cache/assets/sprockets/v3.0/ne/nepMVEbGXw_MdSoqmG_cqz3ahZ-ou2PVfD2szbMNocY.cache new file mode 100644 index 0000000000000000000000000000000000000000..c5516959204d2b69753e9ad62fac38a9cb323220 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ne/nepMVEbGXw_MdSoqmG_cqz3ahZ-ou2PVfD2szbMNocY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nj/njwdCByBxStjrYzvteUAaab-Iu7NyO42xqO_NNyLink.cache b/T5/tmp/cache/assets/sprockets/v3.0/nj/njwdCByBxStjrYzvteUAaab-Iu7NyO42xqO_NNyLink.cache new file mode 100644 index 0000000000000000000000000000000000000000..aa386f8232ad0a9687fb2eb0a377d5bf5f5332d8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nj/njwdCByBxStjrYzvteUAaab-Iu7NyO42xqO_NNyLink.cache @@ -0,0 +1 @@ +I"Ù/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/plugin.js?type=application/javascript&pipeline=self&id=0ef0d9c165e18460561a0f9051e46616ad5b49520f68c60492ca1251f376bfe3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nl/nlbItIGGv4WkgkiimsVuwtE4zn3UTRkxpKg0Tm3IVtg.cache b/T5/tmp/cache/assets/sprockets/v3.0/nl/nlbItIGGv4WkgkiimsVuwtE4zn3UTRkxpKg0Tm3IVtg.cache new file mode 100644 index 0000000000000000000000000000000000000000..e36b48eea04a74d768abeaff301cd19d87fef342 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/nl/nlbItIGGv4WkgkiimsVuwtE4zn3UTRkxpKg0Tm3IVtg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nn/nnmkel-pEvxvznH7Tne2TI5IWWi074gMfnlHZFLBMok.cache b/T5/tmp/cache/assets/sprockets/v3.0/nn/nnmkel-pEvxvznH7Tne2TI5IWWi074gMfnlHZFLBMok.cache new file mode 100644 index 0000000000000000000000000000000000000000..02ae8b1b6de12cc5fd441f12fac93344f67f8d67 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nn/nnmkel-pEvxvznH7Tne2TI5IWWi074gMfnlHZFLBMok.cache @@ -0,0 +1 @@ +"%R(p°Ã‚Má¾¾¡>5Çæ'âKas;ÕÔÍ™H9™ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/no/noDzvSu0K495IB8qmNXqtnxvV15uxBafbEvudHDYXKQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/no/noDzvSu0K495IB8qmNXqtnxvV15uxBafbEvudHDYXKQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..9935da488e6974e0d9ded8d17e5b72dd81648551 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/no/noDzvSu0K495IB8qmNXqtnxvV15uxBafbEvudHDYXKQ.cache @@ -0,0 +1 @@ +"%R(/®C/ÚX»V8æ{O‚rVÇŸˆÜ§–´¢„Ä!v \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ns/nsX2WWsObzJerOngeTkcfDDFSSdq_LcK2Y50foW0jtE.cache b/T5/tmp/cache/assets/sprockets/v3.0/ns/nsX2WWsObzJerOngeTkcfDDFSSdq_LcK2Y50foW0jtE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f930b9f537cf51b6942bc357fa23e91fa1b8342e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ns/nsX2WWsObzJerOngeTkcfDDFSSdq_LcK2Y50foW0jtE.cache @@ -0,0 +1 @@ +"%«/Z<“W‰Uü€.%ˆ62º^÷áÂu³ÕøŸ´ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nt/nt82yx10SWkt0ha3Yqc-SAFdZHAqDXAVK73YJimQZ4g.cache b/T5/tmp/cache/assets/sprockets/v3.0/nt/nt82yx10SWkt0ha3Yqc-SAFdZHAqDXAVK73YJimQZ4g.cache new file mode 100644 index 0000000000000000000000000000000000000000..7330ba7c8ff8b576f2f66e9abcc88a747e76c86c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/nt/nt82yx10SWkt0ha3Yqc-SAFdZHAqDXAVK73YJimQZ4g.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/nv/nvEoCDfcw6x4E5UkcRTP5TSx31tBywgT9C6Rvgde7BQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/nv/nvEoCDfcw6x4E5UkcRTP5TSx31tBywgT9C6Rvgde7BQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..159d5a808e2219adc38f9a7a2ba53116a40ab906 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/nv/nvEoCDfcw6x4E5UkcRTP5TSx31tBywgT9C6Rvgde7BQ.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=732c18f9e7de5e740efd5758b9b73e20999b139ddb02df353d7396571ebaee68:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/o3/o3Hk-iLLKB2tI4vpeK0LJ1nPNVkOlVNa18ZWVlUhNqY.cache b/T5/tmp/cache/assets/sprockets/v3.0/o3/o3Hk-iLLKB2tI4vpeK0LJ1nPNVkOlVNa18ZWVlUhNqY.cache new file mode 100644 index 0000000000000000000000000000000000000000..c8a57cdb7c0a70ac800519710bdb345995a61413 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/o3/o3Hk-iLLKB2tI4vpeK0LJ1nPNVkOlVNa18ZWVlUhNqY.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=301d91e9052067fb3fccad9605686f899cdd9d2122533b8055b6a017ee01d44a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/o6/o624k7F3e-UQrrkNyWZPX0J-2z8iA8SyO0lGJU3L0u0.cache b/T5/tmp/cache/assets/sprockets/v3.0/o6/o624k7F3e-UQrrkNyWZPX0J-2z8iA8SyO0lGJU3L0u0.cache new file mode 100644 index 0000000000000000000000000000000000000000..726e79d5fe89b86b0e8f38713132bf00063c0690 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/o6/o624k7F3e-UQrrkNyWZPX0J-2z8iA8SyO0lGJU3L0u0.cache @@ -0,0 +1 @@ +I"ä/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/resizable.js?type=application/javascript&pipeline=self&id=c190886addc68774bd04660e02393a05b6ff65bc6d5bdf91dd9f6654449e94f4:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/o7/o7ar75bQ1ktN7N0xFIJyBssJRdHrwnEw8qfhptgo8KU.cache b/T5/tmp/cache/assets/sprockets/v3.0/o7/o7ar75bQ1ktN7N0xFIJyBssJRdHrwnEw8qfhptgo8KU.cache new file mode 100644 index 0000000000000000000000000000000000000000..07983bab132e978f11c83f972fb4721270c0043c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/o7/o7ar75bQ1ktN7N0xFIJyBssJRdHrwnEw8qfhptgo8KU.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oC/oC1eMolmCg_z20gBT1lAryDoIFFf8cISoCCwm0MHAHA.cache b/T5/tmp/cache/assets/sprockets/v3.0/oC/oC1eMolmCg_z20gBT1lAryDoIFFf8cISoCCwm0MHAHA.cache new file mode 100644 index 0000000000000000000000000000000000000000..28a9f50d71e8d44387f5f2265a1b4659ec54bb6e --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/oC/oC1eMolmCg_z20gBT1lAryDoIFFf8cISoCCwm0MHAHA.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/categories.scss?type=text/css&pipeline=self&id=ce2def460f63b4fe9c4e71c816a16a122c779ee5eca9d4603263142b490ab121:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oH/oHZmI6J0d-QUeMTEQ0mn3bv5Xg5-yvfJ7lwywg1DUK8.cache b/T5/tmp/cache/assets/sprockets/v3.0/oH/oHZmI6J0d-QUeMTEQ0mn3bv5Xg5-yvfJ7lwywg1DUK8.cache new file mode 100644 index 0000000000000000000000000000000000000000..ca8902a0e963bd91f1da9b56d34a4ad39ce2616c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/oH/oHZmI6J0d-QUeMTEQ0mn3bv5Xg5-yvfJ7lwywg1DUK8.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=d48d47e0373f1b25b4aae5a0262a169b586ee4cab34f2330718451a4f9633b86:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oI/oI2UX78Nszri8YZRn2TpzvTH931qGwukfE7Rw5-ZoCw.cache b/T5/tmp/cache/assets/sprockets/v3.0/oI/oI2UX78Nszri8YZRn2TpzvTH931qGwukfE7Rw5-ZoCw.cache new file mode 100644 index 0000000000000000000000000000000000000000..cc927a5b45ce9d05676300eebb3e955ce874b2a3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/oI/oI2UX78Nszri8YZRn2TpzvTH931qGwukfE7Rw5-ZoCw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oS/oSme33Mlr_3LA5-IpkDDbo3UUXk3H4bP9ayx2P3YAU4.cache b/T5/tmp/cache/assets/sprockets/v3.0/oS/oSme33Mlr_3LA5-IpkDDbo3UUXk3H4bP9ayx2P3YAU4.cache new file mode 100644 index 0000000000000000000000000000000000000000..e63769207bb7ceefc4e91746c3b543be2457d340 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/oS/oSme33Mlr_3LA5-IpkDDbo3UUXk3H4bP9ayx2P3YAU4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oW/oWovTV4tMgrVQ4XVRKbg0HUNaYWAxqXwhj9KUNVWbXc.cache b/T5/tmp/cache/assets/sprockets/v3.0/oW/oWovTV4tMgrVQ4XVRKbg0HUNaYWAxqXwhj9KUNVWbXc.cache new file mode 100644 index 0000000000000000000000000000000000000000..65eb2de9b97286885cf4cb120f287f8b568dbb4a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/oW/oWovTV4tMgrVQ4XVRKbg0HUNaYWAxqXwhj9KUNVWbXc.cache @@ -0,0 +1 @@ +"%ñùÊódšhÿmŒô-«¨¡‘Ï OHfúø²woõ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/od/odOV9XMUG55XfKRa83AembRtZ27suKQKsAUH0MmdxFw.cache b/T5/tmp/cache/assets/sprockets/v3.0/od/odOV9XMUG55XfKRa83AembRtZ27suKQKsAUH0MmdxFw.cache new file mode 100644 index 0000000000000000000000000000000000000000..eac2e7c71166e91906e937676bf64a9ab11afc6d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/od/odOV9XMUG55XfKRa83AembRtZ27suKQKsAUH0MmdxFw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/oe/oeeD5ZyVRf1bm83vWksUFsPTz9kIoBDPz-rgs5-BacY.cache b/T5/tmp/cache/assets/sprockets/v3.0/oe/oeeD5ZyVRf1bm83vWksUFsPTz9kIoBDPz-rgs5-BacY.cache new file mode 100644 index 0000000000000000000000000000000000000000..f904a38fd4e059bd4f8f27fd9c8ab5cba703eff4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/oe/oeeD5ZyVRf1bm83vWksUFsPTz9kIoBDPz-rgs5-BacY.cache @@ -0,0 +1,2 @@ +"%$ +He-‹Ëý$Óõú©íé«Öíq2šK6C ƒ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ol/ol6BzBkaIvcEVTfo_b5c8-V2eHkPcytBeFSPOfuapfg.cache b/T5/tmp/cache/assets/sprockets/v3.0/ol/ol6BzBkaIvcEVTfo_b5c8-V2eHkPcytBeFSPOfuapfg.cache new file mode 100644 index 0000000000000000000000000000000000000000..18a82b2463f5b31f4ebe6927695ba545c1d585ff Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ol/ol6BzBkaIvcEVTfo_b5c8-V2eHkPcytBeFSPOfuapfg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ol/old5ctyOaODQUm0TxDtlplc3SEIhb88HsOBMw-mopsk.cache b/T5/tmp/cache/assets/sprockets/v3.0/ol/old5ctyOaODQUm0TxDtlplc3SEIhb88HsOBMw-mopsk.cache new file mode 100644 index 0000000000000000000000000000000000000000..356be7a459803151c4d0986fc2b5b0ab2db605b2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ol/old5ctyOaODQUm0TxDtlplc3SEIhb88HsOBMw-mopsk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/op/op9qk4mDgakPiDsv0oSqtJmI7yDfqWtA7mplOHGTFU8.cache b/T5/tmp/cache/assets/sprockets/v3.0/op/op9qk4mDgakPiDsv0oSqtJmI7yDfqWtA7mplOHGTFU8.cache new file mode 100644 index 0000000000000000000000000000000000000000..68a678840e80f205d9340c7de0fc684e0748b859 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/op/op9qk4mDgakPiDsv0oSqtJmI7yDfqWtA7mplOHGTFU8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/p0/p0gMuzZDERHqO1_hJCGto0ja_-rZu6BbpQucjKPPi6Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/p0/p0gMuzZDERHqO1_hJCGto0ja_-rZu6BbpQucjKPPi6Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..733a2d0ce7883013b11aa251dcd452ed3114c19d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/p0/p0gMuzZDERHqO1_hJCGto0ja_-rZu6BbpQucjKPPi6Q.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pR/pRJCKnFCgJwdcFViHte4IujzaSM59YRuQ9qhVwc6ZS4.cache b/T5/tmp/cache/assets/sprockets/v3.0/pR/pRJCKnFCgJwdcFViHte4IujzaSM59YRuQ9qhVwc6ZS4.cache new file mode 100644 index 0000000000000000000000000000000000000000..6debe8e4472b68a2cb1a8fd86e76ae2153130a32 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/pR/pRJCKnFCgJwdcFViHte4IujzaSM59YRuQ9qhVwc6ZS4.cache @@ -0,0 +1 @@ +I"è/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js?type=application/javascript&pipeline=self&id=858a240883e9300bce97fb3a7a92979561463dbd93a9ad083c9ecd20136f1e5e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pY/pY8vb85mpYEBmAzk3VZhbSL9-6wVAeR9qp-ZINBeVb4.cache b/T5/tmp/cache/assets/sprockets/v3.0/pY/pY8vb85mpYEBmAzk3VZhbSL9-6wVAeR9qp-ZINBeVb4.cache new file mode 100644 index 0000000000000000000000000000000000000000..35cf510a8b1f728efc7f554f4ef1ba63b3c696af --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/pY/pY8vb85mpYEBmAzk3VZhbSL9-6wVAeR9qp-ZINBeVb4.cache @@ -0,0 +1 @@ +"%>ðÉ.ýì˜l;Tó§_2ðÍIT”ØÆ”cÐḩ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pc/pcpPEljXEDvtR6yGVrhK9gZtiFc2Fb7F6ay-pYiPkIM.cache b/T5/tmp/cache/assets/sprockets/v3.0/pc/pcpPEljXEDvtR6yGVrhK9gZtiFc2Fb7F6ay-pYiPkIM.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/pc/pcpPEljXEDvtR6yGVrhK9gZtiFc2Fb7F6ay-pYiPkIM.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pe/pegIweuZUz6I0q5gzVnkkwnInq9j_i8Cc9CthsMSySc.cache b/T5/tmp/cache/assets/sprockets/v3.0/pe/pegIweuZUz6I0q5gzVnkkwnInq9j_i8Cc9CthsMSySc.cache new file mode 100644 index 0000000000000000000000000000000000000000..f3a3e55984f89f883ab8d73754077c21cd282742 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/pe/pegIweuZUz6I0q5gzVnkkwnInq9j_i8Cc9CthsMSySc.cache @@ -0,0 +1,2 @@ +"%ˆEÜrŽZ–ÍJM=Ö½ek +õrX’ËŠ@ÓKÒž$„ñ^ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ph/phAO132Wes5soIyU63jZlGft6_YtRZDgpDXH52X2Li8.cache b/T5/tmp/cache/assets/sprockets/v3.0/ph/phAO132Wes5soIyU63jZlGft6_YtRZDgpDXH52X2Li8.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ph/phAO132Wes5soIyU63jZlGft6_YtRZDgpDXH52X2Li8.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pj/pjN4WnHqYqh6zAhxz6B8Yl57UEv14-klMdrPQMBKiNE.cache b/T5/tmp/cache/assets/sprockets/v3.0/pj/pjN4WnHqYqh6zAhxz6B8Yl57UEv14-klMdrPQMBKiNE.cache new file mode 100644 index 0000000000000000000000000000000000000000..d8977d0c4bcacc155cbed19d55ca7ae5be2d1bb8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/pj/pjN4WnHqYqh6zAhxz6B8Yl57UEv14-klMdrPQMBKiNE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/pl/pl3qe-htSJQKyHnewidmE76S2gymg_xmQUnw956ep7Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/pl/pl3qe-htSJQKyHnewidmE76S2gymg_xmQUnw956ep7Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..8a6f2eee0742494762546e646a7fa2d629d3f98a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/pl/pl3qe-htSJQKyHnewidmE76S2gymg_xmQUnw956ep7Y.cache @@ -0,0 +1 @@ +I"ä/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/droppable.js?type=application/javascript&pipeline=self&id=41f981bb6d46515a3de0e8f8ddb9d5b6772f6b22161bd0d87af78a6f052aed7c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/po/po7fHjRSoYTzaRgszrtejxAzLcrZdPpbJ4M43LJmozU.cache b/T5/tmp/cache/assets/sprockets/v3.0/po/po7fHjRSoYTzaRgszrtejxAzLcrZdPpbJ4M43LJmozU.cache new file mode 100644 index 0000000000000000000000000000000000000000..445ad1dbc9bdfd2100943a5025f164c1bb32a397 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/po/po7fHjRSoYTzaRgszrtejxAzLcrZdPpbJ4M43LJmozU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/q6/q6ZvamfqlRUsspsOzMzLvJKlJBNSZbDmzr6iBhqacak.cache b/T5/tmp/cache/assets/sprockets/v3.0/q6/q6ZvamfqlRUsspsOzMzLvJKlJBNSZbDmzr6iBhqacak.cache new file mode 100644 index 0000000000000000000000000000000000000000..fe92b4a3087fed546c3af4351c5c44add06aa52d Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/q6/q6ZvamfqlRUsspsOzMzLvJKlJBNSZbDmzr6iBhqacak.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qM/qMZJg07nblOqFFpa8pm5QLdiAitoRQX2qT7rTVWRk5Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/qM/qMZJg07nblOqFFpa8pm5QLdiAitoRQX2qT7rTVWRk5Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..9cfb7ef97f7d4ca1da3f66b8253cb43da0b7305f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qM/qMZJg07nblOqFFpa8pm5QLdiAitoRQX2qT7rTVWRk5Y.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qU/qU-sNuG605nd8u81IlHtDJY0Jg1PAzfDSl8q_KQ5AoU.cache b/T5/tmp/cache/assets/sprockets/v3.0/qU/qU-sNuG605nd8u81IlHtDJY0Jg1PAzfDSl8q_KQ5AoU.cache new file mode 100644 index 0000000000000000000000000000000000000000..15ed363927cddbba053baad370aa156393662f08 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/qU/qU-sNuG605nd8u81IlHtDJY0Jg1PAzfDSl8q_KQ5AoU.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=78ada5b938feda22f0cc91e01d6b067ec562475f538a23ac3d396b84b1afcfa3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qa/qaWmUKYLrtvPr6wCtALAu84_-CZFBDcVw1_7lw1IG70.cache b/T5/tmp/cache/assets/sprockets/v3.0/qa/qaWmUKYLrtvPr6wCtALAu84_-CZFBDcVw1_7lw1IG70.cache new file mode 100644 index 0000000000000000000000000000000000000000..be5bae4831bb1085cf6a33b281867d3c1f004d0f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/qa/qaWmUKYLrtvPr6wCtALAu84_-CZFBDcVw1_7lw1IG70.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-slide.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"5file-digest://app/assets/config/jquery-ui/effect;TTI"5file-digest://app/assets/images/jquery-ui/effect;TTI":file-digest://app/assets/javascripts/jquery-ui/effect;TTI":file-digest://app/assets/stylesheets/jquery-ui/effect;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/effect;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/effect;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effect.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qg/qgyjYoZrhfsPZZlfDQ5mCEa69F4riteZ40J1_gZFpu4.cache b/T5/tmp/cache/assets/sprockets/v3.0/qg/qgyjYoZrhfsPZZlfDQ5mCEa69F4riteZ40J1_gZFpu4.cache new file mode 100644 index 0000000000000000000000000000000000000000..3218a482b3076516331fe2db4fd8235f1f090d06 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/qg/qgyjYoZrhfsPZZlfDQ5mCEa69F4riteZ40J1_gZFpu4.cache @@ -0,0 +1 @@ +"%Í~‰ë2%aã5ÀpÁ¼äLïJe5¿-,$Žo\2 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qm/qm0GQ-f1nS3HFYX2e4Ue4v4fSL1i4lrkAVHMEOHNMuk.cache b/T5/tmp/cache/assets/sprockets/v3.0/qm/qm0GQ-f1nS3HFYX2e4Ue4v4fSL1i4lrkAVHMEOHNMuk.cache new file mode 100644 index 0000000000000000000000000000000000000000..196158c1b34c066a5846a637c7df4af820ded2fe --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/qm/qm0GQ-f1nS3HFYX2e4Ue4v4fSL1i4lrkAVHMEOHNMuk.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=522c247ecc355c251845359a7b8f9c75932f89caf78eaace492c4043b88ce161:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qr/qr9hYCvqmLVgiH3O329XRDOwIj2xz7tcZPqwl0llRrM.cache b/T5/tmp/cache/assets/sprockets/v3.0/qr/qr9hYCvqmLVgiH3O329XRDOwIj2xz7tcZPqwl0llRrM.cache new file mode 100644 index 0000000000000000000000000000000000000000..0891f628e7cbf600932b93f55ad7a0930ad4e5d7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qr/qr9hYCvqmLVgiH3O329XRDOwIj2xz7tcZPqwl0llRrM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qt/qtIMz0v18EuadNBVBDxqNMwokwqnilf04vdDftGVeqI.cache b/T5/tmp/cache/assets/sprockets/v3.0/qt/qtIMz0v18EuadNBVBDxqNMwokwqnilf04vdDftGVeqI.cache new file mode 100644 index 0000000000000000000000000000000000000000..eb6d116a2de48495a54abf2a0cf86ea62eef15da Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qt/qtIMz0v18EuadNBVBDxqNMwokwqnilf04vdDftGVeqI.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qt/qtjU3R3OeZFhWqV7N986k_SWDk5IE5nmDurd-O2uC9k.cache b/T5/tmp/cache/assets/sprockets/v3.0/qt/qtjU3R3OeZFhWqV7N986k_SWDk5IE5nmDurd-O2uC9k.cache new file mode 100644 index 0000000000000000000000000000000000000000..76b4720930d1257afeb4fb85700f0bcca4ddefba Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qt/qtjU3R3OeZFhWqV7N986k_SWDk5IE5nmDurd-O2uC9k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qw/qwS0wxwXkLarOuSZAreSGJtCC63n5l0rctRiGzD4vhA.cache b/T5/tmp/cache/assets/sprockets/v3.0/qw/qwS0wxwXkLarOuSZAreSGJtCC63n5l0rctRiGzD4vhA.cache new file mode 100644 index 0000000000000000000000000000000000000000..ce101c4c95130bed4541752be7acd7cd97673d25 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qw/qwS0wxwXkLarOuSZAreSGJtCC63n5l0rctRiGzD4vhA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/qz/qzcd5wHvk8EB2wjGtgWCuZCyGgwNwJLWLXD5uRrfNro.cache b/T5/tmp/cache/assets/sprockets/v3.0/qz/qzcd5wHvk8EB2wjGtgWCuZCyGgwNwJLWLXD5uRrfNro.cache new file mode 100644 index 0000000000000000000000000000000000000000..a75db120e4bc6dcf61d82ae7d81dd000bc4a3e54 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/qz/qzcd5wHvk8EB2wjGtgWCuZCyGgwNwJLWLXD5uRrfNro.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/r2/r288yzfn4swQM3yoVK5fTv8GeInPBj40jNV_8VL2Kpw.cache b/T5/tmp/cache/assets/sprockets/v3.0/r2/r288yzfn4swQM3yoVK5fTv8GeInPBj40jNV_8VL2Kpw.cache new file mode 100644 index 0000000000000000000000000000000000000000..7dd4b49a913b75b0fb795cc1e024e71680c5efff Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/r2/r288yzfn4swQM3yoVK5fTv8GeInPBj40jNV_8VL2Kpw.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rD/rD_rBZKF7MbA_NvkoErYgkqw1zALn6m3Cs-z2Il15hk.cache b/T5/tmp/cache/assets/sprockets/v3.0/rD/rD_rBZKF7MbA_NvkoErYgkqw1zALn6m3Cs-z2Il15hk.cache new file mode 100644 index 0000000000000000000000000000000000000000..1e050611f309b5a4f58e8fe40c03ccdd5d0f56d7 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rD/rD_rBZKF7MbA_NvkoErYgkqw1zALn6m3Cs-z2Il15hk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rF/rFpu-bjUx9r1fQD1701TkYiLwSWjIHgeIX4LjNr9who.cache b/T5/tmp/cache/assets/sprockets/v3.0/rF/rFpu-bjUx9r1fQD1701TkYiLwSWjIHgeIX4LjNr9who.cache new file mode 100644 index 0000000000000000000000000000000000000000..8b5c1556a3c15d749364fbf9eb2082fc2d0d3435 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rF/rFpu-bjUx9r1fQD1701TkYiLwSWjIHgeIX4LjNr9who.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rI/rIeNeFplb5VxcskDot3I472SEaunOw10qnybPTVDvCA.cache b/T5/tmp/cache/assets/sprockets/v3.0/rI/rIeNeFplb5VxcskDot3I472SEaunOw10qnybPTVDvCA.cache new file mode 100644 index 0000000000000000000000000000000000000000..b167501e585fccea62fa0ad5946293f52ec28bb4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rI/rIeNeFplb5VxcskDot3I472SEaunOw10qnybPTVDvCA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rT/rT8mJLs8-45L9IJBlPcU4nNOIZTIHCepLhqKRUdpUiU.cache b/T5/tmp/cache/assets/sprockets/v3.0/rT/rT8mJLs8-45L9IJBlPcU4nNOIZTIHCepLhqKRUdpUiU.cache new file mode 100644 index 0000000000000000000000000000000000000000..4dc056b7cf4bb3f5485cc80eb74661fe1bf040b4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rT/rT8mJLs8-45L9IJBlPcU4nNOIZTIHCepLhqKRUdpUiU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/r_/r_gLYYR4FzxSETbbKwnXLnK3UAMBU8rn3kEmoxLp9yY.cache b/T5/tmp/cache/assets/sprockets/v3.0/r_/r_gLYYR4FzxSETbbKwnXLnK3UAMBU8rn3kEmoxLp9yY.cache new file mode 100644 index 0000000000000000000000000000000000000000..e6b9a3c25089b8d7fdfe5debf0ecdf802dd1eac2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/r_/r_gLYYR4FzxSETbbKwnXLnK3UAMBU8rn3kEmoxLp9yY.cache @@ -0,0 +1 @@ +"%å¥ß[éC* ÇXwÒÍ4ý!ÇKÏ¡¸òH¶;¹Gí \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rf/rf_yVBVVo2L22qDrUdIC-QkDOHYozmSEBW-dF-WHS0k.cache b/T5/tmp/cache/assets/sprockets/v3.0/rf/rf_yVBVVo2L22qDrUdIC-QkDOHYozmSEBW-dF-WHS0k.cache new file mode 100644 index 0000000000000000000000000000000000000000..257e3c982e76b1a4e1ae8ed090d5a1c6075bdb71 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rf/rf_yVBVVo2L22qDrUdIC-QkDOHYozmSEBW-dF-WHS0k.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rk/rk0d4sGjul5KgR0w3lSvkRlOkxOZZu85GlrUrF23sxs.cache b/T5/tmp/cache/assets/sprockets/v3.0/rk/rk0d4sGjul5KgR0w3lSvkRlOkxOZZu85GlrUrF23sxs.cache new file mode 100644 index 0000000000000000000000000000000000000000..d45fa5d7cd893a84defec4c4e65332c632452762 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/rk/rk0d4sGjul5KgR0w3lSvkRlOkxOZZu85GlrUrF23sxs.cache @@ -0,0 +1 @@ +"%3â ™3…UÍ‹ØGŒùˇvn¬'ÞÐe¨øvê’` \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ro/rost0-dfLwY3e8jpR2sAPo_A02VPsCysQZUlRfHTLKo.cache b/T5/tmp/cache/assets/sprockets/v3.0/ro/rost0-dfLwY3e8jpR2sAPo_A02VPsCysQZUlRfHTLKo.cache new file mode 100644 index 0000000000000000000000000000000000000000..6e74d13f9eb4e940dfc1c84b21fbf8147d755968 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ro/rost0-dfLwY3e8jpR2sAPo_A02VPsCysQZUlRfHTLKo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rs/rstTsUL14M810lBmGfx8yGd6B0fX_wtDdDuM4WGsNyo.cache b/T5/tmp/cache/assets/sprockets/v3.0/rs/rstTsUL14M810lBmGfx8yGd6B0fX_wtDdDuM4WGsNyo.cache new file mode 100644 index 0000000000000000000000000000000000000000..404ac33dd4188070073deff2faf16d2b409d3a66 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rs/rstTsUL14M810lBmGfx8yGd6B0fX_wtDdDuM4WGsNyo.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rv/rv8yBYwyddnQkTkbb_RXaGtkweWpnUJAoyxextWKiA8.cache b/T5/tmp/cache/assets/sprockets/v3.0/rv/rv8yBYwyddnQkTkbb_RXaGtkweWpnUJAoyxextWKiA8.cache new file mode 100644 index 0000000000000000000000000000000000000000..d980ec9b3920192e3b769cff5c78ab8f0ce8fedb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rv/rv8yBYwyddnQkTkbb_RXaGtkweWpnUJAoyxextWKiA8.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rx/rx3cTun0_UgdO8ncl3ri0tkmHBEBhHrJxhsTC-TyVUE.cache b/T5/tmp/cache/assets/sprockets/v3.0/rx/rx3cTun0_UgdO8ncl3ri0tkmHBEBhHrJxhsTC-TyVUE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f954eb48c100bc2d004b0fcd4df23a6efc8cb144 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/rx/rx3cTun0_UgdO8ncl3ri0tkmHBEBhHrJxhsTC-TyVUE.cache @@ -0,0 +1 @@ +I"“app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=e0379eae303e4e115e7071de977821b94f251b3738ce988e7135f2993695acc3:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/rx/rxQz5dsSLPpOfks083RtPoH9uX3k4mrg5_iEfKzwGyM.cache b/T5/tmp/cache/assets/sprockets/v3.0/rx/rxQz5dsSLPpOfks083RtPoH9uX3k4mrg5_iEfKzwGyM.cache new file mode 100644 index 0000000000000000000000000000000000000000..9671d1092e4c41121120e41158ebf022dd390ab9 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/rx/rxQz5dsSLPpOfks083RtPoH9uX3k4mrg5_iEfKzwGyM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/s-/s-UbwFE1F4BfL-zxq3hV6SC3mwhRRsmW6ggWbiKuSHU.cache b/T5/tmp/cache/assets/sprockets/v3.0/s-/s-UbwFE1F4BfL-zxq3hV6SC3mwhRRsmW6ggWbiKuSHU.cache new file mode 100644 index 0000000000000000000000000000000000000000..41f447133615672f7602cc9d4da4385c75451adb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/s-/s-UbwFE1F4BfL-zxq3hV6SC3mwhRRsmW6ggWbiKuSHU.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=a201d036dcce6a5fc24e66b5187ac3d10e20506e919fefd2cf4d78d92ce0870c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/s0/s0IYQDImpw9ZPz5SLOLivg4oeac6JHeR9HnBdAw9cPM.cache b/T5/tmp/cache/assets/sprockets/v3.0/s0/s0IYQDImpw9ZPz5SLOLivg4oeac6JHeR9HnBdAw9cPM.cache new file mode 100644 index 0000000000000000000000000000000000000000..5f0f8d4efbae09a13add4d33b8f51943e9191f04 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/s0/s0IYQDImpw9ZPz5SLOLivg4oeac6JHeR9HnBdAw9cPM.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}!I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"…file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/datepicker.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTI"6file-digest://app/assets/config/jquery-ui/keycode;TTI"6file-digest://app/assets/images/jquery-ui/keycode;TTI";file-digest://app/assets/javascripts/jquery-ui/keycode;TTI";file-digest://app/assets/stylesheets/jquery-ui/keycode;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/keycode;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/keycode;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/s2/s21a2wL0sgFSZ7tKR6ftyUX6v3NzGh1RmrBcGrOfn4g.cache b/T5/tmp/cache/assets/sprockets/v3.0/s2/s21a2wL0sgFSZ7tKR6ftyUX6v3NzGh1RmrBcGrOfn4g.cache new file mode 100644 index 0000000000000000000000000000000000000000..18e518eaa45d188eb6b0bf810ead808f974006f6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/s2/s21a2wL0sgFSZ7tKR6ftyUX6v3NzGh1RmrBcGrOfn4g.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sC/sCY7O4W2r30wF5QYIayVcBGvqCQP9nHc816rmGpcwcI.cache b/T5/tmp/cache/assets/sprockets/v3.0/sC/sCY7O4W2r30wF5QYIayVcBGvqCQP9nHc816rmGpcwcI.cache new file mode 100644 index 0000000000000000000000000000000000000000..080ce2e552666b6927842a39d12d0d5c4c874177 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sC/sCY7O4W2r30wF5QYIayVcBGvqCQP9nHc816rmGpcwcI.cache @@ -0,0 +1,2 @@ +"%÷ð +7Å8ÉrvMÊ7m¹À.Þ‹¦vn´]MÊ}å„ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sN/sNAn6veYDV-y1TUmDiowRnki4Uh8Xmyh9Wu4laZschc.cache b/T5/tmp/cache/assets/sprockets/v3.0/sN/sNAn6veYDV-y1TUmDiowRnki4Uh8Xmyh9Wu4laZschc.cache new file mode 100644 index 0000000000000000000000000000000000000000..4b9d2de41c486d040a16f020b5b94a85c8acb437 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sN/sNAn6veYDV-y1TUmDiowRnki4Uh8Xmyh9Wu4laZschc.cache @@ -0,0 +1 @@ +I"ç/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-scale.js?type=application/javascript&pipeline=self&id=c2621d4324a284548a83eddc6feb544300e5e01a327394cc1366d7c98bcc03c5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sO/sOkJC0wf8PSdPSDL15G0tC2KOjsKLrZbI-D3cMc5oX4.cache b/T5/tmp/cache/assets/sprockets/v3.0/sO/sOkJC0wf8PSdPSDL15G0tC2KOjsKLrZbI-D3cMc5oX4.cache new file mode 100644 index 0000000000000000000000000000000000000000..7ec1a6eb8be3f871eab919826d52fe8dd3032708 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sO/sOkJC0wf8PSdPSDL15G0tC2KOjsKLrZbI-D3cMc5oX4.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=4bd0a4a13020bd4460908c33f4ef095845311facde6ddaeca80e6208feb3763f:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sO/sOuo0G8z0on28kBMW0W9k0ZSTau34ZaT8r2uGOjcz2Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/sO/sOuo0G8z0on28kBMW0W9k0ZSTau34ZaT8r2uGOjcz2Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..36dfbe7539a590ae479350f63bbc61669b22fc08 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sO/sOuo0G8z0on28kBMW0W9k0ZSTau34ZaT8r2uGOjcz2Q.cache @@ -0,0 +1 @@ +"%kvÀÈÔ<*öqaÂðPÒÉÉíÑ”•Dqu{=Å}ºj \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sW/sWPmgkm_Tem_I50cCdqagdEePM6fI3IB35SN704rO3M.cache b/T5/tmp/cache/assets/sprockets/v3.0/sW/sWPmgkm_Tem_I50cCdqagdEePM6fI3IB35SN704rO3M.cache new file mode 100644 index 0000000000000000000000000000000000000000..b9800db3e81c8094b60c1e6fd9332a882be4d7e0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sW/sWPmgkm_Tem_I50cCdqagdEePM6fI3IB35SN704rO3M.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"‡file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/controlgroup.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI".file-digest://app/assets/images/jquery-ui;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sY/sYDtUNWVnAP8oDuOLZjZKLN1Oteia73NFpeYBkB2ZmU.cache b/T5/tmp/cache/assets/sprockets/v3.0/sY/sYDtUNWVnAP8oDuOLZjZKLN1Oteia73NFpeYBkB2ZmU.cache new file mode 100644 index 0000000000000000000000000000000000000000..2f433891ea74505620f0c29b2ad7d23ad69fd3c4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/sY/sYDtUNWVnAP8oDuOLZjZKLN1Oteia73NFpeYBkB2ZmU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sY/sYTSiD1dFW6gw23-7xFzlVhyuPOmzCXwEv7mSB4i5Fk.cache b/T5/tmp/cache/assets/sprockets/v3.0/sY/sYTSiD1dFW6gw23-7xFzlVhyuPOmzCXwEv7mSB4i5Fk.cache new file mode 100644 index 0000000000000000000000000000000000000000..ab8648cac80095797511bcb9df8d0ad25108d357 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/sY/sYTSiD1dFW6gw23-7xFzlVhyuPOmzCXwEv7mSB4i5Fk.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sh/shwGD_A9ES5nRuxuy84rQwwIZngJrSfkDRPWGn6LmXk.cache b/T5/tmp/cache/assets/sprockets/v3.0/sh/shwGD_A9ES5nRuxuy84rQwwIZngJrSfkDRPWGn6LmXk.cache new file mode 100644 index 0000000000000000000000000000000000000000..be81ca380b8b43d226527c8757be7809c3bd7fdd --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sh/shwGD_A9ES5nRuxuy84rQwwIZngJrSfkDRPWGn6LmXk.cache @@ -0,0 +1 @@ +"%™fµd,;ûÄ5¹mç ÚŒ.?¶|ôàl7 >Š¶Ø \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sy/syDEyLL9EuWo2dD2Dpm34HO7Nzol7AEb9BV_IKJiBy0.cache b/T5/tmp/cache/assets/sprockets/v3.0/sy/syDEyLL9EuWo2dD2Dpm34HO7Nzol7AEb9BV_IKJiBy0.cache new file mode 100644 index 0000000000000000000000000000000000000000..22fe5da6c61a49453192205d268df6febe4e81da --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sy/syDEyLL9EuWo2dD2Dpm34HO7Nzol7AEb9BV_IKJiBy0.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=c9ee45ea920493674dfedb6dc6f3e2ec2dbcddb1299ac322eb4f2c42de1c4e35:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/sy/sys4ItJYMVwQsewb1pexwqvVOBbqrmuGGnQdmLO3KBA.cache b/T5/tmp/cache/assets/sprockets/v3.0/sy/sys4ItJYMVwQsewb1pexwqvVOBbqrmuGGnQdmLO3KBA.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/sy/sys4ItJYMVwQsewb1pexwqvVOBbqrmuGGnQdmLO3KBA.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/t0/t0PvE7ouGoeTwWa9B3toxyo_lXx9GyiL4O6b4uU9zmc.cache b/T5/tmp/cache/assets/sprockets/v3.0/t0/t0PvE7ouGoeTwWa9B3toxyo_lXx9GyiL4O6b4uU9zmc.cache new file mode 100644 index 0000000000000000000000000000000000000000..688bb12626b2a681f6f61ad89435e6a3cf8b9e65 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/t0/t0PvE7ouGoeTwWa9B3toxyo_lXx9GyiL4O6b4uU9zmc.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tH/tHOhayGYXVHXz9uISdFfAdyTnoeVix7Pr4M8HYLpvNQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/tH/tHOhayGYXVHXz9uISdFfAdyTnoeVix7Pr4M8HYLpvNQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..4a4bf01f2868ceb5c914763997e704fbdb54bc4f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/tH/tHOhayGYXVHXz9uISdFfAdyTnoeVix7Pr4M8HYLpvNQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tH/tHoKz9FKfah_ITClbAmYczQPttZTPHfPQu2lzfu_r-w.cache b/T5/tmp/cache/assets/sprockets/v3.0/tH/tHoKz9FKfah_ITClbAmYczQPttZTPHfPQu2lzfu_r-w.cache new file mode 100644 index 0000000000000000000000000000000000000000..4cc5ba7a9a1e392edd65030fd9f96e8f687412bc --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tH/tHoKz9FKfah_ITClbAmYczQPttZTPHfPQu2lzfu_r-w.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=22f18de29e523499e804cfcdab0d95242e99f3b6f14a86a088a2208d7f742233:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tN/tNoPxIoSeY7lPPMn6RVK9onYUpODSnI3g3dG7bBC13s.cache b/T5/tmp/cache/assets/sprockets/v3.0/tN/tNoPxIoSeY7lPPMn6RVK9onYUpODSnI3g3dG7bBC13s.cache new file mode 100644 index 0000000000000000000000000000000000000000..516d2cc82bd530a8a31825e32440b09cf7563eb8 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/tN/tNoPxIoSeY7lPPMn6RVK9onYUpODSnI3g3dG7bBC13s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tN/tNxAcp6p8ftdY6isruvTqvBvqAOvdzvQBoJvO3Gdxdg.cache b/T5/tmp/cache/assets/sprockets/v3.0/tN/tNxAcp6p8ftdY6isruvTqvBvqAOvdzvQBoJvO3Gdxdg.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tN/tNxAcp6p8ftdY6isruvTqvBvqAOvdzvQBoJvO3Gdxdg.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tQ/tQqX8DQ3IhYSLVl4OYX_yKxnEES8umcONZ02HRVI3eg.cache b/T5/tmp/cache/assets/sprockets/v3.0/tQ/tQqX8DQ3IhYSLVl4OYX_yKxnEES8umcONZ02HRVI3eg.cache new file mode 100644 index 0000000000000000000000000000000000000000..f908ef54560bdbc24fa804816b3371c3105c0595 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/tQ/tQqX8DQ3IhYSLVl4OYX_yKxnEES8umcONZ02HRVI3eg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tb/tbkxMwB3aoRxD4sY7bl9cYrjCvR-Yov9OMPHDH8mxXg.cache b/T5/tmp/cache/assets/sprockets/v3.0/tb/tbkxMwB3aoRxD4sY7bl9cYrjCvR-Yov9OMPHDH8mxXg.cache new file mode 100644 index 0000000000000000000000000000000000000000..f5b79fcce0de2b090a49b4db0ddfb9a834d95e2a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tb/tbkxMwB3aoRxD4sY7bl9cYrjCvR-Yov9OMPHDH8mxXg.cache @@ -0,0 +1 @@ +"%›Ã·O-uý[wùÆ-wè_a_1¬¶¦0òZCg \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tf/tfvyfWIG-W_S2SHp0kmuGALQgULkUQMUTgKeUmKFj64.cache b/T5/tmp/cache/assets/sprockets/v3.0/tf/tfvyfWIG-W_S2SHp0kmuGALQgULkUQMUTgKeUmKFj64.cache new file mode 100644 index 0000000000000000000000000000000000000000..0a4da80e0daf3a89260a5bcd8db85db5de3ed513 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tf/tfvyfWIG-W_S2SHp0kmuGALQgULkUQMUTgKeUmKFj64.cache @@ -0,0 +1 @@ +I"æ/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-clip.js?type=application/javascript&pipeline=self&id=5f319bcf34285104be060840b21943629b31b5332f2977bf62132039fccef9f5:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tg/tgXjy15r0IxmCs5XUhlVYZX5DfNzYuqAmTYFC_vPBBE.cache b/T5/tmp/cache/assets/sprockets/v3.0/tg/tgXjy15r0IxmCs5XUhlVYZX5DfNzYuqAmTYFC_vPBBE.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tg/tgXjy15r0IxmCs5XUhlVYZX5DfNzYuqAmTYFC_vPBBE.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tg/tgYBPUtXO6djimwyJYEZle-hjVhaiFKPf2fRhMSUn9w.cache b/T5/tmp/cache/assets/sprockets/v3.0/tg/tgYBPUtXO6djimwyJYEZle-hjVhaiFKPf2fRhMSUn9w.cache new file mode 100644 index 0000000000000000000000000000000000000000..7b1721f4ac3b30910679507a41c2de20afff35b3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/tg/tgYBPUtXO6djimwyJYEZle-hjVhaiFKPf2fRhMSUn9w.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=7d8f2b93dd3a1463f2b3d4ee4e6da25d2d77fa4cc0fa2b5b2a06fb661ceb7fbb:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tl/tlTEPpKQkarWEa9rxC9bYe3a0Lsa8IlhZlV7HgyhADM.cache b/T5/tmp/cache/assets/sprockets/v3.0/tl/tlTEPpKQkarWEa9rxC9bYe3a0Lsa8IlhZlV7HgyhADM.cache new file mode 100644 index 0000000000000000000000000000000000000000..3f566a2f85e94636785e35a69417ab85ee38aec5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/tl/tlTEPpKQkarWEa9rxC9bYe3a0Lsa8IlhZlV7HgyhADM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/tz/tzWOeBtf9Wrb7v4eGPD-pNMhaZHzGspmC6l68vfJoZg.cache b/T5/tmp/cache/assets/sprockets/v3.0/tz/tzWOeBtf9Wrb7v4eGPD-pNMhaZHzGspmC6l68vfJoZg.cache new file mode 100644 index 0000000000000000000000000000000000000000..7f26ee8a1278c8f3aa9cef6903ba59a4646b2563 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/tz/tzWOeBtf9Wrb7v4eGPD-pNMhaZHzGspmC6l68vfJoZg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/u8/u8NXHx1jeEZi60P_yFX-8muFDTMa1jKw0YBXBO2BFIc.cache b/T5/tmp/cache/assets/sprockets/v3.0/u8/u8NXHx1jeEZi60P_yFX-8muFDTMa1jKw0YBXBO2BFIc.cache new file mode 100644 index 0000000000000000000000000000000000000000..2608eb539f47b46d91d7cd14b72d71c1f42fd2e9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/u8/u8NXHx1jeEZi60P_yFX-8muFDTMa1jKw0YBXBO2BFIc.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=bb1782a195706c0b68da17dca9c3590ac3383cdb6f37536f26972e7153d2f6e8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uG/uG1zv4K4vJLQVi5foKQjgKhtdvKhEAq9apW0EIrk-D4.cache b/T5/tmp/cache/assets/sprockets/v3.0/uG/uG1zv4K4vJLQVi5foKQjgKhtdvKhEAq9apW0EIrk-D4.cache new file mode 100644 index 0000000000000000000000000000000000000000..4f6048a21ae63a7458aa41d2e26f19ed3ca2a15f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/uG/uG1zv4K4vJLQVi5foKQjgKhtdvKhEAq9apW0EIrk-D4.cache @@ -0,0 +1 @@ +I"Ý/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/jquery-1-7.js?type=application/javascript&pipeline=self&id=4cb915ded0ffc3c7a2479df428c0d6c91df7f4d678979c2ef9b916bbb741bb6c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uI/uIBRUhmnM8gLDs7MX9F5khYbMV2V-p-g2TkGxjahmx0.cache b/T5/tmp/cache/assets/sprockets/v3.0/uI/uIBRUhmnM8gLDs7MX9F5khYbMV2V-p-g2TkGxjahmx0.cache new file mode 100644 index 0000000000000000000000000000000000000000..ec079dc8471ef452c76b8093e748da9365d31756 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/uI/uIBRUhmnM8gLDs7MX9F5khYbMV2V-p-g2TkGxjahmx0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uK/uKByYn-QE6ISOySKTfpI9q4P4ep4Ykl5sSMwcfSkJBU.cache b/T5/tmp/cache/assets/sprockets/v3.0/uK/uKByYn-QE6ISOySKTfpI9q4P4ep4Ykl5sSMwcfSkJBU.cache new file mode 100644 index 0000000000000000000000000000000000000000..94e7eebdd5901c0712a8c21a985c1d1d2cd71de5 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/uK/uKByYn-QE6ISOySKTfpI9q4P4ep4Ykl5sSMwcfSkJBU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uS/uSBNMotI_iZ5NXIz5NNfDahqi_yahQ3lTvG12a1ws2s.cache b/T5/tmp/cache/assets/sprockets/v3.0/uS/uSBNMotI_iZ5NXIz5NNfDahqi_yahQ3lTvG12a1ws2s.cache new file mode 100644 index 0000000000000000000000000000000000000000..89093f7130b633c50d85eabcc3c802ed1f08c420 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/uS/uSBNMotI_iZ5NXIz5NNfDahqi_yahQ3lTvG12a1ws2s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uW/uWhbZlF6btvbbhAsGKTOcZVJJEE11KCa4H6TYdRG2XE.cache b/T5/tmp/cache/assets/sprockets/v3.0/uW/uWhbZlF6btvbbhAsGKTOcZVJJEE11KCa4H6TYdRG2XE.cache new file mode 100644 index 0000000000000000000000000000000000000000..05b45e5ffcc0c7b4d7269cd59706d308d4636112 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/uW/uWhbZlF6btvbbhAsGKTOcZVJJEE11KCa4H6TYdRG2XE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/u_/u_-KX_oD0Th4DAkdDiuN2P9JE4YAwhIg4TXCFEMU6iY.cache b/T5/tmp/cache/assets/sprockets/v3.0/u_/u_-KX_oD0Th4DAkdDiuN2P9JE4YAwhIg4TXCFEMU6iY.cache new file mode 100644 index 0000000000000000000000000000000000000000..c4e519aeaaddc49e04afa173e073a632ed56a6a6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/u_/u_-KX_oD0Th4DAkdDiuN2P9JE4YAwhIg4TXCFEMU6iY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ub/ubETa0q7vUoLd71BjsalDmsLUeF87eZ0de_hmZG2A5o.cache b/T5/tmp/cache/assets/sprockets/v3.0/ub/ubETa0q7vUoLd71BjsalDmsLUeF87eZ0de_hmZG2A5o.cache new file mode 100644 index 0000000000000000000000000000000000000000..92f5c16cd8f47e54480c49df6e0888de5a2bf16a Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/ub/ubETa0q7vUoLd71BjsalDmsLUeF87eZ0de_hmZG2A5o.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ud/udoEsUrBcBbu2se3uqbrtGIQDrRf1BoFhuz9mOwYOwA.cache b/T5/tmp/cache/assets/sprockets/v3.0/ud/udoEsUrBcBbu2se3uqbrtGIQDrRf1BoFhuz9mOwYOwA.cache new file mode 100644 index 0000000000000000000000000000000000000000..f8bcbe1332fe29b31461d1409f4020b94375aa84 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ud/udoEsUrBcBbu2se3uqbrtGIQDrRf1BoFhuz9mOwYOwA.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=ccc866b6a5d14342ad6f79a18332542e00aaf3e6cf118504141ed4227924f9d8:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ug/ugyORsGwjK6i7Lz5qBxR_HqDv8Wyh8fr3Yf9g7-gu-Q.cache b/T5/tmp/cache/assets/sprockets/v3.0/ug/ugyORsGwjK6i7Lz5qBxR_HqDv8Wyh8fr3Yf9g7-gu-Q.cache new file mode 100644 index 0000000000000000000000000000000000000000..25ac92da8c9c56a8c152355419afc71eebeb0133 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ug/ugyORsGwjK6i7Lz5qBxR_HqDv8Wyh8fr3Yf9g7-gu-Q.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/position.js;TTI".file-digest://app/assets/config/jquery-ui;TTI"6file-digest://app/assets/config/jquery-ui/version;TTI".file-digest://app/assets/images/jquery-ui;TTI"6file-digest://app/assets/images/jquery-ui/version;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI";file-digest://app/assets/javascripts/jquery-ui/version;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI";file-digest://app/assets/stylesheets/jquery-ui/version;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"yfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/version;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"wfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/version;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/version.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uk/ukB_eQ2-qanqPwBU--xSbQkEMU7mIMpHH-XgCA6LRso.cache b/T5/tmp/cache/assets/sprockets/v3.0/uk/ukB_eQ2-qanqPwBU--xSbQkEMU7mIMpHH-XgCA6LRso.cache new file mode 100644 index 0000000000000000000000000000000000000000..845a19b03d7facb051f45471adcfd1e97165359d --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/uk/ukB_eQ2-qanqPwBU--xSbQkEMU7mIMpHH-XgCA6LRso.cache @@ -0,0 +1 @@ +"%5ÛæÑùºË™íPž¨¡‚®É%à°:?xcÓ$—:n \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/um/um6DHSPNMoH-8nzuPGqquQXo9xUJ9DopKlvEmzPKmJ4.cache b/T5/tmp/cache/assets/sprockets/v3.0/um/um6DHSPNMoH-8nzuPGqquQXo9xUJ9DopKlvEmzPKmJ4.cache new file mode 100644 index 0000000000000000000000000000000000000000..8a6cadcbf343835a7a7b730d35ce0bea76b3416a --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/um/um6DHSPNMoH-8nzuPGqquQXo9xUJ9DopKlvEmzPKmJ4.cache @@ -0,0 +1 @@ +"%ËÍ%Ñáö?Îa>6—(8äç’Ï¥>jÌ™aUz \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uo/uo7cDUElr4F0NLKk2RUyEh82F5UCm-69vxaOqwfNI6g.cache b/T5/tmp/cache/assets/sprockets/v3.0/uo/uo7cDUElr4F0NLKk2RUyEh82F5UCm-69vxaOqwfNI6g.cache new file mode 100644 index 0000000000000000000000000000000000000000..bc63b322847cbbeff81f1277e5c9058de0f1860f --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/uo/uo7cDUElr4F0NLKk2RUyEh82F5UCm-69vxaOqwfNI6g.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=9e5125d67c37d749ebbff9f63efd27309019d551fb2518d0178afa5c5e8bb323:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uo/uoy7FXIg-nO2DzAuY4251Q0pboSV4S3Lh6dr2P1tsts.cache b/T5/tmp/cache/assets/sprockets/v3.0/uo/uoy7FXIg-nO2DzAuY4251Q0pboSV4S3Lh6dr2P1tsts.cache new file mode 100644 index 0000000000000000000000000000000000000000..2d27201f5955dd0c44da3f8083c950ab2c9ef541 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/uo/uoy7FXIg-nO2DzAuY4251Q0pboSV4S3Lh6dr2P1tsts.cache @@ -0,0 +1 @@ +I"å/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/selectmenu.js?type=application/javascript&pipeline=self&id=cb7611e07be69111080813702eb002b69ba016b04eeb56fec62eaffab1f87507:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ur/urFMhJ9j8x2BfNT0H6G2cT5PAqlrodhsJgn68gc5BdU.cache b/T5/tmp/cache/assets/sprockets/v3.0/ur/urFMhJ9j8x2BfNT0H6G2cT5PAqlrodhsJgn68gc5BdU.cache new file mode 100644 index 0000000000000000000000000000000000000000..48f5d89317fd2136b64bee97d46855c32f796b13 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ur/urFMhJ9j8x2BfNT0H6G2cT5PAqlrodhsJgn68gc5BdU.cache @@ -0,0 +1,2 @@ +"%m›¬2˜“@ +mñµiïú3h/`õÉÆ}YœRWj \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/uy/uyEPR5Fc78t24NppvRTu21TU_bfoj241kU80Sh2kfnE.cache b/T5/tmp/cache/assets/sprockets/v3.0/uy/uyEPR5Fc78t24NppvRTu21TU_bfoj241kU80Sh2kfnE.cache new file mode 100644 index 0000000000000000000000000000000000000000..0d46c768a2a1aa4c447f532556324438a58e9e2f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/uy/uyEPR5Fc78t24NppvRTu21TU_bfoj241kU80Sh2kfnE.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/v0/v0Q_7s0mTtYqLp0JLCWfihAYseMopHYEHjTRddXok9Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/v0/v0Q_7s0mTtYqLp0JLCWfihAYseMopHYEHjTRddXok9Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..8c35ad8656ade73dde7766ae5096e77102133cf3 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/v0/v0Q_7s0mTtYqLp0JLCWfihAYseMopHYEHjTRddXok9Y.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vI/vIayVs8gZXcZjJ_Pl3ogLrn_dW2agObf08RpE3z20ew.cache b/T5/tmp/cache/assets/sprockets/v3.0/vI/vIayVs8gZXcZjJ_Pl3ogLrn_dW2agObf08RpE3z20ew.cache new file mode 100644 index 0000000000000000000000000000000000000000..785b965676fad0dbba51e38386ae32ca7e0be505 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/vI/vIayVs8gZXcZjJ_Pl3ogLrn_dW2agObf08RpE3z20ew.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vK/vK6c9iQ5WkvzwnBsRZsm2B-hLVKE5JgI0jHtWjU_y0g.cache b/T5/tmp/cache/assets/sprockets/v3.0/vK/vK6c9iQ5WkvzwnBsRZsm2B-hLVKE5JgI0jHtWjU_y0g.cache new file mode 100644 index 0000000000000000000000000000000000000000..273b58067e07f42da7a0f148ce5a5d5302f5bc64 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vK/vK6c9iQ5WkvzwnBsRZsm2B-hLVKE5JgI0jHtWjU_y0g.cache @@ -0,0 +1 @@ +"%/E&£ c'“Nk'îä.þ°õD¦XNTHÁ×6β \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_Q9rygYWvZrfCyPvtkQ__nAUKDV6HRzviBKXmC4-0.cache b/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_Q9rygYWvZrfCyPvtkQ__nAUKDV6HRzviBKXmC4-0.cache new file mode 100644 index 0000000000000000000000000000000000000000..1773fe947a7b8d86f638a55c0f58ae3089f5355c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_Q9rygYWvZrfCyPvtkQ__nAUKDV6HRzviBKXmC4-0.cache @@ -0,0 +1 @@ +I"Û/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/position.js?type=application/javascript&pipeline=self&id=67d22de90e5520de82a19961f279dbffddfc952f7bb91a71ba5925e89c32d628:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_rkTr4EJWaZN1NOLIzeP6nK_0_6Fn-Tb6_pMt0B5M.cache b/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_rkTr4EJWaZN1NOLIzeP6nK_0_6Fn-Tb6_pMt0B5M.cache new file mode 100644 index 0000000000000000000000000000000000000000..6f3d4e8fbac9a2b408a3967952cc7d3e77b45947 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/vN/vN_rkTr4EJWaZN1NOLIzeP6nK_0_6Fn-Tb6_pMt0B5M.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vR/vRfHQmh_LU0hd1ZYbcFUtkorJyfuCojIiJaVJrUCjo4.cache b/T5/tmp/cache/assets/sprockets/v3.0/vR/vRfHQmh_LU0hd1ZYbcFUtkorJyfuCojIiJaVJrUCjo4.cache new file mode 100644 index 0000000000000000000000000000000000000000..bd1cd7a3727dc06fb7fd79ccd33d576904d2ff01 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vR/vRfHQmh_LU0hd1ZYbcFUtkorJyfuCojIiJaVJrUCjo4.cache @@ -0,0 +1 @@ +I"‘app/assets/javascripts/games.coffee?type=application/javascript&pipeline=self&id=06ef10fb4f2f75b1b428670fcb0d89388a0a0fda689481d49c4eee48eb1a2696:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vU/vUU59Q78yXb7-oOME0fg-KErly57g2e9EV4IO8V5ags.cache b/T5/tmp/cache/assets/sprockets/v3.0/vU/vUU59Q78yXb7-oOME0fg-KErly57g2e9EV4IO8V5ags.cache new file mode 100644 index 0000000000000000000000000000000000000000..b2e90cbef3f7d1dbb0bd161c5b9339e865348ec5 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vU/vUU59Q78yXb7-oOME0fg-KErly57g2e9EV4IO8V5ags.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=8d2dfe71f09079d1d96a853050bfc128fa71d46e074fbb288f1f80631f1a4778:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/v_/v_W248E769y66ii-62A4fSFCG-2SA_gh03v1gVNZ4dI.cache b/T5/tmp/cache/assets/sprockets/v3.0/v_/v_W248E769y66ii-62A4fSFCG-2SA_gh03v1gVNZ4dI.cache new file mode 100644 index 0000000000000000000000000000000000000000..72eb57ccfada1d6ea449f807b05f60367817c394 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/v_/v_W248E769y66ii-62A4fSFCG-2SA_gh03v1gVNZ4dI.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/home.scss?type=text/css&pipeline=self&id=3763010fea279f26870c046cc09419cac888e568136b925bb4b4519f01c0ca57:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vb/vbzuSk0Ki4O9hYOQ7D3tUBWg1ycgCJhKYO44pbjhlhA.cache b/T5/tmp/cache/assets/sprockets/v3.0/vb/vbzuSk0Ki4O9hYOQ7D3tUBWg1ycgCJhKYO44pbjhlhA.cache new file mode 100644 index 0000000000000000000000000000000000000000..dea66f11c66c9cb1b29293965fd35f2cf40c0271 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vb/vbzuSk0Ki4O9hYOQ7D3tUBWg1ycgCJhKYO44pbjhlhA.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=65245a41ad194cfe01425556ee571fc3df2e96d118e2f2ce5b64a08106f083b7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ve/veUj4s9mEY24kON6a8aWDYECwe6-0G5Z-6NUYTZ4k90.cache b/T5/tmp/cache/assets/sprockets/v3.0/ve/veUj4s9mEY24kON6a8aWDYECwe6-0G5Z-6NUYTZ4k90.cache new file mode 100644 index 0000000000000000000000000000000000000000..eef7be1bc40b5f376ec134d9ca0042349b4c5fc3 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ve/veUj4s9mEY24kON6a8aWDYECwe6-0G5Z-6NUYTZ4k90.cache @@ -0,0 +1 @@ +I"ê/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-transfer.js?type=application/javascript&pipeline=self&id=b927c28af4dcb12259430d099ba5bb74db9544176ac9cce81a07c98a5909983e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vg/vgY8GgCu70QRf2VIvJBG_py4x4fbL6kwMBaTWpOYYPE.cache b/T5/tmp/cache/assets/sprockets/v3.0/vg/vgY8GgCu70QRf2VIvJBG_py4x4fbL6kwMBaTWpOYYPE.cache new file mode 100644 index 0000000000000000000000000000000000000000..83aabd465a0f81187bb5ea3ca99aa85a315dced4 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vg/vgY8GgCu70QRf2VIvJBG_py4x4fbL6kwMBaTWpOYYPE.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=e83a735279310913071254a1f62b02aab8d6454be248b65bd225edc19ed9441a:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vh/vhD5EKciwBxOu4Lt_VpOsgf4vb4apz_KC-SOEyWff6c.cache b/T5/tmp/cache/assets/sprockets/v3.0/vh/vhD5EKciwBxOu4Lt_VpOsgf4vb4apz_KC-SOEyWff6c.cache new file mode 100644 index 0000000000000000000000000000000000000000..a0ce450391df0c22027b0084227cad42e4abc0a2 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vh/vhD5EKciwBxOu4Lt_VpOsgf4vb4apz_KC-SOEyWff6c.cache @@ -0,0 +1,2 @@ +[o:Set: +@hash}1I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ˆfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widgets/checkboxradio.js;TTI".file-digest://app/assets/config/jquery-ui;TTI">file-digest://app/assets/config/jquery-ui/escape-selector;TTI".file-digest://app/assets/images/jquery-ui;TTI">file-digest://app/assets/images/jquery-ui/escape-selector;TTI"3file-digest://app/assets/javascripts/jquery-ui;TTI"Cfile-digest://app/assets/javascripts/jquery-ui/escape-selector;TTI"3file-digest://app/assets/stylesheets/jquery-ui;TTI"Cfile-digest://app/assets/stylesheets/jquery-ui/escape-selector;TTI"qfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui;TTI"|file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/escape-selector;TTI"ofile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/escape-selector;TTI"tfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui;TTI"file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector;TTI"‚file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/escape-selector.js;TTI"?file-digest://app/assets/config/jquery-ui/form-reset-mixin;TTI"?file-digest://app/assets/images/jquery-ui/form-reset-mixin;TTI"Dfile-digest://app/assets/javascripts/jquery-ui/form-reset-mixin;TTI"Dfile-digest://app/assets/stylesheets/jquery-ui/form-reset-mixin;TTI"}file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/form-reset-mixin;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/form-reset-mixin;TTI"€file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form-reset-mixin;TTI"ƒfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/form-reset-mixin.js;TTI"5file-digest://app/assets/config/jquery-ui/labels;TTI"5file-digest://app/assets/images/jquery-ui/labels;TTI":file-digest://app/assets/javascripts/jquery-ui/labels;TTI":file-digest://app/assets/stylesheets/jquery-ui/labels;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/labels;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/labels;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/labels;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/labels.js;TTI"5file-digest://app/assets/config/jquery-ui/widget;TTI"5file-digest://app/assets/images/jquery-ui/widget;TTI":file-digest://app/assets/javascripts/jquery-ui/widget;TTI":file-digest://app/assets/stylesheets/jquery-ui/widget;TTI"xfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts/jquery-ui/widget;TTI"vfile-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/images/jquery-ui/widget;TTI"{file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget;TTI"~file-digest:///home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/widget.js;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vl/vlko4I7fBnO9hA6in7GkOZmH_RcZ6hm585vcvypGgps.cache b/T5/tmp/cache/assets/sprockets/v3.0/vl/vlko4I7fBnO9hA6in7GkOZmH_RcZ6hm585vcvypGgps.cache new file mode 100644 index 0000000000000000000000000000000000000000..735213285200b714c005076c581d1f5022cb3bba --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vl/vlko4I7fBnO9hA6in7GkOZmH_RcZ6hm585vcvypGgps.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=63c805ccee14ad77fe37606b89593e5bbd5f9e981bc567abd5e76cb37ad58a56:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vp/vpgRkNM5mikEl580l2DHHFJx_ydZAwUE5sWkBH1VpOM.cache b/T5/tmp/cache/assets/sprockets/v3.0/vp/vpgRkNM5mikEl580l2DHHFJx_ydZAwUE5sWkBH1VpOM.cache new file mode 100644 index 0000000000000000000000000000000000000000..7addba3c4c21e9a17ac57f596d9fdf5ddbabdc93 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vp/vpgRkNM5mikEl580l2DHHFJx_ydZAwUE5sWkBH1VpOM.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=c5993b8ad679bf0094e101025f053391e5edb3129a11b236b7016f61a5afc19b:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/vt/vtKBJhBaNpbI4Y9Jo_YLZCtkNlc85ijil8IWpHqLLWY.cache b/T5/tmp/cache/assets/sprockets/v3.0/vt/vtKBJhBaNpbI4Y9Jo_YLZCtkNlc85ijil8IWpHqLLWY.cache new file mode 100644 index 0000000000000000000000000000000000000000..19e3e34d10f3ae983fef251550252cbfa258f3f1 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/vt/vtKBJhBaNpbI4Y9Jo_YLZCtkNlc85ijil8IWpHqLLWY.cache @@ -0,0 +1,3 @@ +[o:Set: +@hash} +I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=text/css&file_type=text/css&engines=.scss&pipeline=self;TTI"8file-digest://app/assets/stylesheets/scaffolds.scss;TTF \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w6/w6C-i7e0rl6ystrQSb5qHdDY6W8RtavbI2qy_nQgr8A.cache b/T5/tmp/cache/assets/sprockets/v3.0/w6/w6C-i7e0rl6ystrQSb5qHdDY6W8RtavbI2qy_nQgr8A.cache new file mode 100644 index 0000000000000000000000000000000000000000..b30670fa2476075c9caf4b1d0829b3aec1d4fdeb --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/w6/w6C-i7e0rl6ystrQSb5qHdDY6W8RtavbI2qy_nQgr8A.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=b79abc810464c8914ee48bd2f60a6fd327085c020c3b6a1464214601b149c2f0:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w7/w7ILLPG6-Udtrekusqz_JnVjxYJgSyddmcjSksjBN-s.cache b/T5/tmp/cache/assets/sprockets/v3.0/w7/w7ILLPG6-Udtrekusqz_JnVjxYJgSyddmcjSksjBN-s.cache new file mode 100644 index 0000000000000000000000000000000000000000..7336b4fa12444b759845310aa47c5ed506ebcf78 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/w7/w7ILLPG6-Udtrekusqz_JnVjxYJgSyddmcjSksjBN-s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w8/w8nmPFJBNR66Dr-O2zu_PFC5nstt9wnzn6JbszeF8hg.cache b/T5/tmp/cache/assets/sprockets/v3.0/w8/w8nmPFJBNR66Dr-O2zu_PFC5nstt9wnzn6JbszeF8hg.cache new file mode 100644 index 0000000000000000000000000000000000000000..d32b293df8181f6ced1c170ee0e9037b7840bfd2 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/w8/w8nmPFJBNR66Dr-O2zu_PFC5nstt9wnzn6JbszeF8hg.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w9/w9OBKQ7bRgluuxQAPz0CQkKnZxkimYH1wQfjOIu-uNE.cache b/T5/tmp/cache/assets/sprockets/v3.0/w9/w9OBKQ7bRgluuxQAPz0CQkKnZxkimYH1wQfjOIu-uNE.cache new file mode 100644 index 0000000000000000000000000000000000000000..f1817d2891909ffcf0ac67aa1ba089ec7ee2def9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/w9/w9OBKQ7bRgluuxQAPz0CQkKnZxkimYH1wQfjOIu-uNE.cache @@ -0,0 +1 @@ +I"app/assets/javascripts/cable.js?type=application/javascript&pipeline=self&id=79b50d64007f386c1ea48fd5a0cd7172fc361e2d14cc447b1c1b8778b4664c7e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wA/wASoTRaXMZzr-rz5pfwkvRWN9e8biJ0GA_SH2DflZlU.cache b/T5/tmp/cache/assets/sprockets/v3.0/wA/wASoTRaXMZzr-rz5pfwkvRWN9e8biJ0GA_SH2DflZlU.cache new file mode 100644 index 0000000000000000000000000000000000000000..a292960ab318dbf160e6912655389874e4fb7c29 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wA/wASoTRaXMZzr-rz5pfwkvRWN9e8biJ0GA_SH2DflZlU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wA/wApi8hgtp5tyiPiX0VPPWBBHgDKJVEjbl-sJEuOpii4.cache b/T5/tmp/cache/assets/sprockets/v3.0/wA/wApi8hgtp5tyiPiX0VPPWBBHgDKJVEjbl-sJEuOpii4.cache new file mode 100644 index 0000000000000000000000000000000000000000..63c8e3f9f97048d387034e8b35a4cfa3797a958c Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wA/wApi8hgtp5tyiPiX0VPPWBBHgDKJVEjbl-sJEuOpii4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wC/wCLLOU1wuxeedVdSAkDF58X9ER3TE7Y1fWY1jX2ZtIw.cache b/T5/tmp/cache/assets/sprockets/v3.0/wC/wCLLOU1wuxeedVdSAkDF58X9ER3TE7Y1fWY1jX2ZtIw.cache new file mode 100644 index 0000000000000000000000000000000000000000..139cc81dc8cb1d1d6049a933e494b3e67951e5a0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wC/wCLLOU1wuxeedVdSAkDF58X9ER3TE7Y1fWY1jX2ZtIw.cache @@ -0,0 +1 @@ +"%\†³{þxØwÓícà'¨ž_*]×]¦Pë™Y \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wC/wCa2t8TUKnCOIIMdG5PqJfzxj0K9dWRufeKo0Olxx5E.cache b/T5/tmp/cache/assets/sprockets/v3.0/wC/wCa2t8TUKnCOIIMdG5PqJfzxj0K9dWRufeKo0Olxx5E.cache new file mode 100644 index 0000000000000000000000000000000000000000..a9ea234ad36d9ec801fe33113d2aad9d501f26bc Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wC/wCa2t8TUKnCOIIMdG5PqJfzxj0K9dWRufeKo0Olxx5E.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wG/wGB8PFggNBvW_qV_punf6aOyvfz2x47J-rgiIhcrPgM.cache b/T5/tmp/cache/assets/sprockets/v3.0/wG/wGB8PFggNBvW_qV_punf6aOyvfz2x47J-rgiIhcrPgM.cache new file mode 100644 index 0000000000000000000000000000000000000000..676da38f5818cee4fe732d75040f7ba4e4d43acf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wG/wGB8PFggNBvW_qV_punf6aOyvfz2x47J-rgiIhcrPgM.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=e9ce4de0e8f313c64a312e848dd77e8d508006a9df98eb52cc4034d3835fdaae:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wQ/wQ9iNFX1-0OAZaFjhaI-TNtC33Yyhpl5eL7nOLczKoQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/wQ/wQ9iNFX1-0OAZaFjhaI-TNtC33Yyhpl5eL7nOLczKoQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..095ed3b3443abb853922e2918609cbfb3bd898cf Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wQ/wQ9iNFX1-0OAZaFjhaI-TNtC33Yyhpl5eL7nOLczKoQ.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w_/w_It7ak6W3oP7lhHTJF5uQaWafIgQQTD-7oZyr-kUk0.cache b/T5/tmp/cache/assets/sprockets/v3.0/w_/w_It7ak6W3oP7lhHTJF5uQaWafIgQQTD-7oZyr-kUk0.cache new file mode 100644 index 0000000000000000000000000000000000000000..34f3fd988f2ccf35cbe49688715899f919c1be62 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/w_/w_It7ak6W3oP7lhHTJF5uQaWafIgQQTD-7oZyr-kUk0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/w_/w_ofVG_T-3fGz0bBNzPKoZFMrQLMKHl9J0ES9DfrtdM.cache b/T5/tmp/cache/assets/sprockets/v3.0/w_/w_ofVG_T-3fGz0bBNzPKoZFMrQLMKHl9J0ES9DfrtdM.cache new file mode 100644 index 0000000000000000000000000000000000000000..ef85d3ea753d9bc0a99e66df3e18a2d422a8c353 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/w_/w_ofVG_T-3fGz0bBNzPKoZFMrQLMKHl9J0ES9DfrtdM.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=9c64d022cb90ef9e446048cc501c7658b1d0ecb36e2f457a5d5b06cd21bb51cc:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wb/wbLWuUKNmKw5hqxq6sUjr9A1oSzqDy2NdI0kOU7A5Ng.cache b/T5/tmp/cache/assets/sprockets/v3.0/wb/wbLWuUKNmKw5hqxq6sUjr9A1oSzqDy2NdI0kOU7A5Ng.cache new file mode 100644 index 0000000000000000000000000000000000000000..3058a9c23d3c922e04262c1ad99ab8c0136436a4 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wb/wbLWuUKNmKw5hqxq6sUjr9A1oSzqDy2NdI0kOU7A5Ng.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wb/wbRsMS9P95LaUUYYPgjoKAwH9jtR0Rb92eCk4RITFoY.cache b/T5/tmp/cache/assets/sprockets/v3.0/wb/wbRsMS9P95LaUUYYPgjoKAwH9jtR0Rb92eCk4RITFoY.cache new file mode 100644 index 0000000000000000000000000000000000000000..dafe937de602648a05e6497f025143bafe4e9f3f Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wb/wbRsMS9P95LaUUYYPgjoKAwH9jtR0Rb92eCk4RITFoY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wd/wd_adefw-Mbfp-MnFzk6DpG3RcQm6J8iMwcvRuap0sY.cache b/T5/tmp/cache/assets/sprockets/v3.0/wd/wd_adefw-Mbfp-MnFzk6DpG3RcQm6J8iMwcvRuap0sY.cache new file mode 100644 index 0000000000000000000000000000000000000000..7a4c4cbc08b8a1c0eb83700964a862db000df3de --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wd/wd_adefw-Mbfp-MnFzk6DpG3RcQm6J8iMwcvRuap0sY.cache @@ -0,0 +1 @@ +"%‹[aÝj†È¶úèf£ð¿CB¨ªƒßbùe]}ªS \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wi/wiuW1Np-wMmtamlVKuYM602THOJP130zZexVG9tbfd0.cache b/T5/tmp/cache/assets/sprockets/v3.0/wi/wiuW1Np-wMmtamlVKuYM602THOJP130zZexVG9tbfd0.cache new file mode 100644 index 0000000000000000000000000000000000000000..31f098b2e554ab0a9fa5585733a5e87af87052ab Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wi/wiuW1Np-wMmtamlVKuYM602THOJP130zZexVG9tbfd0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wo/wogLMqb5mUu09_N4U0KYingdcV_Z7X9S8NSZXblSKn4.cache b/T5/tmp/cache/assets/sprockets/v3.0/wo/wogLMqb5mUu09_N4U0KYingdcV_Z7X9S8NSZXblSKn4.cache new file mode 100644 index 0000000000000000000000000000000000000000..31f57153d80d69c46c31c7c0dd109e1a80a4af3c --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wo/wogLMqb5mUu09_N4U0KYingdcV_Z7X9S8NSZXblSKn4.cache @@ -0,0 +1 @@ +"%P¨ª±'þ¨JˆªAy\n<åW&³*æ°låB…èN8 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wp/wpO7sLHKfe0Q4-hBo55o3CmhC1ZgaKI3uVRl5j9yqMQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/wp/wpO7sLHKfe0Q4-hBo55o3CmhC1ZgaKI3uVRl5j9yqMQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..83195013a6c2c942e6b2b89fe7cea9647b5bf1af --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wp/wpO7sLHKfe0Q4-hBo55o3CmhC1ZgaKI3uVRl5j9yqMQ.cache @@ -0,0 +1,2 @@ +"%©,þ£dÐFu?Šè¯Ož°Œ +< îA&Í›*ô¡ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wr/wr7HScm8sdtqa81_rXbWMlWCZYQ1E7WK4DZjGCj-01U.cache b/T5/tmp/cache/assets/sprockets/v3.0/wr/wr7HScm8sdtqa81_rXbWMlWCZYQ1E7WK4DZjGCj-01U.cache new file mode 100644 index 0000000000000000000000000000000000000000..0644475e89c6899074f7cdbb348fae1a7ce99a1e Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wr/wr7HScm8sdtqa81_rXbWMlWCZYQ1E7WK4DZjGCj-01U.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wr/wrvNLI_RWGk3o5mDwRqcAG7jCa0AuPl658LFtJQjhMY.cache b/T5/tmp/cache/assets/sprockets/v3.0/wr/wrvNLI_RWGk3o5mDwRqcAG7jCa0AuPl658LFtJQjhMY.cache new file mode 100644 index 0000000000000000000000000000000000000000..64ac726169d44b7c112bb8351afd2f3dfa2672b6 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wr/wrvNLI_RWGk3o5mDwRqcAG7jCa0AuPl658LFtJQjhMY.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wt/wtGmvabqy6xQvfHTicCzi4LgWi1UYIhI91lFoiW2YCM.cache b/T5/tmp/cache/assets/sprockets/v3.0/wt/wtGmvabqy6xQvfHTicCzi4LgWi1UYIhI91lFoiW2YCM.cache new file mode 100644 index 0000000000000000000000000000000000000000..69a329a95509442e5fd0128aba09e8f715d08864 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/wt/wtGmvabqy6xQvfHTicCzi4LgWi1UYIhI91lFoiW2YCM.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/wu/wuqjkvAeUOHWy_9312YmvGgZzo4YEdE8_cwkP-tPZmw.cache b/T5/tmp/cache/assets/sprockets/v3.0/wu/wuqjkvAeUOHWy_9312YmvGgZzo4YEdE8_cwkP-tPZmw.cache new file mode 100644 index 0000000000000000000000000000000000000000..bdd610b91b9af0244e0dccd3855aa1171c4b30e8 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/wu/wuqjkvAeUOHWy_9312YmvGgZzo4YEdE8_cwkP-tPZmw.cache @@ -0,0 +1 @@ +I"‡app/assets/stylesheets/application.css?type=text/css&pipeline=debug&id=f8ff7706a8a06626dc90a88140198a90296bf6400d83f1335c7064aaa3f2a024:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/x6/x6IojdGB_U8g3Bjw6zw5UV--9d9Ura1-hBuWcPxtSqw.cache b/T5/tmp/cache/assets/sprockets/v3.0/x6/x6IojdGB_U8g3Bjw6zw5UV--9d9Ura1-hBuWcPxtSqw.cache new file mode 100644 index 0000000000000000000000000000000000000000..6b6ec9bf99cef54c0a14720a29ad4fb5c81bcffe --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/x6/x6IojdGB_U8g3Bjw6zw5UV--9d9Ura1-hBuWcPxtSqw.cache @@ -0,0 +1 @@ +I"Ü/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/safe-blur.js?type=application/javascript&pipeline=self&id=49ef108abcf31bc1017fbc0e3b4460c7c3603ed6950d732e8d5fccfb37951da6:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/xD/xDtFmGXpiNXCrj83TrHc9OUCI-3YrS_cvSj-1xstym8.cache b/T5/tmp/cache/assets/sprockets/v3.0/xD/xDtFmGXpiNXCrj83TrHc9OUCI-3YrS_cvSj-1xstym8.cache new file mode 100644 index 0000000000000000000000000000000000000000..106275b54d2a994325cb7dd4b3e78158e530ef7b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/xD/xDtFmGXpiNXCrj83TrHc9OUCI-3YrS_cvSj-1xstym8.cache @@ -0,0 +1,2 @@ +"%ï¿H"# +¸§¨TFu•¶ÑFs§fËTUýc7Á&3 \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/x_/x_s_3Z75-ipSo3CffqXnPGJH9jnRVM1qN1FVVz4cLhs.cache b/T5/tmp/cache/assets/sprockets/v3.0/x_/x_s_3Z75-ipSo3CffqXnPGJH9jnRVM1qN1FVVz4cLhs.cache new file mode 100644 index 0000000000000000000000000000000000000000..c140803f43a18e95cfab316c2ba5e20d5d711018 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/x_/x_s_3Z75-ipSo3CffqXnPGJH9jnRVM1qN1FVVz4cLhs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/xa/xa4SLJW1-TwpPkFI-WnuIYq8X26LFieY7HvHc3TdUa0.cache b/T5/tmp/cache/assets/sprockets/v3.0/xa/xa4SLJW1-TwpPkFI-WnuIYq8X26LFieY7HvHc3TdUa0.cache new file mode 100644 index 0000000000000000000000000000000000000000..5e2c82ac016b5a281abe0c9b11661fe3759d56d6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/xa/xa4SLJW1-TwpPkFI-WnuIYq8X26LFieY7HvHc3TdUa0.cache @@ -0,0 +1 @@ +"%‚‰‘¶æ:ˆl‚&æ0Š]öeQ“%±£A¸0¹+›¦ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/xu/xucliKGUEx2cTeMKfF8ljLHLO9AiRziHa5DhDusJzIA.cache b/T5/tmp/cache/assets/sprockets/v3.0/xu/xucliKGUEx2cTeMKfF8ljLHLO9AiRziHa5DhDusJzIA.cache new file mode 100644 index 0000000000000000000000000000000000000000..673592db6bed9bd359b663c7b224665295ee9ce9 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/xu/xucliKGUEx2cTeMKfF8ljLHLO9AiRziHa5DhDusJzIA.cache @@ -0,0 +1 @@ +I"†app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=31080fae42f8b75a49e92f22b61c46f6a1d69d9cb0fe45ca1508f00cc924228e:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/y4/y4UPUvLtld2s48jsxrwFNAmf56fH_Nf5rTcv64ZtpvA.cache b/T5/tmp/cache/assets/sprockets/v3.0/y4/y4UPUvLtld2s48jsxrwFNAmf56fH_Nf5rTcv64ZtpvA.cache new file mode 100644 index 0000000000000000000000000000000000000000..8591fa66365117c1e2535e4716cfdb54c5d7d2da --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/y4/y4UPUvLtld2s48jsxrwFNAmf56fH_Nf5rTcv64ZtpvA.cache @@ -0,0 +1 @@ +I"–app/assets/javascripts/developers.coffee?type=application/javascript&pipeline=self&id=c6d121f07e91a37571ca2df9a692fa13b36ad11254e58511c79baa000e5db90c:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/y6/y6s-ZclYCPe4yNXts42vvqM_J_JDb0KfhvJrpVbRQs0.cache b/T5/tmp/cache/assets/sprockets/v3.0/y6/y6s-ZclYCPe4yNXts42vvqM_J_JDb0KfhvJrpVbRQs0.cache new file mode 100644 index 0000000000000000000000000000000000000000..9872412650500dcbc126b030e71fbbdd3ce958ae --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/y6/y6s-ZclYCPe4yNXts42vvqM_J_JDb0KfhvJrpVbRQs0.cache @@ -0,0 +1 @@ +"%JCg½OÏÊSNì´–bK™a,3ÃKÀò’- EŒÔ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yB/yBdXq6YyFfeZGpIYM7fZRaWsWgs7X1LAd640OfITy1Y.cache b/T5/tmp/cache/assets/sprockets/v3.0/yB/yBdXq6YyFfeZGpIYM7fZRaWsWgs7X1LAd640OfITy1Y.cache new file mode 100644 index 0000000000000000000000000000000000000000..74363e5996e141518693648ec5824039ddf7dd29 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/yB/yBdXq6YyFfeZGpIYM7fZRaWsWgs7X1LAd640OfITy1Y.cache @@ -0,0 +1 @@ +"%‹ã›hëž¹Å-oÛºˆÃ¤ø»Qlȳs.«ä‚Q \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yH/yHIqnziumGxmdzZ30GzkFinpaYufL6ZPwqwQfcKSqoc.cache b/T5/tmp/cache/assets/sprockets/v3.0/yH/yHIqnziumGxmdzZ30GzkFinpaYufL6ZPwqwQfcKSqoc.cache new file mode 100644 index 0000000000000000000000000000000000000000..db7744d625561f5e354ee77f90fb96f44511cb0b --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/yH/yHIqnziumGxmdzZ30GzkFinpaYufL6ZPwqwQfcKSqoc.cache @@ -0,0 +1 @@ +I"Ú/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/keycode.js?type=application/javascript&pipeline=self&id=9bbd80af338f21b4556c2d8e2710e5c26b4b349266e4c80cdb14d7247078d064:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yI/yIxfo2OAnfZpxggcDkGkg_P1-F4DD7e3YVZRqOmxX8s.cache b/T5/tmp/cache/assets/sprockets/v3.0/yI/yIxfo2OAnfZpxggcDkGkg_P1-F4DD7e3YVZRqOmxX8s.cache new file mode 100644 index 0000000000000000000000000000000000000000..85538748b4143b99a3b556f3f0e3c21e6f658b63 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/yI/yIxfo2OAnfZpxggcDkGkg_P1-F4DD7e3YVZRqOmxX8s.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yN/yN-ijtCHY9OE_5YZQhRdUHjpG2-DYyv92537avBoEIg.cache b/T5/tmp/cache/assets/sprockets/v3.0/yN/yN-ijtCHY9OE_5YZQhRdUHjpG2-DYyv92537avBoEIg.cache new file mode 100644 index 0000000000000000000000000000000000000000..0eca9e0c1a198ee85b5cd3ce65eaf60a539fb2b0 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/yN/yN-ijtCHY9OE_5YZQhRdUHjpG2-DYyv92537avBoEIg.cache @@ -0,0 +1 @@ +I"€app/assets/stylesheets/user.scss?type=text/css&pipeline=self&id=4a74951d78a0ea513cbe2ba7b64630a17e632b20a750966da5888a533be332d7:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yR/yRgGnxSLIQLgEqYpg3gN_TtmNdqOvYCPiS297d5vKKQ.cache b/T5/tmp/cache/assets/sprockets/v3.0/yR/yRgGnxSLIQLgEqYpg3gN_TtmNdqOvYCPiS297d5vKKQ.cache new file mode 100644 index 0000000000000000000000000000000000000000..3ce57f2daacebe3d85eff785aa26bbe86e708d42 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/yR/yRgGnxSLIQLgEqYpg3gN_TtmNdqOvYCPiS297d5vKKQ.cache @@ -0,0 +1 @@ +I"…app/assets/stylesheets/scaffolds.scss?type=text/css&pipeline=self&id=cdda6b2a1eed270e352cf6190681da840e344d0b40e48f9ea49ef05a0ec59d10:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/ya/yakw6OSHY_rSDAUdjkboMcFsieKlJY52DK3zzDh_MmE.cache b/T5/tmp/cache/assets/sprockets/v3.0/ya/yakw6OSHY_rSDAUdjkboMcFsieKlJY52DK3zzDh_MmE.cache new file mode 100644 index 0000000000000000000000000000000000000000..6e41b55271e4682698b49a293a530660712752cf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/ya/yakw6OSHY_rSDAUdjkboMcFsieKlJY52DK3zzDh_MmE.cache @@ -0,0 +1 @@ +I"}app/assets/stylesheets/application.css?type=text/css&id=cb69c76cc12496fb6c88aa61f4d76363b9acb812aa2c66155fbcd90da0eecc64:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yj/yjdMhFbWdSLE7n7lkdNQS0dCN5lvIFPorPjktLU6Pw4.cache b/T5/tmp/cache/assets/sprockets/v3.0/yj/yjdMhFbWdSLE7n7lkdNQS0dCN5lvIFPorPjktLU6Pw4.cache new file mode 100644 index 0000000000000000000000000000000000000000..16e99ac119337654a1ff2b1a0292ddf14a86aebf Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/yj/yjdMhFbWdSLE7n7lkdNQS0dCN5lvIFPorPjktLU6Pw4.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yt/ytEq8rUwO8NoJi1e8Ut31vfWmWDfHtBDakNJdqEmMx0.cache b/T5/tmp/cache/assets/sprockets/v3.0/yt/ytEq8rUwO8NoJi1e8Ut31vfWmWDfHtBDakNJdqEmMx0.cache new file mode 100644 index 0000000000000000000000000000000000000000..b232423cf51094be9b34451bb9e8e4b4815abc38 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/yt/ytEq8rUwO8NoJi1e8Ut31vfWmWDfHtBDakNJdqEmMx0.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/yv/yvf05Myk5jDxVVWZBQUqfiSh2OvZIzgldXtBjvOXQHU.cache b/T5/tmp/cache/assets/sprockets/v3.0/yv/yvf05Myk5jDxVVWZBQUqfiSh2OvZIzgldXtBjvOXQHU.cache new file mode 100644 index 0000000000000000000000000000000000000000..3f082fca561487791834950d63db6949c6d13a53 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/yv/yvf05Myk5jDxVVWZBQUqfiSh2OvZIzgldXtBjvOXQHU.cache @@ -0,0 +1 @@ +"%ó5¼ïLØÀHoó›Ÿt•Í>`ê1Û&¾ŒÖ=.¦ \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zB/zBqB_v4u2U7wnQOMOLC8DOv2Vgm05kd6JUxPVSy49xs.cache b/T5/tmp/cache/assets/sprockets/v3.0/zB/zBqB_v4u2U7wnQOMOLC8DOv2Vgm05kd6JUxPVSy49xs.cache new file mode 100644 index 0000000000000000000000000000000000000000..c858798da422ae43acb4fce8ac068341e5ce9773 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/zB/zBqB_v4u2U7wnQOMOLC8DOv2Vgm05kd6JUxPVSy49xs.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zG/zGiD5aTXwO9xe6UE0xn8KHkvbA5B4rVB0sfXT8lAZiw.cache b/T5/tmp/cache/assets/sprockets/v3.0/zG/zGiD5aTXwO9xe6UE0xn8KHkvbA5B4rVB0sfXT8lAZiw.cache new file mode 100644 index 0000000000000000000000000000000000000000..fa20520b00a4457d96463261712aae30418e57cf --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/zG/zGiD5aTXwO9xe6UE0xn8KHkvbA5B4rVB0sfXT8lAZiw.cache @@ -0,0 +1 @@ +I"è/home/wellington/.rvm/gems/ruby-2.5.0/gems/jquery-ui-rails-6.0.1/app/assets/javascripts/jquery-ui/effects/effect-bounce.js?type=application/javascript&pipeline=self&id=06258f826dafa3ad921c50c20f5684aab726da6ed2d67674595d8f8c3cdc6c5d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zJ/zJoSKenec1N4MvmkP-xOYnFjKiANc2ornvhTUSdIZIA.cache b/T5/tmp/cache/assets/sprockets/v3.0/zJ/zJoSKenec1N4MvmkP-xOYnFjKiANc2ornvhTUSdIZIA.cache new file mode 100644 index 0000000000000000000000000000000000000000..4fdbfa618207b69761d6b4455eebf27944609eed Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/zJ/zJoSKenec1N4MvmkP-xOYnFjKiANc2ornvhTUSdIZIA.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zN/zNBC93OoV8BTBGcHBEYlbWtZ_SARXEUa8JIU7kQNc4g.cache b/T5/tmp/cache/assets/sprockets/v3.0/zN/zNBC93OoV8BTBGcHBEYlbWtZ_SARXEUa8JIU7kQNc4g.cache new file mode 100644 index 0000000000000000000000000000000000000000..4ea939a399bfa3a2429cc377690193c888f287c6 --- /dev/null +++ b/T5/tmp/cache/assets/sprockets/v3.0/zN/zNBC93OoV8BTBGcHBEYlbWtZ_SARXEUa8JIU7kQNc4g.cache @@ -0,0 +1 @@ +I"app/assets/stylesheets/games.scss?type=text/css&pipeline=self&id=9d79b7a97ae5c73f435ea6d6263f80d139e11369f73601977a4f3da1394ccf5d:ET \ No newline at end of file diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zY/zYKu1oOyp2m93Ml0yyvU6l4nn4qXEkqrENRrzqww_sU.cache b/T5/tmp/cache/assets/sprockets/v3.0/zY/zYKu1oOyp2m93Ml0yyvU6l4nn4qXEkqrENRrzqww_sU.cache new file mode 100644 index 0000000000000000000000000000000000000000..f2b4de914e8654f616a45b72db2fd5963124e8b0 Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/zY/zYKu1oOyp2m93Ml0yyvU6l4nn4qXEkqrENRrzqww_sU.cache differ diff --git a/T5/tmp/cache/assets/sprockets/v3.0/zl/zlVojOiauvr8F9Io_0HaklbA_iG1d2bqAzJW2CTVJtk.cache b/T5/tmp/cache/assets/sprockets/v3.0/zl/zlVojOiauvr8F9Io_0HaklbA_iG1d2bqAzJW2CTVJtk.cache new file mode 100644 index 0000000000000000000000000000000000000000..7cd5afb02f2f59170d21e9151cfefe758b53bafb Binary files /dev/null and b/T5/tmp/cache/assets/sprockets/v3.0/zl/zlVojOiauvr8F9Io_0HaklbA_iG1d2bqAzJW2CTVJtk.cache differ diff --git a/T5/tmp/restart.txt b/T5/tmp/restart.txt new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391