Fixed broken test regarding week validation.
- The test was originally adding 8 to the integer representing 'day'. Becasue the tests are based on current time, end-of-month dates would error out because sometimes 'day' would be set to something over 28-31, and error out due it not being a valid day of the month.
Fixed Adding Position tests
- Because I removed the labels, Capybara was failing to find fields. Refactored to use IDs instead of labels.
Refactored create_account test to check for 'Start Scheduling' link upon creation instead of 'Sign Out'
Added capybara-webkit and database_cleaner to gemfile
Updated tests for Schedule Selector. Due to JS limitations, some tests are pending.
- Factories: set the week_of for the Schedule factory to use UTC.
- Spec: Tested for presence of calendar and custom functionality of clicking on a week and being presented with different options for creating or going directly to the schedule. Due to current rspec + JS limitations, I was unable to successfully test this at this time.
- spec_helper: added database cleaner
Fixed sign in spec since the home page is now completely different. Tested for presence of the 'Start Scheduling' button instead.
Also changed the sign_out spec to test for the same things.
Set all these tests to Pending.
- Due to JS and rpsec currently not playing well together, these tests are in pending until further notice.