lib/intermodal/rspec/models/has_parent_resource.rb
def should_respond_to_scope(scope_method)
          it "should have scope #{scope_method}" do
            subject.class.should respond_to(scope_method)
          end
        end
# NOTE: I am cheating. It assumes if the class method is defined then
# it is a scope
I am cheating. It assumes if the class method is defined then
it is a scope
I am cheating . It assumes if the class method is defined then it is a scope
def should_respond_to_scope(scope_method)
          it "should have scope #{scope_method}" do
            subject.class.should respond_to(scope_method)
          end
        end
def should_respond_to_scope ( scope_method ) it "should have scope #{scope_method}" do subject . class . should respond_to ( scope_method ) end end
NOTE: I am cheating.
NOTE : I am cheating .
scope_method