Sha256: 4ed967c47fc910b4db6ca6df603b384059b8b9923cbd1665e4103393594a4294

Contents?: true

Size: 304 Bytes

Versions: 30

Compression:

Stored size: 304 Bytes

Contents

RSpec.shared_context 'with invalid file' do
  let(:invalid_file) do
    fixture_file_upload(
      File.expand_path('../../../spec/fixtures/users.yml', __dir__),
      'text/x-yaml'
    )
  end

  before do
    allow(Alchemy::Attachment).to receive(:allowed_filetypes) do
      ['png']
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.5.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.6.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.5.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.4.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.3.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.2.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.3.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.2.3 lib/alchemy/test_support/shared_contexts.rb