Sha256: d6274137cf38942494df5bac9489c9c4806bb9915a05e5d06525c2f700ad4842
Contents?: true
Size: 705 Bytes
Versions: 2
Compression:
Stored size: 705 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe CountriesController do fixtures :countries #Delete this example and add some real ones it "should use CountriesController" do controller.should be_an_instance_of(CountriesController) end it "should include AuthenticatedSystem" do controller.class.included_modules.should include(AuthenticatedSystem) end it "should not allow deletion of a county from a default rails route" =begin do lambda { get :destroy, :id => countries(:united_states).id }.should raise_error(ActionController::RoutingError) Country.find_by_id(countries(:united_states).id).should_not be_nil end =end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree-0.7.1 | spec/controllers/countries_controller_spec.rb |
spree-0.7.0 | spec/controllers/countries_controller_spec.rb |