Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Commit

Permalink
started controller test resurrection
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Jul 27, 2015
1 parent 48e6d21 commit 92be8ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/app_controllers/setup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class SetupControllerTest < ControllerTestBase

test 'setup uses cached exercises if present' do
set_disk_class_name('Disk')
set_disk_class_name('HostDisk')
set_exercises_root(Dir.mktmpdir + '/')
exercises.dir.write('cache.json', {
'fake-Print-Diamond' => 'fake-Print-Diamond instructions',
Expand All @@ -21,7 +21,7 @@ class SetupControllerTest < ControllerTestBase
# - - - - - - - - - - - - - - - - - - - - - -

test 'setup uses cached languages if present' do
set_disk_class_name('Disk')
set_disk_class_name('HostDisk')
set_languages_root(Dir.mktmpdir + '/')
languages.dir.write('cache.json', [ 'C++, catch', 'Java, JMock' ])
get 'setup/show'
Expand Down Expand Up @@ -52,7 +52,7 @@ class SetupControllerTest < ControllerTestBase
# - - - - - - - - - - - - - - - - - - - - - -

def setup_show(n)
set_runner_class_name('StubTestRunner')
set_runner_class_name('RunnerStub')
runner.stub_runnable(true)
languages_names = languages.each.map{|language| language.display_name}.sort
exercises_names = exercises.each.map{|exercise| exercise.name}.sort
Expand Down

0 comments on commit 92be8ef

Please sign in to comment.