<commit_before>require 'spec_helper'

describe Storey::Hstore do
  describe '.install' do
    it 'should install the extension into the hstore schema' do
      Storey.persistent_schemas = %w(hstore)
      described_class.install
      expect { ::ActiveRecord::Base.connection.execute "DROP EXTENSION hstore" }.
        to_not raise_error(ActiveRecord::StatementInvalid)
    end

    context 'when hstore is not one of the persistent schemas' do
      it 'should fail with an StoreyError' do
        Storey.persistent_schemas = []
        message = 'You are attempting to install hstore data type, but the hstore schema (where the data type will be installed) is not one of the persistent schemas. Please add hstore to the list of persistent schemas.'
        expect { described_class.install }.
          to raise_error(Storey::StoreyError, message)
      end
    end
  end
end<commit_msg>Do not check what error is raised (deprecated in new rspec)<commit_after>require 'spec_helper'

describe Storey::Hstore do
  describe '.install' do
    it 'installs the extension into the hstore schema' do
      Storey.persistent_schemas = %w(hstore)
      described_class.install
      expect { ::ActiveRecord::Base.connection.execute "DROP EXTENSION hstore" }.
        to_not raise_error
    end

    context 'hstore is not one of the persistent schemas' do
      it 'fails with an StoreyError' do
        Storey.persistent_schemas = []
        message = 'You are attempting to install hstore data type, but the hstore schema (where the data type will be installed) is not one of the persistent schemas. Please add hstore to the list of persistent schemas.'
        expect { described_class.install }.
          to raise_error(Storey::StoreyError, message)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06422535211267606, 'fraction_numerical': 0.0, 'mean_word_length': 3.248803827751196, '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': '7289836', 'n_tokens_mistral': 494, 'n_tokens_neox': 485, 'n_words': 192}