search for: post_attributes

Displaying 1 result from an estimated 1 matches for "post_attributes".

2011 Dec 02
2
problem setting expectation for test with delayed::job
...an expectation on new is somehow changing the structure of the class and confusing delayed job? Maybe because it''s a struct? 1) PostsController creating a post sharing shares when it should Failure/Error: post :create, { :submit_action => submit_type.to_s, :post => new_post(post_attributes).attributes } ArgumentError: Cannot enqueue items which do not respond to perform # ./app/observers/post_observer.rb:12:in `after_create'' # ./app/models/post.rb:156:in `set_state_to_open_for_free_requests'' # ./app/controllers/posts_controller.rb:39:in `c...