Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe 'POST #create' do
- subject(:do_create) { post :create, menu: attributes_for(:menu) }
- context 'with valid attribute' do
- it 'create new menu' do
- expect{do_create}.to change(Menu, :count).by(1)
- end
- end
- end
- Failure/Error: subject(:do_create) { post :create, menu: attributes_for(:menu) }
- ActionController::ParameterMissing:
- param is missing or the value is empty: menu
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement