Sha256: 3fdc6b5c09b6d4c40b83cb5a202e962e4480d28dc3a60f67af49cca932d019ae

Contents?: true

Size: 359 Bytes

Versions: 19

Compression:

Stored size: 359 Bytes

Contents

RSpec.shared_examples_for "having a json uploader error message" do
  it "renders json response with error message" do
    subject
    expect(response.media_type).to eq('application/json')
    expect(response.status).to eq(422)
    json = JSON.parse(response.body)
    expect(json).to have_key('growl_message')
    expect(json).to have_key('files')
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.6 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.5 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.5.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.5 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.4 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.3 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.6.0 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.5.0 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.4 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.3 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.4.0 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.3.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.3.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.3.0 lib/alchemy/test_support/shared_uploader_examples.rb