Sha256: a6276f33d13cdeb4b67e0a5f0b6f6b31fc5e82eb22d7361bcadf31fa81c31a41
Contents?: true
Size: 421 Bytes
Versions: 1
Compression:
Stored size: 421 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(RuntimeError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_api-0.3.3 | spec/models/base/undefined_spec.rb |