Possible Duplicate:
Testing modules in rspec
Currently I am successfully testing my modules with rspec like so:
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
My modules live in app/services/services.rb app/services/app_service.rb
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.