Permalink
Browse files

remove the cargo cult

  • Loading branch information...
1 parent eaa3d72 commit f0fde72d8570622570db9c8940b81d81913f7b26 @technoweenie technoweenie committed Sep 17, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −2 services/sourcemint.rb
  2. +3 −2 test/sourcemint_test.rb
View
@@ -1,5 +1,4 @@
-class Service::GitLive < Service
- self.title = 'sourcemint'
+class Service::Sourcemint < Service
def receive_push
http_post 'http://api.sourcemint.com/actions/post-commit',
:payload => JSON.generate(payload)
View
@@ -1,13 +1,14 @@
require File.expand_path('../helper', __FILE__)
-class AcunoteTest < Service::TestCase
+class SourcemintTest < Service::TestCase
def setup
@stubs = Faraday::Adapter::Test::Stubs.new
end
def test_push
url = "/actions/post-commit"
@stubs.post url do |env|
+ assert_equal 'api.sourcemint.com', env[:url].host
assert_equal "payload=%22payload%22", env[:body]
[200, {}, '']
end
@@ -17,7 +18,7 @@ def test_push
end
def service(*args)
- super Service::Acunote, *args
+ super Service::Sourcemint, *args
end
end

0 comments on commit f0fde72

Please sign in to comment.