Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New article model #3

Merged
merged 3 commits into from Jan 28, 2024
Merged

New article model #3

merged 3 commits into from Jan 28, 2024

Conversation

eidun10
Copy link
Owner

@eidun10 eidun10 commented Jan 28, 2024

Initialised Articles MVC structure with template code

TODO:
Work on failing tests:


Failure:
ArticleTest#test_has_search_functionality [test/models/article_test.rb:11]:
Expected Article(id: integer, title: string, content: text, author: string, date: date, created_at: datetime, updated_at: datetime) (Class) to respond to #search.


bin/rails test test/models/article_test.rb:10

F

Failure:
ArticleTest#test_starts_with_no_articles [test/models/article_test.rb:7]:
Expected: 0
  Actual: 2


bin/rails test test/models/article_test.rb:6

F

Failure:
ArticleTest#test_deletes_an_article [test/models/article_test.rb:46]:
Expected: 0
  Actual: 2


bin/rails test test/models/article_test.rb:43

E

Error:
ArticleTest#test_displays_relevant_articles_in_search_results:
NoMethodError: undefined method `search' for Article:Class
    test/models/article_test.rb:66:in `block in <class:ArticleTest>'


bin/rails test test/models/article_test.rb:63

......E

Error:
ArticleTest#test_returns_accurate_search_results:
NoMethodError: undefined method `search' for Article:Class
    test/models/article_test.rb:58:in `block in <class:ArticleTest>'


bin/rails test test/models/article_test.rb:55```

@eidun10 eidun10 merged commit ee6793b into main Jan 28, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant