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.
Added in corporation api enrollment page. Modified routes and controller to support it. Page uses hidden fields to configure entity value. 1 for corporations. Controller is not longer very DRY, perhaps it can be DRYed up later.
Added hidden field to pass entity value when creating new APIs. Entity value is 0 because this page is always a character. Better view names and controller method names are needed.
Change page titles from 'Create new...' to 'Enroll new...'
Added functional tests for the signup page.
Added specs for the newcorporationapi page. Including enrollment testing spec. Note: new page names needed badly.
Stripped off coffee script from the apis.js file as I don't feel like tackling coffee script with this project. Copyed my custom field character counter in from sample_app or use in the API enrollment forms.
Added the javascript calls and divs to support my character counter javascript from sample_app. This was done in prep of firing controller calls via JS to validate the APIs accessmask.
Added demo.rb to .gitignore and moved it into the main directory for easy testing purposes.
Completed Api accessmask retrieval and verification in the controller spec. This makes it possible to remove the newcorporationapi page entirely and dry up the API enrollment process. Entity value may be assigned based on retrieved access mask. This would potentially conflict the collection of full keys, though there may be workarounds.
Code added to the create method to determine and populate the entity value based on the accessmask returned.
Removed hidden entity field. Added link for Corporation Key Guide. Changed title to 'Enroll new API'.
Removed newcorporationapi route to match the removed page. Changed the route to the new api page to '/enrollnewapi'.
Removed corporation.html.erb to DRY up the api pages.
Removed newcorporationapi page specs entirely. Changed paths and title expectations for the Enroll New Api page specs to match the new pages. This move to access mask validation may make testing much more complicated thanks to the way it's been implemented.
Added drop down API menu to the header file. This required adding a require line to the application.js file and links to the header file. All pages are now accessible via menus except for help.
Modified predefined key and corporation key guide links to open new tabs. Corp Key Guide still goes nowhere.