Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Release 0.1 #1

Merged
merged 151 commits into from
Jun 8, 2018
Merged
Changes from 1 commit
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
60b6cec
initial commit
May 13, 2018
4a0bbd9
more
May 13, 2018
256eb5a
fix routes
May 13, 2018
4a0b8c1
routes
May 13, 2018
42f9fd9
links
May 13, 2018
f391d44
comments
May 13, 2018
8a87060
extraneous check
May 13, 2018
7a26728
Revert "extraneous check"
May 13, 2018
03f83de
unique random quotes
tomcuchta May 13, 2018
7e3e376
refactor views to use shared show layout
May 13, 2018
34e21ff
fix delete
May 13, 2018
d2bd8c0
fix pagination
May 13, 2018
4356270
remove crap
May 13, 2018
b2de58b
fix latest page
May 13, 2018
d0a1305
routes
May 13, 2018
e52cf0d
add upvote/downvote
May 13, 2018
063225d
fix dupe message
May 13, 2018
a260406
fix random
May 13, 2018
3885839
fix upvote/downvote on random page
May 13, 2018
7e2fb19
add top
May 13, 2018
e1a4f0b
checkin
May 13, 2018
b1a1bc3
more on random
May 13, 2018
16cab0f
moar random
May 13, 2018
9be9200
fix random
May 13, 2018
c77062a
use sample() method
May 13, 2018
195c767
simpler
May 13, 2018
35aa3e8
fix conditional
May 13, 2018
e49f68d
remove old crap
May 13, 2018
db68ff0
add top
May 13, 2018
9c05dcf
simplify the still broken random def
May 13, 2018
480ba51
fuck this
May 13, 2018
18ee98b
fix random
May 13, 2018
e261572
random1
May 13, 2018
bfe2784
random1
May 13, 2018
22da66b
fix randoms
May 14, 2018
93abf17
add flagged column to db
May 14, 2018
9301acf
bootstrap dependencies
May 14, 2018
d21b58c
add flagged column to db
May 14, 2018
2ff56e2
bootstrap dependencies
May 14, 2018
5120752
layout
May 14, 2018
a946568
layout
May 14, 2018
1b5d4b9
layout
May 14, 2018
5d31124
layout
May 14, 2018
d819fdb
layout/pagination
May 15, 2018
eceb030
pretty bootstrap pagination
May 15, 2018
d08ef57
links
May 15, 2018
72e7827
fix randoms
May 15, 2018
5975a45
layout
May 15, 2018
1ba0fdb
layout
May 15, 2018
09e435a
search
May 15, 2018
acf7645
search
May 15, 2018
2321b6f
devise
May 16, 2018
1c21e8d
add approve method
May 16, 2018
e966149
cleanup views
May 16, 2018
0c68181
grammar logic in admin home
May 16, 2018
5a28395
add fields to json
May 16, 2018
2ce8787
fix unflag/approve
May 17, 2018
a42f6fb
cleanup
May 17, 2018
963f294
h6 in session view
May 18, 2018
4d95b56
remove confirmations view
May 18, 2018
520d5cb
remove confirmation view
May 18, 2018
3abbdaf
remove registration views
May 18, 2018
dd38898
verbiage
May 18, 2018
9096edc
remove omniauth stuff
May 18, 2018
788579b
users views
May 18, 2018
04da08e
users controller
May 18, 2018
6ff788f
bunch of weird devise stuff
May 18, 2018
1365cc2
Revert "bunch of weird devise stuff"
May 18, 2018
b6ff496
bunch of weird devise stuff
May 18, 2018
f299adf
finish admin panel
May 20, 2018
8dcbcbb
Merge branch 'admin' into development
May 20, 2018
b31acb3
Revert "Merge branch 'admin' into development"
May 20, 2018
49e7438
add administration features
May 20, 2018
aaba40c
get tests passing
May 20, 2018
e56ea11
add travis.yml
May 20, 2018
db9ac90
add test to verify unauthenticated users cannot delete quotes
May 20, 2018
e50bf5d
add tests
May 20, 2018
979d046
add travis caching
May 20, 2018
2435c28
update users controller to disallow deletion of current logged in user
May 20, 2018
5ed780e
add rvm to travis cache
May 20, 2018
8269320
add bundler back to travis cache
May 20, 2018
4f0c6a8
add travis status to README
May 20, 2018
5d3e54d
add test for search
May 20, 2018
1650e43
fix .travis.yml
May 21, 2018
4459d08
search feature initial commit
May 21, 2018
75ac22a
fix search
May 21, 2018
5c9cb3f
fix tests
May 21, 2018
2f2f19e
add id to link in views
May 21, 2018
6bfc1f5
add test coverage
May 21, 2018
276735f
add test case
May 21, 2018
130f335
do not search for empty strings or nil patterns
May 21, 2018
a9736ce
fix test
May 21, 2018
5759487
spacing
May 21, 2018
68a7ffc
set branch name for travis badge
May 21, 2018
cb379ed
flesh out documentation
May 21, 2018
4a823bd
flesh out documentation
May 21, 2018
36ba619
update readme
May 21, 2018
d8eafc0
add pg to production in Gemfile
May 21, 2018
41dde93
use postgres database in production env
May 21, 2018
4d25897
reorder db config
May 21, 2018
65958a3
added a button for the bottom quotes
tomcuchta May 22, 2018
a02af42
add test for /random when quotes are not present
May 22, 2018
2d68dda
update test for /random
May 22, 2018
06ffa87
added announcements; no mechanism to add one yet
tomcuchta May 22, 2018
239b9e6
Merge branch 'development' of https://github.com/bplunkert/rqdb into …
tomcuchta May 22, 2018
7a673db
add test for announcement view
May 22, 2018
c6a7e04
add class to pre tag in announcement view
May 22, 2018
f479222
update test to remove outdated references to quotes
May 22, 2018
ddd5625
add AnnouncementsController test for index
May 22, 2018
71819a4
use divs instead of tables for announcements
May 22, 2018
d7046c9
add test scenarios for announcements controller
May 22, 2018
cc9fc1a
remove stale template
May 22, 2018
4390c3b
move divs to index in views
May 22, 2018
1787b95
add announcement routes
May 22, 2018
4382401
update announcement tests
May 22, 2018
f51982c
fix urls in tests
May 22, 2018
aac382c
add methods to announcements controller
May 22, 2018
498da5b
set announcement text column to not null
May 22, 2018
19bd1d3
add presence validator for announcement.text
May 22, 2018
5e3a07d
centralize auth methods in announcement controller
May 22, 2018
776f919
set id for announcement fixtures
May 22, 2018
e915da9
revert quotes changes
May 22, 2018
c1ba7df
add failing test stubs
May 22, 2018
78a31f9
fix tests
May 22, 2018
7826a77
update controller to make tests pass
May 22, 2018
d76707c
add new announcement form and reorder announcement display
May 22, 2018
7f85186
remove lorem ipsum from homepage view
May 22, 2018
2e669ce
add pg workaround instructions to README
May 22, 2018
118e475
Merge branch 'development' into fix_quotes_controller_authentication
May 22, 2018
5494b86
cleanup routes
May 22, 2018
70075a3
cleanup quotes controller
May 22, 2018
70b7563
remove outdated test
May 22, 2018
0b72f3c
add test for upvote/downvote
May 23, 2018
3b03903
add votes model/controller
May 23, 2018
52d4c1f
voting logic
May 23, 2018
06b4ac8
finish voting logic
May 23, 2018
81f93c9
add tests to expose bug in /top and /bottom
May 23, 2018
e95824b
add tests to expose bug in /top and /bottom
May 23, 2018
77f7623
restore score to quotes
Jun 7, 2018
f4cc699
add score back to tests
Jun 7, 2018
086c52e
add quote update/save in quotes_controller
Jun 7, 2018
f1e2e4c
cleanup using set_quote
Jun 7, 2018
06058ef
cleanup using set_quote
Jun 7, 2018
f5bd4b6
fix upvote test
Jun 7, 2018
2e64d98
add tests for voting restrictions
Jun 7, 2018
a8026cb
fix upvote/downvote
Jun 7, 2018
e0c0a34
add bottom view
Jun 7, 2018
5269470
fix update logic for voting to fix first votes
Jun 8, 2018
56bb531
cleanup db seeds
Jun 8, 2018
048d546
move app version to configuration file and set to 0.1
Jun 8, 2018
a0124bf
add Heroku status/link to readme
Jun 8, 2018
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
add test for search
  • Loading branch information
Ben Plunkert committed May 20, 2018
commit 5d3e54d13e229b9169f8aa5cec9e878021850d90
5 changes: 5 additions & 0 deletions test/controllers/quotes_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ class QuotesControllerTest < ActionDispatch::IntegrationTest
assert_response :success
end

test "search should return matching quotes" do
results = Quote.search('MyString1')
assert results.count == 1
end

test "should update quote" do
patch quote_url(@quote), params: { quote: { score: @quote.score, text: @quote.text } }
assert_redirected_to quote_url(@quote)
Expand Down