Skip to content

Commit

Permalink
Add future implementations to README. Images are now clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
richo225 committed Sep 21, 2016
1 parent 7254748 commit a7f6371
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Instagram Challenge
[![Build Status](https://travis-ci.org/richo225/richagram.svg?branch=master)](https://travis-ci.org/richo225/richagram)
[![Coverage Status](https://coveralls.io/repos/github/richo225/richagram/badge.svg?branch=master)](https://coveralls.io/github/richo225/richagram?branch=master)

An instagram clone developed using the Ruby on Rails framework.
An instagram clone developed using the Ruby on Rails framework and utilising Amazon S3 for image storage. This was a project created over a single weekend during my 8th week of the [Makers Academy](https://github.com/makersacademy) bootcamp.

https://richagram.herokuapp.com/

Expand Down Expand Up @@ -107,15 +107,19 @@ I would like to be able to search for pictures by tags

Technologies
------------
* Rails-5
* Rails-5.0
* Ruby
* Postgresql
* Rspec
* Capybara
* Paperclip
* Amazon Web Services S3
* Bootstrap-4
* Bootstrap-4.0
* Heroku

Future implementations
----------------------
- User is only able to like a picture once.
- Ability to unlike a picture.
- A profile section for each user where all their posts are visible.
- Implement a choice of filters for image uploads.
2 changes: 1 addition & 1 deletion app/views/posts/_post.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.time-ago
= time_ago_in_words(post.created_at)
.image.center-block
= image_tag post.image.url(:thumb)
= link_to (image_tag post.image.url(:thumb)), post_path(post)
.post-bottom
.likes
Like:
Expand Down
11 changes: 10 additions & 1 deletion spec/features/posts_feature_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,21 @@
expect(page).to have_content "test@mail.com"
end

scenario "user can view individual images" do
scenario "user can view individual images via description" do
visit "/"
click_link "Selfie"
expect(page).to have_content "Selfie"
end

scenario "user can view individual images via clicking them" do
add_image("Wedding")
page.attach_file("post_image", Rails.root + "app/assets/images/smile.jpg")
click_button "Upload image"
find(:css, "img[src*='smile.jpg']").click
expect(page).to have_content "Wedding"
expect(page).to have_content "Add comment"
end

scenario "user can delete their own images" do
visit "/"
click_link "Selfie"
Expand Down

0 comments on commit a7f6371

Please sign in to comment.