This commit is contained in:
nwb 2014-07-17 16:06:26 +08:00
commit baf181f1d7
3 changed files with 14 additions and 2 deletions

View File

@ -27,6 +27,7 @@ group :test do
gem "mocha", "~> 0.13.3" gem "mocha", "~> 0.13.3"
gem 'capybara', '~> 2.0.0' gem 'capybara', '~> 2.0.0'
gem 'nokogiri', '< 1.6.0' gem 'nokogiri', '< 1.6.0'
gem 'factory_girl'
platforms :mri, :mingw do platforms :mri, :mingw do
group :rmagick do group :rmagick do
@ -43,7 +44,7 @@ group :development, :test do
gem 'spork-testunit' gem 'spork-testunit'
gem 'guard-spork' gem 'guard-spork'
gem 'guard-test', '~> 1.0.0' gem 'guard-test', '~> 1.0.0'
#gem 'ruby-prof' gem 'ruby-prof' unless RUBY_PLATFORM =~ /w32/
gem 'pry' gem 'pry'
gem 'pry-nav' gem 'pry-nav'
end end

View File

@ -117,3 +117,9 @@ FactoryGirl.define do
end end
end end
ActiveRecord::Fixtures.create_fixtures(File.dirname(__FILE__)+ '/fixtures/',
[ :code_review_assignments,
:code_reviews,
:code_review_project_settings,
:code_review_user_settings])

View File

@ -21,6 +21,11 @@ class CodeReviewAssignmentTest < ActiveSupport::TestCase
fixtures :code_review_assignments, :issues, :issue_statuses, fixtures :code_review_assignments, :issues, :issue_statuses,
:projects, :trackers, :projects_trackers, :users, :members, :repositories, :projects, :trackers, :projects_trackers, :users, :members, :repositories,
:enumerations :enumerations
ActiveRecord::Fixtures.create_fixtures(File.dirname(__FILE__)+ '/../fixtures/',
[ :code_review_assignments,
:code_reviews,
:code_review_project_settings,
:code_review_user_settings])
def setup def setup
@assignment = CodeReviewAssignment.new @assignment = CodeReviewAssignment.new