Sha256: 9a90b119ee7f80c25d6bcf2714d4e10e81da532c93c864afc7a568593d7e09df

Contents?: true

Size: 361 Bytes

Versions: 29

Compression:

Stored size: 361 Bytes

Contents

RSpec.shared_examples_for "having a json uploader error message" do
  it "renders json response with error message" do
    subject
    expect(response.content_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

29 entries across 29 versions & 1 rubygems

Version Path
alchemy_cms-4.0.6 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-3.6.7 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-3.6.6 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.4 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.3 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.1.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.1.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.0 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.2.0.rc1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.1.0 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.0.5 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.0.4 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.1.0.rc1 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.0.3 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-3.6.5 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.0.2 lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.1.0.beta lib/alchemy/test_support/shared_uploader_examples.rb
alchemy_cms-4.0.1 lib/alchemy/test_support/shared_uploader_examples.rb