Sha256: 9564c2835c0df04fab81bd4f3384cd59e88af4565563eb48f0797651a13e32d1

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

require 'spec_helper'
describe Spree::ContentController, type: :controller do
  it "should not display a local file" do
    spree_get :show, path: "../../Gemfile"
    expect(response.response_code).to eq(404)
  end

  it "should display CVV page" do
    spree_get :cvv
    expect(response.response_code).to eq(200)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_frontend-3.3.0.rc1 spec/controllers/spree/content_controller_spec.rb
spree_frontend-3.2.1 spec/controllers/spree/content_controller_spec.rb
spree_frontend-3.2.0 spec/controllers/spree/content_controller_spec.rb
spree_frontend-3.2.0.rc3 spec/controllers/spree/content_controller_spec.rb
spree_frontend-3.2.0.rc2 spec/controllers/spree/content_controller_spec.rb
spree_frontend-3.2.0.rc1 spec/controllers/spree/content_controller_spec.rb