Skip to content

Commit

Permalink
Clean up build and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanheim committed Sep 17, 2009
1 parent d218a87 commit 1073c10
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -17,7 +17,6 @@ end

begin
require 'micronaut/rake_task'

Micronaut::RakeTask.new(:examples) do |examples|
examples.pattern = 'examples/**/*_example.rb'
examples.ruby_opts << '-Ilib -Iexamples'
Expand All @@ -29,7 +28,11 @@ begin
examples.rcov = true
end

task :default => 'rcov'
if RUBY_VERSION =~ /1.8/
task :default => 'rcov'
else
task :default => 'examples'
end
rescue LoadError
puts "Micronaut not available to run tests. Install it with: sudo gem install spicycode-micronaut -s http://gems.github.com"
end
2 changes: 0 additions & 2 deletions examples/example_helper.rb
@@ -1,6 +1,4 @@
ENV["RAILS_ENV"] = "test"
gem "spicycode-micronaut"
gem 'mocha'
require 'net/smtp'
require "mocha"
require 'micronaut'
Expand Down

0 comments on commit 1073c10

Please sign in to comment.