Sha256: 48fd929c84186420c97007eaf5ede93790cd524e90ef1ca9e02747a5d8fcd653
Contents?: true
Size: 775 Bytes
Versions: 3
Compression:
Stored size: 775 Bytes
Contents
Feature: True is stored as a negative one In order to allow my rails application to work with my legacy database As a web application developer I want rails to store 'true' as negative one in my MySQL TINYINT(1) columns Scenario: Save a record with a 'true' value Given an ActiveRecord 'User' model with an 'enabled' boolean field and a 'username' field When I create a user named 'howard' with 'enabled' set to true Then the 'enabled' column for 'howard' should be '-1' Scenario: Interpret a record with -1 as true Given an ActiveRecord 'User' model with an 'enabled' boolean field and a 'username' field When I load a user named 'eunice' who's 'enabled' column is '-1' Then the user model's 'enabled' field for 'eunice' should be true
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
army-negative-3.1.0 | features/true_is_negative_one.feature |
army-negative-3.0.0 | features/true_is_negative_one.feature |
army-negative-2.0.0 | features/true_is_negative_one.feature |