Skip to content

Commit

Permalink
annoate for test and fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
hlee committed Jun 12, 2013
1 parent c0b748f commit a960238
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/fixtures/books.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# == Schema Information
#
# Table name: books
#
# id :integer not null, primary key
# title :string(255)
# author :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# user_id :integer
# votes_count :integer default(0), not null
# asin :string(255)
#

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html

one:
Expand Down
11 changes: 11 additions & 0 deletions test/fixtures/config_parameters.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: config_parameters
#
# id :integer not null, primary key
# name :string(255)
# value :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html

one:
Expand Down
29 changes: 29 additions & 0 deletions test/fixtures/users.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# first_name :string(255)
# last_name :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# admin :boolean default(FALSE)
# failed_attempts :integer default(0)
# unlock_token :string(255)
# locked_at :datetime
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# blocked :boolean default(FALSE)
#

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html

one:
Expand Down
11 changes: 11 additions & 0 deletions test/fixtures/votes.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: votes
#
# id :integer not null, primary key
# book_id :integer
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html

one:
Expand Down
14 changes: 14 additions & 0 deletions test/unit/book_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# == Schema Information
#
# Table name: books
#
# id :integer not null, primary key
# title :string(255)
# author :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# user_id :integer
# votes_count :integer default(0), not null
# asin :string(255)
#

require 'test_helper'

class BookTest < ActiveSupport::TestCase
Expand Down
11 changes: 11 additions & 0 deletions test/unit/config_parameter_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: config_parameters
#
# id :integer not null, primary key
# name :string(255)
# value :string(255)
# created_at :datetime not null
# updated_at :datetime not null
#

require 'test_helper'

class ConfigParameterTest < ActiveSupport::TestCase
Expand Down
29 changes: 29 additions & 0 deletions test/unit/user_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# == Schema Information
#
# Table name: users
#
# id :integer not null, primary key
# first_name :string(255)
# last_name :string(255)
# created_at :datetime not null
# updated_at :datetime not null
# email :string(255) default(""), not null
# encrypted_password :string(255) default(""), not null
# reset_password_token :string(255)
# reset_password_sent_at :datetime
# remember_created_at :datetime
# sign_in_count :integer default(0)
# current_sign_in_at :datetime
# last_sign_in_at :datetime
# current_sign_in_ip :string(255)
# last_sign_in_ip :string(255)
# admin :boolean default(FALSE)
# failed_attempts :integer default(0)
# unlock_token :string(255)
# locked_at :datetime
# confirmation_token :string(255)
# confirmed_at :datetime
# confirmation_sent_at :datetime
# blocked :boolean default(FALSE)
#

require 'test_helper'

class UserTest < ActiveSupport::TestCase
Expand Down
11 changes: 11 additions & 0 deletions test/unit/vote_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# == Schema Information
#
# Table name: votes
#
# id :integer not null, primary key
# book_id :integer
# user_id :integer
# created_at :datetime not null
# updated_at :datetime not null
#

require 'test_helper'

class VoteTest < ActiveSupport::TestCase
Expand Down

0 comments on commit a960238

Please sign in to comment.