Skip to content

Commit

Permalink
specs: add GC.enable
Browse files Browse the repository at this point in the history
  • Loading branch information
genywind committed Apr 12, 2012
1 parent 0731585 commit 800db07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions res/generators/templates/spec/app/SpecRunner/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class SpecRunnerController < Rho::RhoController

#GET /SpecRunner
def index
GC.enable()

puts 'before render'

@msg = 'MSpec version: '+MSpec::VERSION
Expand Down
2 changes: 2 additions & 0 deletions spec/framework_spec/app/SpecRunner/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class SpecRunnerController < Rho::RhoController

#GET /SpecRunner
def index
GC.enable()

@msg = 'MSpec version: '+MSpec::VERSION
@runner = SpecRunner.new
@code = @runner.run
Expand Down
2 changes: 2 additions & 0 deletions spec/phone_spec/app/SpecRunner/controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class SpecRunnerController < Rho::RhoController

#GET /SpecRunner
def index
GC.enable()

@msg = 'MSpec version: '+MSpec::VERSION
@runner = SpecRunner.new
@code = @runner.run
Expand Down

0 comments on commit 800db07

Please sign in to comment.