Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. describe 'POST #create' do
  2. subject(:do_create) { post :create, menu: attributes_for(:menu) }
  3.  
  4. context 'with valid attribute' do
  5. it 'create new menu' do
  6. expect{do_create}.to change(Menu, :count).by(1)
  7. end
  8. end
  9. end
  10.  
  11.  
  12. Failure/Error: subject(:do_create) { post :create, menu: attributes_for(:menu) }
  13. ActionController::ParameterMissing:
  14. param is missing or the value is empty: menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement