Skip to content

Commit

Permalink
Merge pull request #27 from christianonoh/fix-review-changes
Browse files Browse the repository at this point in the history
Fix review changes
  • Loading branch information
christianonoh authored Aug 30, 2023
2 parents 5606560 + 10c1361 commit 510e188
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 177 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ EDITOR="code --wait" rails credentials:edit
```sh
rails db:create
rails db:migrate
rails db:seed
```
### Usage
Start the Rails server to run the application locally.
Expand All @@ -149,9 +150,10 @@ VECS School uses RSpec for testing. To run the tests, follow these steps:

- **Run Tests:** Use the following command to run the tests.
```sh
rspec
bundle exec rspec spec/models
bundle exec rspec spec/controllers
```
- This will execute all the tests in the `spec` directory and provide you with the results.
- This will execute all the tests for the models and controllers directory and provide you with the results.

<p align="right">(<a href="#readme-top">back to top</a>)</p>

Expand Down
25 changes: 23 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,26 @@
#
# movies = Movie.create([{ name: "Star Wars" }, { name: "Lord of the Rings" }])
# Character.create(name: "Luke", movie: movies.first)
User.create(name: "Juanito Perez")
Course.create(name: "Ruby on Rails", description: "Aprende Ruby on Rails desde cero a nivel profesional", price: 20.0, teacher: "Juanito Perez", user_id: 1)
User.create(name: "Usom", email: "usom@gmail.com", password: "123456")

ActiveRecord::Base.transaction do
Course.create(name: "Ruby on Rails", description: "Ruby on Rails, often referred to simply as Rails, is an open-source web application framework written in the Ruby programming language.
Rails is designed to make it easier to build dynamic and robust web applications by providing a structured and organized development environment.
It follows the Model-View-Controller (MVC) architectural pattern, which separates the application's concerns into three distinct components",
price: 20.00, teacher: "Burger", photo:"https://tinyurl.com/5e4tdnyv")

Course.create(name: "Python for Data Science", description: "Learn how to leverage the power of Python for data analysis and visualization. Explore libraries like NumPy, Pandas, and Matplotlib to process and visualize data effectively.",
price: 25.00, teacher: "Smith", photo: "https://tinyurl.com/3u9cw3da")

Course.create(name: "Full Stack Web Dev", description: "Become a full stack web developer by mastering both front-end and back-end technologies. Learn HTML, CSS, JavaScript, Node.js, and databases to build complete web applications.",
price: 30.00, teacher: "Johnson", photo: "https://tinyurl.com/wvxcstn6")

Course.create(name: "Machine Learning Fundamentals", description: "Dive into the world of machine learning. Understand the basics of supervised and unsupervised learning, and get hands-on experience with popular machine learning frameworks.",
price: 40.00, teacher: "Garcia", photo: "https://tinyurl.com/y4brxtc8")

Course.create(name: "Mobile App Dev(Flutter)", description: "Create cross-platform mobile apps using Flutter framework. Build native-like apps for iOS and Android with a single codebase, and explore widgets, animations, and APIs.",
price: 28.00, teacher: "Lee", photo: "https://tinyurl.com/399e9w5e")

Course.create(name: "Intro to Blockchain Tech", description: "Discover the fundamentals of blockchain technology and cryptocurrencies. Learn about decentralized ledgers, smart contracts, and how blockchain is transforming industries.",
price: 22.00, teacher: "Brown", photo: "https://tinyurl.com/4t9vf7v3")
end
11 changes: 0 additions & 11 deletions test/channels/application_cable/connection_test.rb

This file was deleted.

Empty file removed test/controllers/.keep
Empty file.
38 changes: 0 additions & 38 deletions test/controllers/api/v1/courses_controller_test.rb

This file was deleted.

17 changes: 0 additions & 17 deletions test/controllers/api/v1/reservations_controller_test.rb

This file was deleted.

38 changes: 0 additions & 38 deletions test/controllers/api/v1/users_controller_test.rb

This file was deleted.

15 changes: 0 additions & 15 deletions test/fixtures/courses.yml

This file was deleted.

Empty file removed test/fixtures/files/.keep
Empty file.
11 changes: 0 additions & 11 deletions test/fixtures/reservations.yml

This file was deleted.

9 changes: 0 additions & 9 deletions test/fixtures/users.yml

This file was deleted.

Empty file removed test/integration/.keep
Empty file.
Empty file removed test/mailers/.keep
Empty file.
Empty file removed test/models/.keep
Empty file.
7 changes: 0 additions & 7 deletions test/models/course_test.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/models/reservation_test.rb

This file was deleted.

7 changes: 0 additions & 7 deletions test/models/user_test.rb

This file was deleted.

13 changes: 0 additions & 13 deletions test/test_helper.rb

This file was deleted.

0 comments on commit 510e188

Please sign in to comment.