Sha256: c42f74fed58846729803ab1fa5d5a8bec269becf90bcb92de064714f2f333147

Contents?: true

Size: 308 Bytes

Versions: 18

Compression:

Stored size: 308 Bytes

Contents

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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.7 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.0.rc2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.0.rc1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-4.0.0.beta lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-3.6.0 lib/alchemy/test_support/shared_contexts.rb