Cucumber Features

Expand All

Collapse All

Feature: My bootstrapped app kinda works

In order to get going on coding my awesome app
I want to have aruba and cucumber setup
So I don't have to do it myself

features/apexgen.feature:6

Scenario: App just runs

  1. When I get help for "apexgen"
    features/step_definitions/apexgen_steps.rb:1
  2. Then the exit status should be 0
    aruba-0.5.1/lib/aruba/cucumber.rb:154

Feature: Object

People should be able to create apex objects
using this application. People should also be
able to create fields when making the object,
and specify basic configurations for different
field types.

features/object.feature:8

Scenario: Get help for custom object.

  1. When I run `apexgen help object`
    aruba-0.5.1/lib/aruba/cucumber.rb:60
  2. Then the stdout should contain "object - Generate objects, complete with object fields and field settings."
    aruba-0.5.1/lib/aruba/cucumber.rb:203
features/object.feature:12

Scenario: Get help for custom object with help flag.

  1. When I run `apexgen object --help`
    aruba-0.5.1/lib/aruba/cucumber.rb:60
  2. Then the stdout should contain "object - Generate objects, complete with object fields and field settings."
    aruba-0.5.1/lib/aruba/cucumber.rb:203
features/object.feature:16

Scenario: Try to create a custom object without a name.

  1. When I run `apexgen object`
    aruba-0.5.1/lib/aruba/cucumber.rb:60
  2. Then the stderr should contain "You must specify a custom object name"
    aruba-0.5.1/lib/aruba/cucumber.rb:179
  3. And the stdout should contain "object - Generate objects, complete with object fields and field settings."
    aruba-0.5.1/lib/aruba/cucumber.rb:203
features/object.feature:21

Scenario: Create a custom object.

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<pluralLabel>Test Objects"
    features/step_definitions/object_steps.rb:13
features/object.feature:27

Scenario: Create a custom object with one field. The field type defaults to Text.

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Text"
    features/step_definitions/object_steps.rb:13
features/object.feature:35

Scenario: Create a custom object with one field.

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:text`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Text"
    features/step_definitions/object_steps.rb:13
features/object.feature:43

Scenario: Create a custom object with one field. Type case should not matter.

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:TeXt`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Text"
    features/step_definitions/object_steps.rb:13
features/object.feature:51

Scenario: Create a custom object with a Text Area and a Text Area Long

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:TextArea AnotherField:LongTextArea`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>TextArea"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<type>LongTextArea"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<visibleLines>3"
    features/step_definitions/object_steps.rb:13
features/object.feature:63

Scenario: Create a custom object with a Rich Text Area and an Encrypted Text Field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:RichTextArea AnotherField:EncryptedText`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Html"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<type>EncryptedText"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<maskChar>asterisk"
    features/step_definitions/object_steps.rb:13
features/object.feature:75

Scenario: Create a custom object with a Url and an Auto Number Field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:Url AnotherField:AutoNumber`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Url"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<type>AutoNumber"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<displayFormat>{0000}"
    features/step_definitions/object_steps.rb:13
features/object.feature:87

Scenario: Create a custom object with a Checkbox and a Currency field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:Checkbox AnotherField:Currency`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Checkbox"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<defaultValue>false"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Currency"
    features/step_definitions/object_steps.rb:13
  11. And the file "objects/TestObject__c.object" in my current directory should contain "<precision>14"
    features/step_definitions/object_steps.rb:13
features/object.feature:100

Scenario: Create a custom object with a DateTime and a Date field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:DateTime AnotherField:Date`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>DateTime"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Date"
    features/step_definitions/object_steps.rb:13
features/object.feature:111

Scenario: Create a custom object with a Geolocation and a Number field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:Geolocation AnotherField:Number`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Location"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<displayLocationInDecimal>false"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Number"
    features/step_definitions/object_steps.rb:13
  11. And the file "objects/TestObject__c.object" in my current directory should contain "<precision>18"
    features/step_definitions/object_steps.rb:13
features/object.feature:124

Scenario: Create a custom object with a Percent and a Phone field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:Percent AnotherField:Phone`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Percent"
    features/step_definitions/object_steps.rb:13
  7. And the file "objects/TestObject__c.object" in my current directory should contain "<precision>18"
    features/step_definitions/object_steps.rb:13
  8. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Another_Field__c"
    features/step_definitions/object_steps.rb:13
  9. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Another Field"
    features/step_definitions/object_steps.rb:13
  10. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Phone"
    features/step_definitions/object_steps.rb:13
features/object.feature:136

Scenario: Create a custom object with an field

  1. Given the file "objects/TestObject__c.object" doesn't exist in my current directory
    features/step_definitions/object_steps.rb:5
  2. When I successfully run `apexgen object TestObject SomeField:Email`
    aruba-0.5.1/lib/aruba/cucumber.rb:71
  3. Then a file named "objects/TestObject__c.object" should exist in my current directory
    features/step_definitions/object_steps.rb:9
  4. And the file "objects/TestObject__c.object" in my current directory should contain "<fullName>Some_Field__c"
    features/step_definitions/object_steps.rb:13
  5. And the file "objects/TestObject__c.object" in my current directory should contain "<label>Some Field"
    features/step_definitions/object_steps.rb:13
  6. And the file "objects/TestObject__c.object" in my current directory should contain "<type>Email"
    features/step_definitions/object_steps.rb:13