Skip to content
Browse files

Not sporking yet

  • Loading branch information...
1 parent c8f7535 commit 4eef0430be8f683c4f82617b0d5e63763900a691 @dvdplm dvdplm committed
Showing with 9 additions and 7 deletions.
  1. +6 −5 Gemfile
  2. +2 −1 Guardfile
  3. +1 −1 test/sender_test.rb
View
11 Gemfile
@@ -2,8 +2,9 @@ source "http://rubygems.org"
gemspec
-group :test do
- gem 'guard'
- gem 'guard-spork'
- gem 'guard-test'
-end
+if true
+ group :test do
+ gem 'guard'
+ gem 'guard-test'
+ end
+end
View
3 Guardfile
@@ -2,4 +2,5 @@ guard :test do
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})
watch('test/helper.rb') { "test" }
-end
+end
+
View
2 test/sender_test.rb
@@ -108,8 +108,8 @@ def stub_http(options = {})
assert_nil sender.send_to_airbrake("stuff")
end
end
-
end
+
should "return nil on failed posting" do
http = stub_http
http.stubs(:post).raises(Errno::ECONNREFUSED)

0 comments on commit 4eef043

Please sign in to comment.
Something went wrong with that request. Please try again.