Fix cancan regsiter_requests specs. Temporary fix specs running bug through file rename. Refs #161

This commit is contained in:
Pavel Chipiga 2012-02-14 13:50:01 +02:00
parent ea176264d9
commit 7bca61c58d
6 changed files with 12 additions and 10 deletions

View File

@ -1 +1 @@
require './lib/gollum'
require './lib/gollum1'

View File

@ -1,3 +1,3 @@
# -*- encoding : utf-8 -*-
require './lib/grit'
require './lib/grit1'

View File

@ -90,12 +90,12 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
end
create_table "comments", :force => true do |t|
t.string "commentable_id"
t.string "commentable_type"
t.integer "user_id"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.decimal "commentable_id", :precision => 50, :scale => 0
end
create_table "containers", :force => true do |t|
@ -117,7 +117,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "locked_by"
t.datetime "created_at"
t.datetime "updated_at"
t.string "queue"
end
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
@ -339,6 +338,7 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "email", :default => "", :null => false
t.string "encrypted_password", :limit => 128, :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.datetime "created_at"
t.datetime "updated_at"
@ -346,7 +346,6 @@ ActiveRecord::Schema.define(:version => 20120210141153) do
t.string "uname"
t.string "role"
t.string "language", :default => "en"
t.datetime "reset_password_sent_at"
t.integer "own_projects_count", :default => 0, :null => false
end

View File

@ -2,9 +2,12 @@
FactoryGirl.define do
factory :register_request do
name "MyString"
email "MyString"
token "MyString"
approved false
end
name "MyString"
email { Factory.next(:email) }
token "MyString"
interest "MyString"
more "MyText"
approved false
rejected false
end
end