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

Feature specs capybara -- finishes week 3 #78

Open
wants to merge 143 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
ab0206a
Seeds Database with Videos
Feb 20, 2014
6ce4d36
Building Home Page
Feb 20, 2014
dc4d06d
Creates Home View
Feb 20, 2014
83787e6
Builds Homepage
Feb 20, 2014
938f182
Building Video Show
Feb 20, 2014
9826c9c
Building Video View
Feb 20, 2014
6bc0883
Fixing Bug in Video Show
Feb 20, 2014
4b230a7
Fixes Bug
Feb 20, 2014
920125e
Fixing Image to Match its Object
Feb 20, 2014
3ee7e5d
builds home page
Feb 21, 2014
0293c4b
Creating Category and Seeding Database
Feb 21, 2014
fbd364c
Creates Category Functionality and Improves Image to Object Programming
Feb 21, 2014
7dc0dc4
Works on Category Show view
Feb 21, 2014
decd5cd
Works on Category Show
Feb 21, 2014
100400d
Creates Videos Per Category Pages
Feb 22, 2014
89a0d05
Creates Category View For Each Category
Feb 22, 2014
f437d7a
Successfully Shows All Movies Per Category In a DRY Way
Feb 22, 2014
ce22440
DRYs up my code
Feb 22, 2014
b57bab8
tests video model's ability to save
Feb 23, 2014
52f646f
tests model associations for video and category
Feb 23, 2014
fec30df
tests for models
Feb 23, 2014
4079674
Debugs Tests in category_spec
Feb 23, 2014
019e44c
Cleans up code after kevin's code review
Feb 24, 2014
9c5436a
Uses Shoulda Matchers in Specs
Feb 25, 2014
4826a39
Refactors Preassignment Code According to TA Comments
Feb 25, 2014
92eca76
Trying to create 4 tests cases for video search method
Feb 26, 2014
75647c8
Tests Pass for Search by video's title function
Feb 26, 2014
01637c1
creates search functionality
Feb 26, 2014
41aeba2
Improves Search Functionality
Feb 26, 2014
7b37f35
Improves Search Functionality
Feb 26, 2014
abf4956
removes params[:title] from text_field_tag
Feb 27, 2014
c9b2edc
Improves tests for video to include order by time
Feb 27, 2014
deefb72
starting recent videos category method
Feb 27, 2014
52a1136
starts recent video method for category model
Feb 27, 2014
e87d7c1
works on tests for recent video method in category model
Feb 27, 2014
668172f
improves tests for search by title functionality
Feb 27, 2014
5ca8be3
removes params[:title] from text_field_tag
Feb 27, 2014
747e24b
tries to merge
Feb 27, 2014
c9231d2
adds tests for search functionality
Feb 27, 2014
79fa13c
tests video return by creation date
Feb 27, 2014
5d06e3c
refactors category tests for recent video function
Feb 27, 2014
1108dec
three passing tests
Feb 27, 2014
e6510e1
6 tests pass for recent video method
Feb 27, 2014
5055162
merges tests for recent video method
Feb 27, 2014
966b317
seeds database with varying date data
Feb 27, 2014
3cf2fe7
implements recent video method on UI
Feb 27, 2014
27a519e
works on views for sign in and log in
Feb 28, 2014
42fc5e6
working on registration form
Feb 28, 2014
b5fd250
works on registration and log in page
Mar 1, 2014
0392368
builds registration page. Must fix error validations and front-end of…
Mar 1, 2014
89bcd7e
log in form does not route to sesssions#create
Mar 1, 2014
87554b5
merges search work
Mar 1, 2014
25b4c1d
creates post route for sessions#create
Mar 1, 2014
2bb6efd
adds log_in method to session form
Mar 1, 2014
819228a
adds log_in method to session form
Mar 1, 2014
d161150
log in and registration forms and validations are working. must wire …
Mar 2, 2014
dde595d
authentication and permissions have been set up
Mar 2, 2014
960e7e8
merges works_on_landing_page_login_registration
Mar 2, 2014
3e826c7
going from red to green with controller tests and installs fabricatio…
Mar 3, 2014
115adeb
factory gem produces objects in tests
Mar 3, 2014
d76f823
installs faker gem
Mar 3, 2014
fc75e9c
installs faker gem
Mar 3, 2014
ee77df4
debugging show action in test folder for video controller
Mar 4, 2014
0fb4087
passing tests for rendering show action for setting @video variable
Mar 4, 2014
40aff54
search action tests for rendering template and setting results variab…
Mar 4, 2014
83f13ca
search action tests for rendering template and setting results variab…
Mar 4, 2014
1096bd3
refactors code after watching solution video
Mar 4, 2014
bf96cf3
user controller tests pass. trying to get sessions controller tests t…
Mar 4, 2014
9f2d8b7
user controller tests pass. trying to get sessions controller tests t…
Mar 4, 2014
b4a4b06
starts tests for sessions controller
Mar 4, 2014
c5ab843
finishes sessions controller tests, fixing failed tests in users cont…
Mar 5, 2014
4d963b1
debugs video controller and category test suites
Mar 5, 2014
54fc0d1
follows Kevin's solutions for testing user controller. however databa…
Mar 5, 2014
eb8c766
adds before boxes within context blocks
Mar 5, 2014
621d7e2
creates user and session controller test suites
Mar 5, 2014
2e176db
builds recent_reviews method for video model
Mar 6, 2014
9189c18
creates new array from video.reviews to make a collection of ratings
Mar 6, 2014
cb28606
builds #average_rating method for video model with test suite
Mar 6, 2014
ab2f038
starting to implement test suite methods from the video model on the …
Mar 6, 2014
0062fc8
implements video model methods in the UI/UX
Mar 7, 2014
aab7370
fixes layout of video show action
Mar 7, 2014
eaba0b2
setting @review variable to test that it is an instance of Review
Mar 8, 2014
c39ec54
recent video and video rating average methods are working
Mar 8, 2014
1cf529d
trying to test setup of @review instance variable
Mar 8, 2014
a5eb107
building review form
Mar 9, 2014
ca7d3a8
building form for review
Mar 10, 2014
af91cca
building review form
Mar 10, 2014
808aaf7
stuck on form for review. cannot get current user as submitted data
Mar 10, 2014
c3013c9
bug: undefined method, merge
Mar 10, 2014
d80edbb
the test, creates a review associated with the signed in user, passes
Mar 11, 2014
91d5930
review submission bug
Mar 11, 2014
3f92ef1
refactors code in reviews create action according to steve's suggestion
Mar 11, 2014
9ed6f29
debugging test for setting @video with invalid input
Mar 11, 2014
29b3dc0
trying to understand the difference between Fabricate.attriubtes_for …
Mar 11, 2014
e939cbc
test for setting @variable with invalid inputs fail
Mar 11, 2014
2432cd7
test for setting @video works for reviews controller
Mar 12, 2014
7939dcb
@reviews instance variable is set for reviews controller
Mar 12, 2014
f6f8103
sets @reviews passes
Mar 13, 2014
b77ef30
testing authorization for reviews controller
Mar 13, 2014
112cb1c
tests response for inauthenticated user and refactors reviews control…
Mar 13, 2014
fd7702b
creates index page for que
Mar 14, 2014
b523874
building add que item to my que
Mar 14, 2014
7ee79c7
refactors my code for setting @que_items and related methods
Mar 15, 2014
10a2202
adding que item to my que page
Mar 15, 2014
678a0ba
removed NaN from video show on UI/UX by adjusting Video#average_rating
Mar 15, 2014
512954c
trying to get test for creating a que_item associated with a video
Mar 16, 2014
b31aef6
trying to prevent the que from adding itself twice to someone's que
Mar 16, 2014
d627056
refactoring code from review
Mar 17, 2014
a623014
all tests pass for queue_controller and adding a queue to my quuees
Mar 17, 2014
feba281
all tests pass for queue_controller and adding a queue to my quuees
Mar 17, 2014
990b156
debugging undefined method title for nil:NilClass
Mar 17, 2014
a971b82
debugging failed tests for associating a user to a queue item
Mar 17, 2014
e571cbb
fixing a failing test, POST create redirects to the my que page
Mar 17, 2014
44dfff4
refactors code for duplicate queue item
Mar 18, 2014
990167d
all tests pass. howeverqueue_item page only contains one queue_item a…
Mar 18, 2014
e3bfab2
all tests pass. howeverqueue_item page only contains one queue_item a…
Mar 18, 2014
d72d787
executed destroy action
Mar 18, 2014
6fbc4a6
correctly executed destroy action
Mar 18, 2014
e98002a
finishes week 2 and my queue
Mar 19, 2014
3df07dd
refactors average rating code in video model
Mar 19, 2014
10f6432
refactors code based on solution for sorting queue
Mar 21, 2014
7691981
refactors code according to solutions videos for re-sorting queue_ite…
Mar 22, 2014
51b573d
cleans up reviews controller
Mar 22, 2014
f7496b1
refactors code in queue_items controller to move logic down to privat…
Mar 23, 2014
54e0375
refactors code in queue_items controller to move logic down to privat…
Mar 23, 2014
e76b541
refactors code in queue_items controller to move logic down to privat…
Mar 23, 2014
b36ce76
tries to set review rating on the queue items index view pate
Mar 23, 2014
d0624ab
tests for review virtual attributes in queue item model are failing
Mar 24, 2014
f790631
tests for review virtual attributes in queue item model are failing
Mar 24, 2014
a3540a9
enables user to change review's rating on queue items index page
Mar 25, 2014
3a0ed50
refactors tests to include video object for POST sort action
Mar 25, 2014
9f992ac
refactors code in queue_items_controller_spec, implements delegate sy…
Mar 26, 2014
fe25db0
refactors some code in reviews and queue_items controller with macros…
Mar 26, 2014
affa3a7
finishes implementation of macros and shared examples
Mar 27, 2014
420670c
creates a private method that memoizes ivar in queue_item model
Mar 27, 2014
6c6d337
starts first feature spec for signing in a users
Mar 27, 2014
2b5d52b
resolves gem file errors by installing nokogiri
Mar 27, 2014
97af8fb
builds user instance method to block add queue button if already adde…
Mar 29, 2014
da09ac0
refactors code in feature spec for re-shuffling queue and finishes we…
Mar 30, 2014
ae62be2
refactors code in feature spec for re-shuffling queue and finishes we…
Mar 30, 2014
801739b
fixes spec in queue items controller for creating a queue item that i…
Mar 30, 2014
39e41f8
finishes week 3
Mar 31, 2014
ad6e08c
refactors code according to luke's suggestions on github, changes let…
Apr 1, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
finishes week 2 and my queue
  • Loading branch information
Rob Jewell committed Mar 19, 2014
commit e98002a55079361ac0e9d6597035141f8bcecdcf
1 change: 0 additions & 1 deletion app/controllers/queue_items_controller.rb
Original file line number Diff line number Diff line change
@@ -2,7 +2,6 @@ class QueueItemsController < ApplicationController
before_action :current_user, :authorize

def index
#@queue_items = QueueItem.all
@queue_items = current_user.queue_items.all
end