title: Testing nested modules with rspec and rails
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1542945/testing-modules-in-rspec">Testing modules in rspec</a>  </p>
  </blockquote>
  
  
  
  <p>Currently I am successfully testing my modules with rspec like so:</p>
  
  <pre><code>require 'spec_helper'
  
  module Services
    module AppService
      describe AppService do
        describe "authenticate" do
          it "should authenticate the user" do
            pending "authenticate the user"
          end
        end
      end
    end
  end
  </code></pre>
  
  <p>My modules live in 
  app/services/services.rb
  app/services/app_service.rb</p>
  
  <p>However is there a more elegant solution to testing my modules without having to declare the namespaces in the spec? I feel that it becomes tightly bound to my specs and making changes will cause a lot of headaches.</p>