Sha256: a5a3cdbe4a82aceeffadd68013bdaa42b71c5315e6b6072194246e96aaefab77

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe ContentController do

  it "should understand routes" do
    assert_routing("/content/cvv", {:controller => "content", :action => "cvv", })
  end

  it "should not display a local file" do
    get :show, :path => "../../Gemfile"
    response.response_code.should == 404
  end

end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
MyCommerceapi-1.0.0 core/spec/controllers/content_controller_spec.rb
MyCommerce-0.0.3 core/spec/controllers/content_controller_spec.rb