2017-04-11 16:25:10 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'Raw files', '(JavaScript fixtures)', type: :controller do
|
|
|
|
include JavaScriptFixturesHelpers
|
|
|
|
|
|
|
|
let(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
|
2017-08-01 14:51:52 -04:00
|
|
|
let(:project) { create(:project, :repository, namespace: namespace, path: 'raw-project') }
|
2017-04-11 16:25:10 -04:00
|
|
|
|
|
|
|
before(:all) do
|
|
|
|
clean_frontend_fixtures('blob/notebook/')
|
|
|
|
end
|
|
|
|
|
2017-08-22 19:19:35 -04:00
|
|
|
after do
|
|
|
|
remove_repository(project)
|
|
|
|
end
|
|
|
|
|
2017-04-11 16:25:10 -04:00
|
|
|
it 'blob/notebook/basic.json' do |example|
|
|
|
|
blob = project.repository.blob_at('6d85bb69', 'files/ipython/basic.ipynb')
|
|
|
|
|
|
|
|
store_frontend_fixture(blob.data, example.description)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'blob/notebook/worksheets.json' do |example|
|
|
|
|
blob = project.repository.blob_at('6d85bb69', 'files/ipython/worksheets.ipynb')
|
|
|
|
|
|
|
|
store_frontend_fixture(blob.data, example.description)
|
|
|
|
end
|
2017-05-30 11:00:36 -04:00
|
|
|
|
|
|
|
it 'blob/notebook/math.json' do |example|
|
|
|
|
blob = project.repository.blob_at('93ee732', 'files/ipython/math.ipynb')
|
|
|
|
|
|
|
|
store_frontend_fixture(blob.data, example.description)
|
|
|
|
end
|
2017-04-11 16:25:10 -04:00
|
|
|
end
|