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

Chitter-challenge - Tara #1215

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

tsankhalpara
Copy link

Please see the readme to show the areas of the challenge I have struggled with and have not been able to complete.

Copy link

@NapperJLG NapperJLG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice looking app! For some reason I couldn't get the peeps to show up when I submitted them though...I just got a list of #'s, but it could very well have been me setting up the database wrong.
The only things I really noticed were the obsolete feature tests and the CSS being in the view, but the code looks pretty good other than that. I defo enjoyed looking at it since I didn't give myself nearly enough time to get very far!

Nice job :)

@@ -1,8 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep your view files a bit cleaner, you can create a seperate CSS file and at a link to it in the html. Dom sent me this for the RPS game last week which helped a bit: https://github.com/webdevjeffus/css-for-sinatra#putting-it-in-place

@@ -5,4 +5,10 @@
visit('/')
expect(page).to have_button 'Sign up'
end

scenario 'Allow user to enter details' do

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two feature test probably could have been merged into one. In this test, capybara is clicking the signup button in order to let the user enter details. If the page didn't have the sign up button (which the first feature test is testing for), then the test would still fail, so you're still covering yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants