Skip to content

Commit

Permalink
Generated Evaluator model and added fixture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bas Wenneker committed May 5, 2010
1 parent 350d10f commit e43f5be
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/evaluator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Evaluator < ActiveRecord::Base
end
3 changes: 3 additions & 0 deletions db/fixtures/evaluators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bas:
name: "Bas Wenneker"
email: "[email protected]"
14 changes: 14 additions & 0 deletions db/migrate/20100505125205_create_evaluators.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
class CreateEvaluators < ActiveRecord::Migration
def self.up
create_table :evaluators do |t|
t.string :name
t.string :email

t.timestamps
end
end

def self.down
drop_table :evaluators
end
end
9 changes: 9 additions & 0 deletions test/fixtures/evaluators.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html

one:
name: MyString
email: MyString

two:
name: MyString
email: MyString
8 changes: 8 additions & 0 deletions test/unit/evaluator_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
require 'test_helper'

class EvaluatorTest < ActiveSupport::TestCase
# Replace this with your real tests.
test "the truth" do
assert true
end
end

0 comments on commit e43f5be

Please sign in to comment.