Sha256: a55ea57391d5a935f360223cd4c0e0c7b3631e410f22cbdeccde0535a01f93b3
Contents?: true
Size: 763 Bytes
Versions: 2
Compression:
Stored size: 763 Bytes
Contents
Feature: Active Model compatibility In order to use presenters interchangably with active models As a developer I wish to use catwalk to present my models whilst adhering to ActiveModel::Lint @basic @model @active-model Scenario: Basic Active Model functionality Given I have an ActiveModel based model """ class MyActiveModel < ActiveModelExample end """ When I define a Catwalk presenter class for my model """ class MyModelPresenter include Catwalk::Presenter end """ When I set up my presenter for my model """ @model = MyActiveModel.new @presenter = MyModelPresenter.new @model """ Then my presenter should expose the models ActiveModel functionality
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
catwalk-0.0.3 | features/active_model_compatibility.feature |
catwalk-0.0.2 | features/active_model_compatibility.feature |