describe "Fortitude static-method behavior in Rails", :type => :rails do uses_rails_with_template :static_method_system_spec it "should allow access to helpers in methods made static" do expect_match("allows_helper_access", /foo is: fooaaafoobarbbb!/) end it "should respect localization in methods made static" do expect_match("localization?locale=en", /hello is: hello/) expect_match("localization?locale=fr", /hello is: bonjour/) end end