diff --git a/spec/picker_spec.lua b/spec/picker_spec.lua index eeee9d7..a007a8a 100644 --- a/spec/picker_spec.lua +++ b/spec/picker_spec.lua @@ -129,7 +129,6 @@ describe('cp.picker', function() return '/tmp' end - -- Mock vim.system to return success with problems vim.system = function() return { wait = function() @@ -188,27 +187,4 @@ describe('cp.picker', function() assert.equals(0, #problems) end) end) - - describe('setup_problem', function() - it('calls cp.handle_command with correct arguments', function() - local cp = require('cp') - local called_with = nil - - cp.handle_command = function(opts) - called_with = opts - end - - picker.setup_problem('codeforces', '1951', 'a') - - vim.wait(100, function() - return called_with ~= nil - end) - - assert.is_table(called_with) - assert.is_table(called_with.fargs) - assert.equals('codeforces', called_with.fargs[1]) - assert.equals('1951', called_with.fargs[2]) - assert.equals('a', called_with.fargs[3]) - end) - end) end)