[Rails] Re: why is my rspec controller test for get method not working?

2013-11-16 Thread Peter
https://github.com/haloflightleader/bank/commit/88762271b5feda1390054b472cfb1de006c2b5da I corrected my code, but am still getting this: > Failures: > 1) AccountsController Get new assigned @account > Failure/Error: expect( assigns(:account) ).to eq( [account] ) > >expe

[Rails] why is my rspec controller test for get method not working?

2013-11-16 Thread Peter
Hello Everyone, Why is my controller test in the get method not working? https://github.com/haloflightleader/bank/blob/02695c7c5106b30e178d3a0d05125f8deedd5e67/spec/controllers/accounts_controller_spec.rb#L18 This is practically a copy from the rails guides and it works in my index test. The ren

[Rails] Re: Hook into Exception Chain

2013-11-16 Thread Frederick Cheung
On Friday, November 15, 2013 10:26:10 AM UTC, sol wrote: > > I've used the above approach now > > However, this only works for controller actions. > I've got some cronjobs in the project (lib folder) as well as a sinatra > app that is mounted within the rails app. > > Is there any way I could ca