【问题标题】:Rspecs for Sub APP and Main APP in PadrinoPadrino 中子 APP 和主 APP 的 Rspecs
【发布时间】:2011-07-27 10:37:00
【问题描述】:

有什么好的方法可以用rspec在Padrino中测试一个控制器和Sub APP的模型吗?我是一个新手,正在尝试使用 Padrino 和 Mongoid ORM。谁能给我提供显示 Padrino 中子 APP 和主 APP 的 rspecs 示例的链接。

【问题讨论】:

    标签: rspec mongoid integration-testing padrino


    【解决方案1】:

    你可以切换@app

    @app = Admin.tap { }

    @app = YourApp.tap { }

    【讨论】:

    • 你能举个简单的例子吗?我怎样才能使用 app()?
    猜你喜欢
    • 2021-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-25
    • 1970-01-01
    • 2012-02-26
    • 1970-01-01
    • 2014-03-19
    相关资源
    最近更新 更多