Sha256: 8eabacb0b740e26c588246975a12b796e7831e6f705cde730781479ff7509412

Contents?: true

Size: 335 Bytes

Versions: 37

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

37 entries across 37 versions & 1 rubygems

Version Path
alchemy_cms-7.1.13 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.16 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.12 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.15 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.11 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.10 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.9 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.14 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.13 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.8 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.7 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.12 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.11 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.6 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.5 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.10 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.4 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.0.9 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.3 lib/alchemy/test_support/shared_contexts.rb
alchemy_cms-7.1.2 lib/alchemy/test_support/shared_contexts.rb