Skip to content

Commit

Permalink
add a failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
drnic committed Oct 27, 2010
1 parent 2b24a0c commit 0c838e2
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/post.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Post < ActiveRecord::Base
end
12 changes: 12 additions & 0 deletions db/migrate/20101027002750_create_posts.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class CreatePosts < ActiveRecord::Migration
def self.up
create_table :posts do |t|

t.timestamps
end
end

def self.down
drop_table :posts
end
end
7 changes: 6 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 0) do
ActiveRecord::Schema.define(:version => 20101027002750) do

create_table "posts", :force => true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end

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

# This model initially had no columns defined. If you add columns to the
# model remove the '{}' from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
7 changes: 7 additions & 0 deletions test/unit/post_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class PostTest < ActiveSupport::TestCase
test "the truth" do
assert false
end
end

0 comments on commit 0c838e2

Please sign in to comment.