mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
introduce strong_parameters
This commit is contained in:
parent
ea294f71c2
commit
661ddbb158
4 changed files with 14 additions and 2 deletions
|
@ -3,6 +3,10 @@ require 'spec_helper'
|
|||
describe UserActionsController do
|
||||
context 'index' do
|
||||
|
||||
it 'fails if username is not specified' do
|
||||
expect { xhr :get, :index }.to raise_error
|
||||
end
|
||||
|
||||
it 'renders list correctly' do
|
||||
ActiveRecord::Base.observers.enable :all
|
||||
post = Fabricate(:post)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue