nesquena/rabl

View on GitHub
fixtures/ashared/README

Summary

Maintainability
Test Coverage
Fixtures to test RABL:

Gemfile:
  gem 'rabl', :path => File.expand_path(File.dirname(__FILE__) + "/../../")
  gem 'riot', :group => "test"

models:

  user
    t.string :username
    t.string :email
    t.string :location
    t.boolean :is_admin
    t.timestamps
  posts
    t.integer :user_id
    t.string  :title
    t.text    :body
    t.timestamps
  phone_number
    t.integer :user_id
    t.boolean :is_primary
    t.string :area_code
    t.string :prefix
    t.string :suffix
    t.string :name

controllers:

  users
  posts

layouts:

  application.html.haml

views:
   posts (index, show, date)
   users (index, show)