Sha256: 1e69c8c5157381877509e7ba45bcd421bf7331d9808ef488f76f48c0395212f1
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 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 # api_key = "api_key" stub = stub_request(:post, @router.api_teacher_lessons_url). # with(:headers => {'X-Hexlet-Api-Key' => api_key}). 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hexlet-0.3.4 | test/hexlet/teacher_cli_test.rb |