# -*- coding: utf-8 -*-
Product.delete_all
Product.create(title: "Rails 4 Test Prescriptions",
               author: "Noel Rappin",
               description: "Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with a regular dose of test-driven development. Rails 4 Test Prescriptions is a comprehensive guide to how tests can help you design and write better Rails applications. In this completely revised edition, you’ll learn why testing works and how to test effectively using Rails 4, Minitest 5, and RSpec 3, as well as popular testing libraries such as factory_girl and Cucumber. Do what the doctor ordered to make your applications feel all better. Side effects may include better code, fewer bugs, and happier developers.",
               image_url: "https://imagery.pragprog.com/products/389/nrtest2_xlargecover.jpg",
               price: 25.00)
Product.create(title: "Metaprogramming Ruby 2",
               author: "Paolo Perotta",
               description: "Write powerful Ruby code that is easy to maintain and change. With metaprogramming, you can produce elegant, clean, and beautiful programs. Once the domain of expert Rubyists, metaprogramming is now accessible to programmers of all levels. This thoroughly revised and updated second edition of the bestselling Metaprogramming Ruby explains metaprogramming in a down-to-earth style and arms you with a practical toolbox that will help you write your best Ruby code ever.",
               image_url: "https://imagery.pragprog.com/products/337/ppmetr2_xlargecover.jpg",
               price: 25.00)
Product.create(title: "Confident Ruby",
               author: "Avdi Grimm",
               description: "Are your Ruby methods timid? Do they constantly second-guess themselves, checking for nil values, errors, and unexpected input? With Confident Ruby, you’ll learn patterns, idioms, and language features that help to write code in a clear, straightforward style. Your code will be more testable, easier to read, and easier to debug. And you’ll be a happier programmer!",
               image_url: "https://imagery.pragprog.com/products/366/agcr_xlargecover.jpg",
               price: 35.00)
Product.create(title: "Crafting Rails 4 Applications",
               author: "José Valim",
               description: "Get ready to see Rails as you’ve never seen it before. Learn how to extend the framework, change its behavior, and replace whole components to bend it to your will. Eight different test-driven tutorials will help you understand Rails’ inner workings and prepare you to tackle complicated projects with solutions that are well-tested, modular, and easy to maintain.",
               image_url: "https://imagery.pragprog.com/products/353/jvrails2_xlargecover.jpg",
               price: 24.00)
Product.create(title: "Agile Web Development with Rails 4",
               author: "Sam Ruby",
               description: "Rails just keeps on changing. Both Rails 3 and 4, as well as Ruby 1.9 and 2.0, bring hundreds of improvements, including new APIs and substantial performance enhancements. The fourth edition of this award-winning classic has been reorganized and refocused so it’s more useful than ever before for developers new to Ruby and Rails.",
               image_url: "https://imagery.pragprog.com/products/196/rails4_xlargecover.jpg",
               price: 27.00)
Product.create(title: "Programming Ruby 1.9 & 2.0",
               author: "Dave Thomas, with Chad Fowler and Andy Hunt",
               description: "Ruby is the fastest growing and most exciting dynamic language out there. If you need to get working programs delivered fast, you should add Ruby to your toolbox. This book is the only complete reference for both Ruby 1.9 and Ruby 2.0, the very latest version of Ruby.",
               image_url: "https://imagery.pragprog.com/products/355/ruby4_xlargecover.jpg",
               price: 28.00)
Product.create(title: "The RSpec Book",
               author: "David Chelimsky, Dave Astels, Zach Dennis, Aslak Hellesøy, Bryan Helmkamp, Dan North",
               description: "Behaviour-Driven Development (BDD) gives you the best of Test Driven Development, Domain Driven Design, and Acceptance Test Driven Planning techniques, so you can create better software with self-documenting, executable tests that bring users and developers together with a common language.",
               image_url: "https://imagery.pragprog.com/products/140/achbd_xlargecover.jpg",
               price: 27.00)
