Sha256: 776bb6365d51bfcd330f9e4c3dfb6c908c88da7a3944257232641aef6117c987

Contents?: true

Size: 932 Bytes

Versions: 6

Compression:

Stored size: 932 Bytes

Contents

require 'spec_helper'

describe "Models" do
  
  before(:each) do
    setup_models
  end

  after(:each) do
    clean_up_models
  end
  
  describe :act_as_api do
    it_supports "including an association in the api template"
    it_supports "calling a closure in the api template"
    it_supports "conditional if statements"
    it_supports "conditional unless statements" 
    it_supports "acts_as_api is enabled"
    it_supports "extending a given api template"
    it_supports "calling a method in the api template"
    it_supports "renaming"
    it_supports "listing attributes in the api template"
    it_supports "creating a sub hash in the api template"
    it_supports "trying to render an api template that is not defined"
    # deactivated for vanilla ruby as acts_as_api won't get mixed into any class
    it_supports "untouched models" 
    it_supports "defining a model callback"
    it_supports "options"
  end
  
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
acts_as_api-0.4.4 spec/models/model_spec.rb
acts_as_api-0.4.3 spec/models/model_spec.rb
acts_as_api_sequel-0.0.1 spec/models/model_spec.rb
acts_as_api-0.4.2 spec/models/model_spec.rb
acts_as_api-0.4.1 spec/models/model_spec.rb
acts_as_api-0.4 spec/models/model_spec.rb