Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
adding map_additions module with spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Bates committed Apr 3, 2008
1 parent d0c9c47 commit cbdf225
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/static_actions.rb
@@ -1,2 +1,2 @@
$:.unshift(File.dirname(__FILE__))
# require 'static_actions/foo'
require 'static_actions/map_additions'
11 changes: 11 additions & 0 deletions lib/static_actions/map_additions.rb
@@ -0,0 +1,11 @@
module StaticActions
module MapAdditions
def static_actions

end
end
end

class ActionController::Routing::RouteSet::Mapper
include StaticActions::MapAdditions
end
11 changes: 11 additions & 0 deletions spec/static_actions/map_additions_spec.rb
@@ -0,0 +1,11 @@
require File.dirname(__FILE__) + '/../spec_helper'

describe StaticActions::MapAdditions do
before(:each) do
@map = ActionController::Routing::RouteSet::Mapper.new(ActionController::Routing::RouteSet.new)
end

it "should respond to static_actions" do
@map.should respond_to(:static_actions)
end
end

0 comments on commit cbdf225

Please sign in to comment.