Skip to content

Commit

Permalink
refactor middleware class name
Browse files Browse the repository at this point in the history
  • Loading branch information
zevarito committed Jul 16, 2010
1 parent d4963bf commit 37c5e56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/mixpanel.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
require 'mixpanel/mixpanel'
require 'mixpanel/middleware'
require 'mixpanel/mixpanel_middleware'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'rack'

class Middleware
class MixpanelMiddleware
def initialize(app, mixpanel_token)
@app = app
@token = mixpanel_token
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'spec_helper'

describe Middleware do
describe MixpanelMiddleware do
include Rack::Test::Methods

describe "Dummy apps, no text/html" do
Expand Down
2 changes: 1 addition & 1 deletion spec/support/rack_apps.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def setup_rack_application(application, options = {})
stub!(:app).and_return(Middleware.new(application.new(options), MIX_PANEL_TOKEN))
stub!(:app).and_return(MixpanelMiddleware.new(application.new(options), MIX_PANEL_TOKEN))
end

def html_document
Expand Down

0 comments on commit 37c5e56

Please sign in to comment.