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-5.1.0.beta2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.1.0.beta1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.0 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.0.rc2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.0.rc1 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.0.beta2 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-5.0.0.beta1 lib/alchemy/test_support/shared_contexts.rb