test/hexlet/teacher_cli_test.rb in hexlet-0.3.3 vs test/hexlet/teacher_cli_test.rb in hexlet-0.3.4
- old
+ new
@@ -11,10 +11,12 @@
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)