Testing a gem which depends on rails enviroment

Hi, I’ve made some changes for rails’ inflections to support Spanish pluralization and singularization. I’ve tested it in my rails project successfully. Now, I want to create a gem which replaces the default inflections.rb file with this file. The problem is, I need the rails environment loaded in my gem environment in order to test it. How can I do that?

I want to test with rspec. Thanks.