discourse/spec/jobs/export_csv_file_spec.rb

14 lines
268 B
Ruby
Raw Normal View History

2014-08-09 18:28:57 +08:00
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