Commit 4bb7ebf71192bbc396c2b8fd68da1042efb62ff2

Finished postgres support

Commit diff

db/migrate/019_create_comments.rb

 
33 create_table :comments do |t|
44 t.integer :user_id, :null => false
55 t.integer :repository_id, :null => false
6 t.string :sha1, :null => false
6 t.string :sha1, :null => true
77 t.text :body
88 t.timestamps
99 end
toggle raw diff

db/schema.rb

 
1414 create_table "comments", :force => true do |t|
1515 t.integer "user_id", :null => false
1616 t.integer "repository_id", :null => false
17 t.string "sha1", :null => false
17 t.string "sha1"
1818 t.text "body"
1919 t.datetime "created_at"
2020 t.datetime "updated_at"
toggle raw diff

spec/controllers/site_controller_spec.rb

 
3737
3838 it "gets a list of recent comments from users projects" do
3939 get :dashboard
40 assigns[:recent_comments].should == comments(:johans_repos, :johans_repos2)
40
41 comment_list = comments(:johans_repos, :johans_repos2)
42
43 puts comment_list.inspect
44
45 comment_list.each { |comment|
46 assigns[:recent_comments].include?(comment).should == true
47 }
4148 end
4249
4350 it "gets a list of all the clones made of current_users repositories" do
toggle raw diff