<commit_before>require 'rails_helper'

describe "capital_projects/_actions.html.haml", :type => :view do
  it 'actions' do
    allow(controller).to receive(:current_ability).and_return(Ability.new(create(:admin)))
    assign(:project, create(:capital_project))
    render

    expect(rendered).to have_link('Make a copy')
    expect(rendered).to have_link('Modify this project')<commit_msg>fix test for removed action<commit_after>require 'rails_helper'

describe "capital_projects/_actions.html.haml", :type => :view do
  it 'actions' do
    allow(controller).to receive(:current_ability).and_return(Ability.new(create(:admin)))
    assign(:project, create(:capital_project))
    render

    expect(rendered).to have_link('Modify this project')
{'fraction_non_alphanumeric': 0.13288590604026845, 'fraction_numerical': 0.0, 'mean_word_length': 6.037735849056604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4551139', 'n_tokens_mistral': 231, 'n_tokens_neox': 217, 'n_words': 45}