Sha256: 5e3a4ce14d73c2e454384fe71b28900191f67dd95a1687aa539f61f1ddefb619

Contents?: true

Size: 1.84 KB

Versions: 6

Compression:

Stored size: 1.84 KB

Contents

Feature: I can easily create models from my blueprints

  As a plain old AR user
  I want to be able to create models with fields
  So that I can create models quickly and easily in my features
  
  Scenario: I create a user, and see if it looks right
    Given a user exists with name: "Fred"
    Then the user should not have a status

  Scenario: I create a user, and see if it looks right
    Given a user exists with name: "Fred", status: "crayzee"
    Then a user should exist with name: "Fred"
    And a user should exist with status: "crayzee"
    But a user should not exist with name: "Wilma"
  
  Scenario: I create a user via a mapping
    Given I exist with status: "pwned", name: "fred"
    Then I should have a status
    And the user: "me" should have a status
  
  Scenario: I create positive and negative users
    Given a user exists with name: "Fred", attitude_score: +5.42
    And another user exists with name: "Ethel", attitude_score: -1.46
    Then 2 users should exist
    And the 1st user should be a positive person
    And the 2nd user should not be a positive person
    
  Scenario: I create nil values
    Given a user exists with name: "Fred", attitude_score: nil
    Then 1 users should exist with attitude_score: nil
    And that user should be the first user
    And that user should have no attitude
    
  Scenario: create and find using tables
    Given the following users exist:
      | name       | status                   |
      | Jim        | married                  |
      | Ethel      | in a relationship with x |
    Then the following users should exist:
      | name  |
      | Jim   |
      | Ethel |
    And the following users should exist:
      | status                   |
      | married                  |
      | in a relationship with x |
    And the 1st user should be the 3rd user
    And the 2nd user should be the last user

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
pickle-0.2.2 features/pickle/create_from_active_record.feature
kbaum-pickle-0.2.1.4 features/pickle/create_from_active_record.feature
kbaum-pickle-0.2.1.3 features/pickle/create_from_active_record.feature
kbaum-pickle-0.2.1.2 features/pickle/create_from_active_record.feature
kbaum-pickle-0.2.1.1 features/pickle/create_from_active_record.feature
pickle-0.2.1 features/pickle/create_from_active_record.feature