Skip to content

Commit

Permalink
add ::Runner in global namespace for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Mar 17, 2009
1 parent 1aa73cc commit 2da720f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rspactor/runner.rb
Expand Up @@ -78,4 +78,7 @@ def self.ruby_opts
%(RUBYOPT='-Ilib:spec#{other}')
end
end
end
end

# backward compatibility
Runner = RSpactor::Runner
5 changes: 5 additions & 0 deletions spec/runner_spec.rb
Expand Up @@ -135,4 +135,9 @@ def run(paths)
end
end

it "should have Runner in global namespace for backwards compatibility" do
defined?(::Runner).should be_true
::Runner.should == runner
end

end

0 comments on commit 2da720f

Please sign in to comment.