Commit 66cd2e97 authored by Winnie Hellmann's avatar Winnie Hellmann

Merge balsamiq fixture into raw file fixtures

parent dff8bd0c
require 'spec_helper'
describe 'Balsamiq file', '(JavaScript fixtures)', type: :controller do
include JavaScriptFixturesHelpers
let(:namespace) { create(:namespace, name: 'frontend-fixtures' )}
let(:project) { create(:project, :repository, namespace: namespace, path: 'balsamiq-project') }
before(:all) do
clean_frontend_fixtures('blob/balsamiq/')
end
it 'blob/balsamiq/test.bmpr' do |example|
blob = project.repository.blob_at('b89b56d79', 'files/images/balsamiq.bmpr')
store_frontend_fixture(blob.data.force_encoding('utf-8'), example.description)
end
end
......@@ -8,6 +8,7 @@ describe 'Raw files', '(JavaScript fixtures)' do
let(:response) { @blob.data.force_encoding('UTF-8') }
before(:all) do
clean_frontend_fixtures('blob/balsamiq/')
clean_frontend_fixtures('blob/notebook/')
clean_frontend_fixtures('blob/pdf/')
end
......@@ -16,6 +17,12 @@ describe 'Raw files', '(JavaScript fixtures)' do
remove_repository(project)
end
it 'blob/balsamiq/test.bmpr' do |example|
@blob = project.repository.blob_at('b89b56d79', 'files/images/balsamiq.bmpr')
store_frontend_fixture(response, example.description)
end
it 'blob/notebook/basic.json' do |example|
@blob = project.repository.blob_at('6d85bb69', 'files/ipython/basic.ipynb')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment