Sha256: c40cfec51c2df87e25140f2f0c2958c80efb49863e60911dea29fa2c7d01f095
Contents?: true
Size: 458 Bytes
Versions: 3
Compression:
Stored size: 458 Bytes
Contents
require 'test_helper' class Hexlet::TeacherCLITest < MiniTest::Test def setup @router = Hexlet::Router.new end def test_submit stub = stub_request(:post, @router.api_teacher_lessons_url). to_return(:status => 201) FakeFS do folder = "my_super_ru_lesson" FileUtils.mkdir(folder) result = Hexlet::TeacherCLI.start ["submit", folder, "--verbose"] assert { result } end assert_requested stub end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hexlet-0.1.1 | test/hexlet/teacher_cli_test.rb |
hexlet-0.1.0 | test/hexlet/teacher_cli_test.rb |
hexlet-0.0.1 | test/hexlet/teacher_cli_test.rb |