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.0.0.pre.rc1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.pre.b6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.pre.b5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.pre.b4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.b3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.b2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-6.0.0.b1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.2.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.2.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.2.0.rc1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.2.0.b1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.0.rc1 lib/alchemy/test_support/shared_contexts.rb