introduce strong_parameters

This commit is contained in:
Sam
2013-05-27 11:02:58 +10:00
parent ea294f71c2
commit 661ddbb158
4 changed files with 14 additions and 2 deletions

View File

@ -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)