Sha256: a65f77496a225e98c9675ea3b2ad115f00bca7239ddc4a9ce0bfb406f8423e76
Contents?: true
Size: 910 Bytes
Versions: 7
Compression:
Stored size: 910 Bytes
Contents
Feature: Defining a basic form In order to utilise some user input As a developer I wish to define a basic form to capture input @form @basic Scenario: Basic Form Given I have a form defined as: """Ruby class MyForm DefineField[ self, :event_name, PR::Fields::StringField ] DefineField[ self, :start_date, PR::Fields::DateField ] end """ When I initialise MyForm Then my form should have a string input "event_name" And my form should have a date input "start_date" @form Scenario: Form (with macros) Given I have a form defined as: """Ruby class MyForm include PR::Form field :event_name, :string field :start_date, :date end """ When I initialise MyForm Then my form should have a string input "event_name" And my form should have a date input "start_date"
Version data entries
7 entries across 7 versions & 1 rubygems