mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -05:00
14 lines
268 B
Ruby
14 lines
268 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Jobs::ExportCsvFile do
|
||
|
|
||
|
context '.execute' do
|
||
|
|
||
|
it 'raises an error when the entity is missing' do
|
||
|
lambda { Jobs::ExportCsvFile.new.execute(user_id: "1") }.should raise_error(Discourse::InvalidParameters)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|