mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: roll up staff action wasn't working
This commit is contained in:
@@ -220,4 +220,15 @@ describe StaffActionLogger do
|
||||
log_record.details.should == badge.name
|
||||
end
|
||||
end
|
||||
|
||||
describe 'log_roll_up' do
|
||||
let(:subnets) { ["1.2.3.0/24", "42.42.42.0/24"] }
|
||||
subject(:log_roll_up) { described_class.new(admin).log_roll_up(subnets) }
|
||||
|
||||
it 'creates a new UserHistory record' do
|
||||
log_record = logger.log_roll_up(subnets)
|
||||
log_record.should be_valid
|
||||
log_record.details.should == subnets.join(", ")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user