Sha256: 83fc5a311d60a6d378dad330649f1e95e6ad940992bd36b2c4da9f1617e9935b
Contents?: true
Size: 1.81 KB
Versions: 1
Compression:
Stored size: 1.81 KB
Contents
Feature: Type conversion In order to accurately perform operations As a user of the API I want types returned to be accurately represented Background: Given an ODataService exists with uri: "http://localhost:8888/SampleService/Entities.svc" And blueprints exist for the service Scenario: Integers should be Fixnums Given I call "AddToProducts" on the service with a new "Product" object And I save changes When I call "Products" on the service And I run the query Then the "Id" method should return a Fixnum Scenario: Decimals should be BigDecimals Given I call "AddToProducts" on the service with a new "Product" object And I save changes When I call "Products" on the service And I run the query Then the "Price" method should return a BigDecimal Scenario: DateTimes should be Times Given I call "AddToProducts" on the service with a new "Product" object And I save changes When I call "Products" on the service And I run the query Then the "AuditFields.CreateDate" method should return a Time Scenario: Verify that DateTimes don't change if not modified on an update Given I call "AddToProducts" on the service with a new "Product" object with Name: "Test Product" When I save changes And I call "Products" on the service with args: "1" And I run the query Then I store the last query result for comparison When I set "Name" on the result to "Changed Test Product" Then the method "Name" on the result should equal: "Changed Test Product" And I call "update_object" on the service with the last query result And I save changes Then the save result should equal: "true" When I call "Products" on the service with args: "1" And I run the query Then the new query result's time "AuditFields.CreateDate" should equal the saved query result
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_odata-0.0.7 | features/type_conversion.feature |