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