Commit Graph

91 Commits (5bce31baf283a051d1213c30601355494939d8d5)

Author SHA1 Message Date
Adam Townsend f0bad17e89 some formatting and more context in README 2023-10-03 16:08:16 -07:00
Adam Townsend 5ca4bf707b removed rspec db setup, i probably didn't have it set right to clean up
after each task, implemented that in the before and after steps
2023-10-03 16:02:33 -07:00
Adam Townsend 8b2780820c update for features
+ added flash/message assertions
+ adjusted urls to be http://google.com for tests for now
+ added @db-test tags to tests that use db interactions
+ added a scenario for duplicate URLs being used
+ added before and after steps to init and clean up db tests
+ added initialization of a test db for tests instead of interacting
  with the production database
2023-10-03 15:58:56 -07:00
Adam Townsend 8639c785b7 added a spot for messages to show up in the layout 2023-10-03 15:58:33 -07:00
Adam Townsend 84a047fb0c require the .env file to load ENV variables set in there 2023-10-03 15:58:01 -07:00
Adam Townsend b2b41f1aa1 added flash plugin
+ added flash plugin, and the session plugin required by flash
+ set the DB name as an environment variable
+ set @message variable where it needs to be set to show on the UI
2023-10-03 15:56:42 -07:00
Adam Townsend fff6b0f5dd added more notes for the README 2023-10-03 15:55:59 -07:00
Adam Townsend c51c0afcf2 ignore the local env file 2023-10-03 15:55:37 -07:00
Adam Townsend 88b52df610 ignore db files (sqlite) 2023-10-02 16:22:21 -07:00
Adam Townsend 0da7ec74e8 ignore .bundle directory 2023-10-02 16:21:44 -07:00
bucky 2bcf76618a Merge pull request 'testing-enviroment-setup' (#10) from testing-enviroment-setup into master
Reviewed-on: #10
2023-10-02 14:55:29 -07:00
Adam Townsend d0c0ad5c16 removed an extra line in README 2023-10-02 14:51:58 -07:00
Adam Townsend b90b400864 added more startup instructions and updated gems to have a development group 2023-10-02 14:22:26 -07:00
bucky b66a5bb3e1 Merge pull request 'tests' (#7) from tests into master
Reviewed-on: #7
2023-10-02 13:03:46 -07:00
Adam Townsend cb027e19c8 generalized fill in field with text action 2023-10-02 13:02:48 -07:00
Adam Townsend 52a6bac85f added 3rd test case for submitting a url 2023-10-02 11:37:19 -07:00
bucky 1e9a066cd1 Merge pull request 'tests' (#6) from tests into master
Reviewed-on: #6
2023-10-01 12:26:20 -07:00
Adam Townsend a1ea2a09ec expanded click button to click any button for easier use 2023-10-01 12:14:41 -07:00
Adam Townsend 445236d735 2nd scenario
+ added a scenario for submitting the button with no text  in url field
+ simplified the visit when clause to be used with any url
+ edited create route redirect if url param is empty (backend validation
  for required URL field)
+ added when clause for clicking submit button
+ added then clause for current path/page
2023-10-01 12:10:30 -07:00
Adam Townsend 94026bdad2 added more parts for the first scenario and updated code to work with the changes 2023-09-30 18:39:30 -07:00
Adam Townsend b827f72f25 ignore vim swap files 2023-09-30 18:38:56 -07:00
Adam Townsend a34b788ff4 added testing stuff, and wrote first successful test! 2023-09-30 14:33:24 -07:00
Adam Townsend 097645cd71 added word break to output view, removed custome validation messages on
form
2023-09-25 13:58:40 -07:00
Adam Townsend 3e6500ae1c removed rails gem, not sure why it was in there to begin with 2023-09-25 11:06:59 -07:00
Adam Townsend 868ed81b97 set min height so box stays the same between views 2023-09-24 11:29:22 -07:00
Adam Townsend 57790ff464 custom validation message 2023-09-24 10:19:45 -07:00
Adam Townsend d2a411d94c url validation 2023-09-22 18:31:32 -07:00
Adam Townsend 8cabe5c7b6 more layout updates 2023-09-22 18:26:38 -07:00
Adam Townsend c0c82e5395 added some simple styles to make it nicer 2023-09-22 17:42:50 -07:00
Adam Townsend 47f8741592 added logic to prevent duplicate url's from being entered, it just
fetches the url and load it instead
2023-09-22 15:11:06 -07:00
Adam Townsend 935b0c5a9f cucumber initialization 2023-09-19 15:40:18 -07:00
Adam Townsend a3d7525d9a added rspec, rack test, and cucumber gems 2023-09-19 12:23:38 -07:00
Adam Townsend 1652107549 got app working reasonably well, and removed db file, that shouldn't be in the db 2023-09-14 22:30:33 -07:00
Adam Townsend 3e789f832a added form to create shortened url 2023-09-14 18:54:20 -07:00
Adam Townsend 3b2184ffd7 added home, create, and layout views 2023-09-14 18:50:11 -07:00
Adam Townsend b85a577ec2 use render plugin to load erb html views 2023-09-14 18:49:18 -07:00
Adam Townsend 239d36ad85 added tilt for rendering HTML 2023-09-14 18:49:08 -07:00
Adam Townsend a60a022365 some readme text to help get started 2023-09-13 19:08:49 -07:00
Adam Townsend 795f547ff2 added sequel and sqlite bits for the table 2023-09-13 19:08:40 -07:00
Adam Townsend 81b22d0c4a initial framework for the shortener routes 2023-09-13 13:29:45 -07:00
Adam Townsend c6fa7eafe3 initial commit with gemfile 2023-09-13 12:36:08 -07:00