Created
October 20, 2010 15:47
-
-
Save byrnejb/636670 to your computer and use it in GitHub Desktop.
Rails-3.0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails3]$ cucumber -pp features/app/models/identifiers/identifier.feature:22 | |
Using the p profile... | |
Using AdapterExtensions | |
# A Correspondent is a model of anything that has | |
# separate legal existance and standing for | |
# the purposes of contract law | |
# | |
# An Identitier is a model of anything that identifies | |
# a particular correspondent, even if not uniquely. | |
Feature: Save and find an Correspondent's various identifiers | |
In order to keep an correspondent attached to its various identities | |
An correspondent maintainer | |
Should be able to create specific types of identitifers | |
And Reduce Costs by quickly finding any correspondent from a known identifier | |
Background: # features/app/models/identifiers/identifier.feature:15 | |
Given we do have a user named "admin" # features/app/models/users/step_definitions/user_steps.rb:29 | |
And we do have a user named "testuser" # features/app/models/users/step_definitions/user_steps.rb:29 | |
And we do have a role named "correspondent_maint" # features/app/models/roles/step_definitions/role_steps.rb:27 | |
And the user named "testuser" does have the role named "correspondent_maint" # features/app/models/clearances/step_definitions/user_role_steps.rb:200 | |
Scenario: An Correspondent's common name is always an alias identifier # features/app/models/identifiers/identifier.feature:22 | |
Given the user named "testuser" authenticates # features/app/models/users/step_definitions/user_authentication_steps.rb:133 | |
When we visit the new correspondent page # features/app/models/correspondents/step_definitions/correspondent_steps.rb:190 | |
And we enter valid correspondent data # features/app/models/correspondents/step_definitions/correspondent_steps.rb:53 | |
And we fill in "Common Name" with "Short N" # features/step_definitions/web_steps_revised.rb:45 | |
And we press create # features/step_definitions/local_crud_response_steps.rb:6 | |
Then we should see a created success message # features/step_definitions/local_crud_response_steps.rb:26 | |
Correspondent: --- !ruby/object:Correspondent | |
attributes: | |
correspondent_legal_name_key: mylegalname | |
correspondent_legal_name: My Legal Name | |
created_at: 2010-10-20 15:46:40.750378 | |
correspondent_status: HOLD | |
changed_by: not available | |
lock_version: "0" | |
correspondent_legal_form: CORP | |
created_by: not available | |
id: "2" | |
changed_at: 2010-10-20 15:46:40 | |
correspondent_common_name: short n | |
attributes_cache: {} | |
changed_attributes: {} | |
destroyed: false | |
marked_for_destruction: false | |
new_record: false | |
previously_changed: {} | |
readonly: false | |
***** ***** ***** ***** | |
And show the contents of the "Correspondent" table # features/step_definitions/local_dbms_steps.rb:12 | |
Identifier: --- !ruby/object:Identifier | |
attributes: | |
created_at: 2010-10-20 15:46:39.509542 | |
changed_by: trigger | |
lock_version: "0" | |
created_by: trigger | |
identifier_value: short n | |
id: "2" | |
effective_from: 2010-10-20 15:46:39.509542 | |
identifier_type: AKNA | |
changed_at: 2010-10-20 15:46:39.509542 | |
correspondent_id: "2" | |
superseded_after: | |
identifier_description: Common Name auto-insert | |
attributes_cache: {} | |
changed_attributes: {} | |
destroyed: false | |
marked_for_destruction: false | |
new_record: false | |
previously_changed: {} | |
readonly: false | |
***** ***** ***** ***** | |
And show the contents of the "Identifier" table # features/step_definitions/local_dbms_steps.rb:12 | |
And the correspondent named "Short N" should have an alias "short n" # features/app/models/identifiers/step_definitions/identifier_steps.rb:18 | |
1 scenario (1 passed) | |
13 steps (13 passed) | |
0m1.369s | |
[byrnejb@inet05 proforma.rails3]$ rake db:test:prepare | |
(in /home/byrnejb/Software/Development/Projects/proforma.rails3) | |
Using AdapterExtensions | |
NOTICE: CREATE TABLE will create implicit sequence "ca_customs_entries_id_seq" for serial column "ca_customs_entries.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "ca_customs_entries_pkey" for table "ca_customs_entries" | |
NOTICE: CREATE TABLE will create implicit sequence "ca_customs_manifests_id_seq" for serial column "ca_customs_manifests.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "ca_customs_manifests_pkey" for table "ca_customs_manifests" | |
NOTICE: CREATE TABLE will create implicit sequence "ca_customs_shipments_id_seq" for serial column "ca_customs_shipments.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "ca_customs_shipments_pkey" for table "ca_customs_shipments" | |
NOTICE: CREATE TABLE will create implicit sequence "clearances_id_seq" for serial column "clearances.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "clearances_pkey" for table "clearances" | |
NOTICE: CREATE TABLE will create implicit sequence "clients_id_seq" for serial column "clients.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "clients_pkey" for table "clients" | |
NOTICE: CREATE TABLE will create implicit sequence "column_codes_id_seq" for serial column "column_codes.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "column_codes_pkey" for table "column_codes" | |
NOTICE: CREATE TABLE will create implicit sequence "correspondents_id_seq" for serial column "correspondents.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "correspondents_pkey" for table "correspondents" | |
NOTICE: CREATE TABLE will create implicit sequence "currencies_id_seq" for serial column "currencies.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "currencies_pkey" for table "currencies" | |
NOTICE: CREATE TABLE will create implicit sequence "currency_exchange_rates_id_seq" for serial column "currency_exchange_rates.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "currency_exchange_rates_pkey" for table "currency_exchange_rates" | |
NOTICE: CREATE TABLE will create implicit sequence "identifiers_id_seq" for serial column "identifiers.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "identifiers_pkey" for table "identifiers" | |
NOTICE: CREATE TABLE will create implicit sequence "locations_id_seq" for serial column "locations.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "locations_pkey" for table "locations" | |
NOTICE: CREATE TABLE will create implicit sequence "privileges_id_seq" for serial column "privileges.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "privileges_pkey" for table "privileges" | |
NOTICE: CREATE TABLE will create implicit sequence "role_privileges_id_seq" for serial column "role_privileges.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "role_privileges_pkey" for table "role_privileges" | |
NOTICE: CREATE TABLE will create implicit sequence "roles_id_seq" for serial column "roles.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "roles_pkey" for table "roles" | |
NOTICE: CREATE TABLE will create implicit sequence "sessions_id_seq" for serial column "sessions.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "sessions_pkey" for table "sessions" | |
NOTICE: CREATE TABLE will create implicit sequence "shipment_invoices_id_seq" for serial column "shipment_invoices.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "shipment_invoices_pkey" for table "shipment_invoices" | |
NOTICE: CREATE TABLE will create implicit sequence "sites_id_seq" for serial column "sites.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "sites_pkey" for table "sites" | |
NOTICE: CREATE TABLE will create implicit sequence "test_models_id_seq" for serial column "test_models.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "test_models_pkey" for table "test_models" | |
NOTICE: CREATE TABLE will create implicit sequence "users_id_seq" for serial column "users.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "users_pkey" for table "users" | |
NOTICE: CREATE TABLE will create implicit sequence "vendors_id_seq" for serial column "vendors.id" | |
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "vendors_pkey" for table "vendors" | |
[byrnejb@inet05 proforma.rails3]$ cucumber -pp features/app/models/identifiers/identifier.feature:22 | |
Using the p profile... | |
Using AdapterExtensions | |
# A Correspondent is a model of anything that has | |
# separate legal existance and standing for | |
# the purposes of contract law | |
# | |
# An Identitier is a model of anything that identifies | |
# a particular correspondent, even if not uniquely. | |
Feature: Save and find an Correspondent's various identifiers | |
In order to keep an correspondent attached to its various identities | |
An correspondent maintainer | |
Should be able to create specific types of identitifers | |
And Reduce Costs by quickly finding any correspondent from a known identifier | |
Background: # features/app/models/identifiers/identifier.feature:15 | |
Given we do have a user named "admin" # features/app/models/users/step_definitions/user_steps.rb:29 | |
And we do have a user named "testuser" # features/app/models/users/step_definitions/user_steps.rb:29 | |
And we do have a role named "correspondent_maint" # features/app/models/roles/step_definitions/role_steps.rb:27 | |
And the user named "testuser" does have the role named "correspondent_maint" # features/app/models/clearances/step_definitions/user_role_steps.rb:200 | |
Scenario: An Correspondent's common name is always an alias identifier # features/app/models/identifiers/identifier.feature:22 | |
Given the user named "testuser" authenticates # features/app/models/users/step_definitions/user_authentication_steps.rb:133 | |
When we visit the new correspondent page # features/app/models/correspondents/step_definitions/correspondent_steps.rb:190 | |
And we enter valid correspondent data # features/app/models/correspondents/step_definitions/correspondent_steps.rb:53 | |
And we fill in "Common Name" with "Short N" # features/step_definitions/web_steps_revised.rb:45 | |
And we press create # features/step_definitions/local_crud_response_steps.rb:6 | |
Then we should see a created success message # features/step_definitions/local_crud_response_steps.rb:26 | |
Correspondent: --- !ruby/object:Correspondent | |
attributes: | |
correspondent_legal_name_key: mylegalname | |
correspondent_legal_name: My Legal Name | |
created_at: 2010-10-20 15:47:10.016326 | |
correspondent_status: HOLD | |
changed_by: not available | |
lock_version: "0" | |
correspondent_legal_form: CORP | |
created_by: not available | |
id: "1" | |
changed_at: 2010-10-20 15:47:10 | |
correspondent_common_name: short n | |
attributes_cache: {} | |
changed_attributes: {} | |
destroyed: false | |
marked_for_destruction: false | |
new_record: false | |
previously_changed: {} | |
readonly: false | |
***** ***** ***** ***** | |
And show the contents of the "Correspondent" table # features/step_definitions/local_dbms_steps.rb:12 | |
And show the contents of the "Identifier" table # features/step_definitions/local_dbms_steps.rb:12 | |
And the correspondent named "Short N" should have an alias "short n" # features/app/models/identifiers/step_definitions/identifier_steps.rb:18 | |
expected: >= 1, | |
got: 0 (RSpec::Expectations::ExpectationNotMetError) | |
./features/app/models/identifiers/step_definitions/identifier_steps.rb:21:in `/the correspondent named "([^\"]*)" should have an alias "([^\"]*)"/' | |
features/app/models/identifiers/identifier.feature:31:in `And the correspondent named "Short N" should have an alias "short n"' | |
Failing Scenarios: | |
cucumber -p p features/app/models/identifiers/identifier.feature:22 # Scenario: An Correspondent's common name is always an alias identifier | |
1 scenario (1 failed) | |
13 steps (1 failed, 12 passed) | |
0m1.328s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment