Sha256: 79197d611efc8dcea9f622d1dd1b047b3b45a69462df455acc03f609876b51a5

Contents?: true

Size: 335 Bytes

Versions: 88

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true
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

88 entries across 88 versions & 1 rubygems

Version Path
alchemy_cms-6.1.10 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.9 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.8 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.7 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.14 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.0.pre.a lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.13 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.1.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.12 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.11 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.10 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.3.8 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.9 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.3.7 lib/alchemy/test_support/shared_contexts.rb