Permalink
Browse files

remove unnecessary shim

update Rakefile for user informer
  • Loading branch information...
1 parent 2c5e61e commit 779c7ac6b9a4bc50b5015951e03652effd2c1554 @shime shime committed May 31, 2012
Showing with 3 additions and 18 deletions.
  1. +3 −3 Rakefile
  2. +0 −15 features/step_definitions/airbrake_shim.rb.template
View
@@ -8,10 +8,10 @@ rescue LoadError
exit 1
end
-SUPPORTED_FRAMEWORKS = ["sinatra","rack","metal"]
+FEATURES = ["sinatra","rack","metal","user_informer"]
desc 'Default: run unit tests.'
-task :default => [:test, "cucumber:rails:all"] + SUPPORTED_FRAMEWORKS
+task :default => [:test, "cucumber:rails:all"] + FEATURES
desc "Clean out the tmp directory"
task :clean do
@@ -208,7 +208,7 @@ namespace :cucumber do
define_rails_cucumber_tasks
- rule /#{"(" + SUPPORTED_FRAMEWORKS.join("|") + ")"}/ do |t|
+ rule /#{"(" + FEATURES.join("|") + ")"}/ do |t|
framework = t.name
desc "Test integration of the gem with #{framework}"
task framework.to_sym do
@@ -1,15 +0,0 @@
-require 'sham_rack'
-
-ShamRack.at("airbrake.io") do |env|
- xml = env['rack.input'].read
- puts "Recieved the following exception:\n#{xml}"
- response = <<-end_xml
-<?xml version="1.0" encoding="UTF-8"?>
-<notice>
- <error-id type="integer">3799307</error-id>
- <url>http://sample.airbrake.io/errors/3799307/notices/643732254</url>
- <id type="integer">643732254</id>
-</notice>
- end_xml
- ["200 OK", { "Content-type" => "text/xml" }, response]
-end

0 comments on commit 779c7ac

Please sign in to comment.