File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
tests/general/e2e/controller Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ describe "DefaultController" do
40
40
41
41
it " post friends" do
42
42
response = http_client.post(" /friends" )
43
- response.status_code.should eq 400
43
+ response.status_code.should eq 200
44
44
end
45
45
46
46
it " put friends" do
Original file line number Diff line number Diff line change 1
1
require " ../spec_helper.cr"
2
2
require " ../../src/controllers/default_controller"
3
3
4
- describe " UserController " do
4
+ describe " FileController " do
5
5
http_client = HttpClient .new(ENV [" APP_URL" ] + " /file" )
6
6
7
7
it " /scripts/bundle.js" do
@@ -31,7 +31,7 @@ describe "UserController" do
31
31
" Accept" => " application/json" ,
32
32
" Content-Type" => " application/json" ,
33
33
}, nil )
34
- response.status_code.should eq 400
34
+ response.status_code.should eq 200
35
35
end
36
36
37
37
# it "/upload" do
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ describe "HomeController" do
100
100
" Accept" => " application/json" ,
101
101
" Content-Type" => " application/json" ,
102
102
}, nil )
103
- response.status_code.should eq 400
103
+ response.status_code.should eq 200
104
104
end
105
105
106
106
it " /post with empty body" do
@@ -200,7 +200,7 @@ describe "HomeController" do
200
200
response = http_client.post(" /get_body" , HTTP ::Headers {
201
201
" Accept" => " application/json" ,
202
202
})
203
- response.status_code.should eq 400
203
+ response.status_code.should eq 200
204
204
end
205
205
206
206
it " /text with get_body with body - name only" do
You can’t perform that action at this time.
0 commit comments