Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added spec.

  • Loading branch information...
commit d69510d0f71a1d4de84a141ef44bca825165501c 1 parent 4bb792c
@btakita btakita authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 spec/rr_spec.rb
View
28 spec/rr_spec.rb
@@ -0,0 +1,28 @@
+require "#{File.dirname(__FILE__)}/spec_helper"
+
+describe "RR" do
+ before do
+ Object.class_eval do
+ def verify
+ raise "Dont call me"
+ end
+ end
+ end
+
+ after do
+ Object.class_eval do
+ remove_method :verify
+ end
+ end
+
+ it "has proxy methods for each method defined directly on Space" do
+ space_instance_methods = RR::Space.instance_methods(false)
+ space_instance_methods.should_not be_empty
+
+ rr_instance_methods = RR.methods(false)
+ space_instance_methods.each do |space_instance_method|
+ rr_instance_methods.should include(space_instance_method)
+ end
+ RR.verify
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.