Sha256: fd6368a0984dff8d6c7bfedb7038a2fe0f60619983231b40a1fe1294e2d39e14
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper.rb' describe ActsAsApi::Base do describe "trying to render an api template that is not defined", :orm => :active_record do before(:each) do setup_models end after(:each) do clean_up end it "raises an descriptive error" do lambda{ @luke.as_api_response(:does_not_exist) }.should raise_error(ActsAsApi::TemplateNotFoundError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_api-0.3.5 | spec/models/base/undefined_spec.rb |
acts_as_api-0.3.4 | spec/models/base/undefined_spec.rb |