Sha256: 4188de380cb8e9af99d6b6a38b6eed82a372a7d723fc3ec83f0859dc4bdf26f8

Contents?: true

Size: 233 Bytes

Versions: 12

Compression:

Stored size: 233 Bytes

Contents

shared_examples_for "trying to render an api template that is not defined" do

  it "raises an descriptive error" do
    lambda{ @luke.as_api_response(:does_not_exist) }.should raise_error(ActsAsApi::TemplateNotFoundError)
  end

end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
acts_as_api-0.4.4 spec/support/model_examples/undefined.rb
acts_as_api-0.4.3 spec/support/model_examples/undefined.rb
acts_as_api_sequel-0.0.1 spec/support/model_examples/undefined.rb
acts_as_api-0.4.2 spec/support/model_examples/undefined.rb
acts_as_api-0.4.1 spec/support/model_examples/undefined.rb
acts_as_api-0.4 spec/support/model_examples/undefined.rb
acts_as_api-0.3.11 spec/support/model_examples/undefined.rb
acts_as_api-0.3.10 spec/support/model_examples/undefined.rb
acts_as_api-0.3.9 spec/support/model_examples/undefined.rb
acts_as_api-0.3.8 spec/support/model_examples/undefined.rb
acts_as_api-0.3.7 spec/support/model_examples/undefined.rb
acts_as_api-0.3.6 spec/support/model_examples/undefined.rb