Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing the cucumber tests in the vendor directories, all tests shou…

…ld be in the root of the project
  • Loading branch information...
commit 438a489f55d9d10f208c086baefb6d38aa608127 1 parent 99c7fb2
@senior senior authored
View
63 vendor/engines/conference_sessions/features/manage_conference_sessions.feature
@@ -1,63 +0,0 @@
-@conference_sessions
-Feature: Conference Sessions
- In order to have conference_sessions on my website
- As an administrator
- I want to manage conference_sessions
-
- Background:
- Given I am a logged in refinery user
- And I have no conference_sessions
-
- @conference_sessions-list @list
- Scenario: Conference Sessions List
- Given I have conference_sessions titled UniqueTitleOne, UniqueTitleTwo
- When I go to the list of conference_sessions
- Then I should see "UniqueTitleOne"
- And I should see "UniqueTitleTwo"
-
- @conference_sessions-valid @valid
- Scenario: Create Valid Conference Session
- When I go to the list of conference_sessions
- And I follow "Add New Conference Session"
- And I fill in "Title" with "This is a test of the first string field"
- And I press "Save"
- Then I should see "'This is a test of the first string field' was successfully added."
- And I should have 1 conference_session
-
- @conference_sessions-invalid @invalid
- Scenario: Create Invalid Conference Session (without title)
- When I go to the list of conference_sessions
- And I follow "Add New Conference Session"
- And I press "Save"
- Then I should see "Title can't be blank"
- And I should have 0 conference_sessions
-
- @conference_sessions-edit @edit
- Scenario: Edit Existing Conference Session
- Given I have conference_sessions titled "A title"
- When I go to the list of conference_sessions
- And I follow "Edit this conference_session" within ".actions"
- Then I fill in "Title" with "A different title"
- And I press "Save"
- Then I should see "'A different title' was successfully updated."
- And I should be on the list of conference_sessions
- And I should not see "A title"
-
- @conference_sessions-duplicate @duplicate
- Scenario: Create Duplicate Conference Session
- Given I only have conference_sessions titled UniqueTitleOne, UniqueTitleTwo
- When I go to the list of conference_sessions
- And I follow "Add New Conference Session"
- And I fill in "Title" with "UniqueTitleTwo"
- And I press "Save"
- Then I should see "There were problems"
- And I should have 2 conference_sessions
-
- @conference_sessions-delete @delete
- Scenario: Delete Conference Session
- Given I only have conference_sessions titled UniqueTitleOne
- When I go to the list of conference_sessions
- And I follow "Remove this conference session forever"
- Then I should see "'UniqueTitleOne' was successfully removed."
- And I should have 0 conference_sessions
-
View
24 vendor/engines/conference_sessions/features/step_definitions/conference_session_steps.rb
@@ -1,24 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-Given /^I have no conference_sessions$/ do
- ConferenceSession.delete_all
-end
-
-Then /^I should have ([0-9]+) conference_sessions?$/ do |count|
- ConferenceSession.count.should == count.to_i
-end
View
34 vendor/engines/conference_sessions/features/support/paths.rb
@@ -1,34 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-module NavigationHelpers
- module Refinery
- module ConferenceSessions
- def path_to(page_name)
- case page_name
- when /the list of conference_sessions/
- admin_conference_sessions_path
-
- when /the new conference_session form/
- new_admin_conference_session_path
- else
- nil
- end
- end
- end
- end
-end
View
63 vendor/engines/proposals/features/manage_proposals.feature
@@ -1,63 +0,0 @@
-@proposals
-Feature: Proposals
- In order to have proposals on my website
- As an administrator
- I want to manage proposals
-
- Background:
- Given I am a logged in refinery user
- And I have no proposals
-
- @proposals-list @list
- Scenario: Proposals List
- Given I have proposals titled UniqueTitleOne, UniqueTitleTwo
- When I go to the list of proposals
- Then I should see "UniqueTitleOne"
- And I should see "UniqueTitleTwo"
-
- @proposals-valid @valid
- Scenario: Create Valid Proposal
- When I go to the list of proposals
- And I follow "Add New Proposal"
- And I fill in "Status" with "This is a test of the first string field"
- And I press "Save"
- Then I should see "'This is a test of the first string field' was successfully added."
- And I should have 1 proposal
-
- @proposals-invalid @invalid
- Scenario: Create Invalid Proposal (without status)
- When I go to the list of proposals
- And I follow "Add New Proposal"
- And I press "Save"
- Then I should see "Status can't be blank"
- And I should have 0 proposals
-
- @proposals-edit @edit
- Scenario: Edit Existing Proposal
- Given I have proposals titled "A status"
- When I go to the list of proposals
- And I follow "Edit this proposal" within ".actions"
- Then I fill in "Status" with "A different status"
- And I press "Save"
- Then I should see "'A different status' was successfully updated."
- And I should be on the list of proposals
- And I should not see "A status"
-
- @proposals-duplicate @duplicate
- Scenario: Create Duplicate Proposal
- Given I only have proposals titled UniqueTitleOne, UniqueTitleTwo
- When I go to the list of proposals
- And I follow "Add New Proposal"
- And I fill in "Status" with "UniqueTitleTwo"
- And I press "Save"
- Then I should see "There were problems"
- And I should have 2 proposals
-
- @proposals-delete @delete
- Scenario: Delete Proposal
- Given I only have proposals titled UniqueTitleOne
- When I go to the list of proposals
- And I follow "Remove this proposal forever"
- Then I should see "'UniqueTitleOne' was successfully removed."
- And I should have 0 proposals
-
View
31 vendor/engines/proposals/features/step_definitions/proposal_steps.rb
@@ -1,31 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-Given /^I have no proposals$/ do
- Proposal.delete_all
-end
-
-Given /^I (only )?have proposals titled "?([^\"]*)"?$/ do |only, titles|
- Proposal.delete_all if only
- titles.split(', ').each do |title|
- Proposal.create(:status => title)
- end
-end
-
-Then /^I should have ([0-9]+) proposals?$/ do |count|
- Proposal.count.should == count.to_i
-end
View
34 vendor/engines/proposals/features/support/paths.rb
@@ -1,34 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-module NavigationHelpers
- module Refinery
- module Proposals
- def path_to(page_name)
- case page_name
- when /the list of proposals/
- admin_proposals_path
-
- when /the new proposal form/
- new_admin_proposal_path
- else
- nil
- end
- end
- end
- end
-end
View
9 vendor/engines/sponsorships/features/manage_sponsorships.feature
@@ -1,9 +0,0 @@
-@sponsorships
-Feature: Sponsorships
- In order to have sponsorships on my website
- As an administrator
- I want to manage sponsorships
-
- Background:
- Given I am a logged in refinery user
- And I have no sponsorships
View
25 vendor/engines/sponsorships/features/step_definitions/sponsorship_steps.rb
@@ -1,25 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-Given /^I have no sponsorships$/ do
- Sponsorship.delete_all
-end
-
-
-Then /^I should have ([0-9]+) sponsorships?$/ do |count|
- Sponsorship.count.should == count.to_i
-end
View
34 vendor/engines/sponsorships/features/support/paths.rb
@@ -1,34 +0,0 @@
-#- Copyright 2011 Strange Loop LLC
-#-
-#- Licensed under the Apache License, Version 2.0 (the "License");
-#- you may not use this file except in compliance with the License.
-#- You may obtain a copy of the License at
-#-
-#- http://www.apache.org/licenses/LICENSE-2.0
-#-
-#- Unless required by applicable law or agreed to in writing, software
-#- distributed under the License is distributed on an "AS IS" BASIS,
-#- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#- See the License for the specific language governing permissions and
-#- limitations under the License.
-#-
-
-
-
-module NavigationHelpers
- module Refinery
- module Sponsorships
- def path_to(page_name)
- case page_name
- when /the list of sponsorships/
- admin_sponsorships_path
-
- when /the new sponsorship form/
- new_admin_sponsorship_path
- else
- nil
- end
- end
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.