In order to win 1 million, you need to correctly answer 15 questions from various fields of knowledge. Each question has 4 possible answers, of which only one is correct. Each question has a specific cost. The player is offered 3 tips: "Hall help", "50-50", "Call a friend".
This tutorial application was used to practice testing rail applications using RSpec.
-
Ruby 3.0.0
-
Rails 6.1.3
capybara, factory_bot_rails, launchy, pry-rails, rails-controller-testing, rspec-rails, shoulda-matchers
Note: all commands must be run from the command line/terminal, from the directory, where you clone repository
- Download or clone repository, then run bundler
bundle exec install- To create a database, run
rails db:schema:loadTo run all tests, typing
rspecTo start the Rails server, type
rails s- From Rails console, create user with admin role
rails c
User.create!(name: 'Ivan', email: 'mail@mail.com', is_admin: true, balance: 0, password: '123456')- Login to the application and click the "Add Questions" button. You can use ready-made questions from the
archive in folder
data/questions_full.zip