The URLockbox is the final project at the Turing School of Software & Design.
Production for the project lives here Hotness
- To check it all out:
- user_name: [email protected]
- password: 1234
The app has the selenium-webdriver
gem listed in the Gemfile
and setup in the rails_helper.rb
-
You will need to download version 46 of Firefox here.
-
If you do have it, make sure it is on version 46. Selenium does not work with all versions of Firefox, so make sure that you are using Firefox 46 or else it will potentially cause you problems.
-
If you already have Firefox and it's on a version more recent than 46, the easiest way to downgrade is to uninstall Firefox then install version 46.
bundle
rake db:setup
rspec
- Add redirect inside application controller with an authorize! method
- Add Create User form and Password confirmation.
- will probably break this form into a partial to better serve across multi views
- Hook the create user form to the database, allows for creation of Users
- broke error messages and flashs to a partial to parse
- scope base permissions to current_user, simple as not showing the main index if not logged in.
- following the spec, I added link creation as direct database calls and a page refresh - this will be changed soon
- scoped the delegation of who owns a link on creation to allow the current user to own it on create
- can now mark as read! Woo
- These are for me!
You can then write capybara feature tests and add js: true
tag if you'd like your test to use the Selenium WebDriver rather than the default WebDriver. Your tests will execute and recognize your JavaScript.
If you're having problems troubleshooting asynchronous actions (like DOM changes after an AJAX request), peruse this section of Capybara's docs
It is highly suggested that you also check out the Capybara docs and and the section on selenium-webdriver.