Add new CodeOcean::File#read method
* With a new method, we can simplify our code to handle differences between file.content and file.native_file.read
This commit is contained in:
@ -131,7 +131,7 @@ describe SubmissionsController do
|
||||
expect_http_status(:ok)
|
||||
|
||||
it 'renders the file content' do
|
||||
expect(response.body).to eq(file.native_file.read)
|
||||
expect(response.body).to eq(file.read)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user