Added the API model and basic tests. Had to migrate to swap the valid column's name to 'active'. Factories are written, but not currently functional.
Expanded api model tests. Added validations for user_id, key_id, v_code and accessmask for the api model.
Implemented has_many relationship between users and apis. Basic tests for this are also in place on the model specs. API factories still aren't functional.
generated Apis controller scaffold. rails generate controller Apis new --no-test-framework
Built out api create method on api controller. Built out newcharacterapi page, must be separate due to access masks and sanity. Built out basic tests for newcharacterapi page. Built out _api_error_messages.html.erb partial for the error flash. APIs are not enrolling, throwing errors that don't fit. Check through the tutorial for demo on user saving and see if you can reproduce the steps.
Fixed bug causing APIs not to save. Added more validation tests to api model spec. Changed key_id attribute to unique.
Created apilist page, wrote basic specs for it in the api_pages_spec. Page still needs content.
Implemented sequenced factories for user, character_api and corporation_api
Added will_paginate gem. Created and got apilist page to render. apilist only shows one api, does not list the entirety as expected. Need to review code and make it work properly.
Reviewed and updated apilist page. It now renders and lists APIs properly. Needs tests and advanced features.
Trying to get tests working, api factories still busted. Fill_in not working on api page, goign to go write some user pages tests.
Modified utilities.rb, api new and other pages. Still no dice getting the tests working. Oddly enough, fill_in doens't work on specs, neither does factory_girl api (user generation works), however fill_in does work on the utilities' sign_in method.
Deleted _apis.html.erb as it is redundant and unused as a result of the switch to a single API page.
Removed 'spork' from the gem file, uninstalled spork via 'gem uninstall spork' then ran bundle install knowing that bundler would reinstall spork as a dependency for guard-spork.
Moved Capybara::DSL include down from global to rspec.configure block after noticing it in Starkers' post.
Moved fill_in lines to the before block after reading Steve's response to Starkers' post. This explains why the sign_in code would fire properly while the fill_in outside of the before blocks would not. sign_in was always used inside an before block. This is consistent with user_pages_spec in sample_app. Why didn't I notice this sooner?
Factories still weren't working. In an attempt to diagnose I moved a FactoryGirl.create(:api, user: user) line to within a before block. This caused a spectacular failure explaining that the type column is a reserved word and thus cannot be written to. This was validated by forcing a write to the type column in the rails console and receiving the same error via the browser when attempting to render the API. The column must be renamed.
Migrated apis 'type' column to 'entity'. Then updated the databases, restarted the rails server, updated the sepcs, api model, and api factories to match the new column. FactoryGirl.create(:api, user: user) now works. Not sure about corporation keys yet.
FactoryGirl.create(:api, user: user) only seems to work in before blocks. let() commands stil seem to be broken for some reason.
FactoryGirl.create(:corporation, user: user) seems to work just fine within a before block. So testing is now at least possible.