Sha256: aff1cbf3a3c29f5a9cc2392d0034c204a2dc9122117852dbeefaf989fddd68aa
Contents?: true
Size: 777 Bytes
Versions: 2
Compression:
Stored size: 777 Bytes
Contents
Feature: Presenting basic fields from an active model compatible model In order to seperate my presentation logic from my persistance models As a developer I want to wrap my models in a catwalk presenter @basic @field Scenario: Basic usage Given I have an ActiveModel based model """ class MyActiveModel < ActiveModelExample attr_accessor :title end """ When I define a Catwalk presenter class for my model """ class MyModelPresenter include Catwalk::Presenter field :title end """ When I set up my presenter for my model """ @model = MyActiveModel.new @presenter = MyModelPresenter.new @model """ Then my presenter should present "title" from my model
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
catwalk-0.0.3 | features/basic_fields.feature |
catwalk-0.0.2 | features/basic_fields.feature |