mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 20:21:25 +08:00
introduce strong_parameters
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user