Skip to content

Commit

Permalink
remove rake/dsl -- top level DSL is now permanent
Browse files Browse the repository at this point in the history
That rake/dsl infects Object with Rake::DSL is an unintended
consequence of the previous top level environment setup between
0.8.7 and 0.9.0.
  • Loading branch information
quix committed May 25, 2011
1 parent 63a899d commit a6bbe19
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions lib/rake/dsl.rb

This file was deleted.

11 changes: 0 additions & 11 deletions test/test_rake_dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,4 @@ def name.to_str
end
refute_nil Rake::Task["bob:t"]
end

def test_dsl_not_toplevel_by_default
actual = TOPLEVEL_BINDING.instance_eval { defined?(task) }
assert_nil actual
end

def test_dsl_toplevel_when_require_rake_dsl
ruby '-I./lib', '-rrake/dsl', '-e', 'task(:x) { }', :verbose => false

assert $?.exitstatus
end
end

0 comments on commit a6bbe19

Please sign in to comment.