ad985a7a28
Remove .raw from JavaScript fixture file names
Closes #59201
See merge request gitlab-org/gitlab-ce!26430
(cherry picked from commit 79a45f7f02
)
34 lines
791 B
Ruby
34 lines
791 B
Ruby
require 'spec_helper'
|
|
|
|
describe Projects::CommitController, '(JavaScript fixtures)', type: :controller do
|
|
include JavaScriptFixturesHelpers
|
|
|
|
set(:project) { create(:project, :repository) }
|
|
set(:user) { create(:user) }
|
|
let(:commit) { project.commit("master") }
|
|
|
|
render_views
|
|
|
|
before(:all) do
|
|
clean_frontend_fixtures('commit/')
|
|
end
|
|
|
|
before do
|
|
project.add_maintainer(user)
|
|
sign_in(user)
|
|
allow(SecureRandom).to receive(:hex).and_return('securerandomhex:thereisnospoon')
|
|
end
|
|
|
|
it 'commit/show.html' do |example|
|
|
params = {
|
|
namespace_id: project.namespace,
|
|
project_id: project,
|
|
id: commit.id
|
|
}
|
|
|
|
get :show, params: params
|
|
|
|
expect(response).to be_success
|
|
store_frontend_fixture(response, example.description)
|
|
end
|
|
end
|