Skip to content

Commit

Permalink
use RUBY_PLATFORM not PLATFORM (this is standardised, and PLATFORM is…
Browse files Browse the repository at this point in the history
… removed from ruby 1.9.2)
  • Loading branch information
matthewrudy committed Aug 19, 2010
1 parent 4f52bfc commit be13ccd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/coverage.rake
Expand Up @@ -19,7 +19,7 @@ begin
desc(task_description)

task name => ["test:coverage:reset"] + aspect_tasks + ["test:coverage:generate"] do
if PLATFORM['darwin']
if defined?(RUBY_PLATFORM) && RUBY_PLATFORM['darwin']
system("open coverage/index.html")
else
puts "coverage created. open coverage/index.html in a web browser"
Expand Down

0 comments on commit be13ccd

Please sign in to comment.