Module: Ritsu::SetupProjectAndClearEverythingElse

Defined in:
lib/ritsu/test_helpers.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



16
17
18
# File 'lib/ritsu/test_helpers.rb', line 16

def setup
  setup_project
end

#setup_project(name = 'project') ⇒ Object



9
10
11
12
13
14
# File 'lib/ritsu/test_helpers.rb', line 9

def setup_project(name='project')
  Ritsu::Target.instances.clear
  Ritsu::SrcFile.instances.clear
  Ritsu::ExternalLibrary.instances.clear
  @project = Ritsu::Project.create(name)
end