[Refs #194] Fix tests

[Refs #263] Update kernel API call
This commit is contained in:
Vladimir Sharshov 2012-04-16 21:51:51 +04:00
parent eb95492073
commit 44ca501962
4 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20120413102757) do
ActiveRecord::Schema.define(:version => 20120413160722) do
create_table "activity_feeds", :force => true do |t|
t.integer "user_id", :null => false
@ -147,13 +147,13 @@ ActiveRecord::Schema.define(:version => 20120413102757) do
create_table "issues", :force => true do |t|
t.integer "serial_id"
t.integer "project_id"
t.integer "user_id"
t.integer "assignee_id"
t.string "title"
t.text "body"
t.string "status", :default => "open"
t.string "status", :default => "open"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "creator_id"
t.integer "user_id"
t.datetime "closed_at"
t.integer "closed_by"
end

View File

@ -96,7 +96,7 @@ class BuildServer
self.client.call('get_status')
end
def self.freeze platform_name, new_repo_name = nil
self.client.call('freeze_platform', platform_name, new_repo_name)
def self.freeze platform_name
self.client.call('freeze_platform', platform_name)
end
end

View File

@ -75,7 +75,7 @@ describe CommentsController do
stub_rsync_methods
@project = FactoryGirl.create(:project)
@issue = FactoryGirl.create(:issue, :project_id => @project.id, :creator => FactoryGirl.create(:user))
@issue = FactoryGirl.create(:issue, :project_id => @project.id, :user => FactoryGirl.create(:user))
@comment = FactoryGirl.create(:comment, :commentable => @issue, :project_id => @project.id)
@create_params = {:comment => {:body => 'I am a comment!'}, :project_id => @project.id, :issue_id => @issue.serial_id}

View File

@ -181,7 +181,7 @@ describe IssuesController do
set_session_for(@issue_user)
end
it_should_behave_like 'user with issue update rights'
it_should_behave_like 'user without issue update rights'
it_should_behave_like 'user without issue destroy rights'
it_should_behave_like 'project with issues turned off'
end