<commit_before>require 'spec_helper'

describe "show only in edit mode span tags", js: true do

  before do
    visit user_path( User.first )
  end

  it "should not be visible when not in edit mode" do
    page.should_not have_selector( ".show_only_in_edit_mode", visible: true )<commit_msg>fix fixture for spec/integration/show_only_in_edit_mode_spec.rb<commit_after>require 'spec_helper'

describe "show only in edit mode span tags", js: true do

  before do
    @user = User.new( first_name: "John", last_name: "Doe", date_of_birth: "1995-12-21" )
    @user.save
    visit user_path( @user )
  end

  it "should not be visible when not in edit mode" do
    page.should_not have_selector( ".show_only_in_edit_mode", visible: true )
{'fraction_non_alphanumeric': 0.09128065395095368, 'fraction_numerical': 0.010899182561307902, 'mean_word_length': 4.212765957446808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1362494', 'n_tokens_mistral': 254, 'n_tokens_neox': 240, 'n_words': 82}