Merge pull request #67 from opf/feature/rails3_remove_cucumber_fixtures

Feature/rails3 remove cucumber fixtures
cukes are still green (tested with psql).
pull/69/merge
Philipp Tessenow 12 years ago
commit 3a935f35f4
  1. 5
      features/custom_fields/create_bool.feature
  2. 7
      features/issues/copy_with_watchers.feature
  3. 3
      features/issues/export.feature
  4. 3
      features/issues/index_pagination.feature
  5. 6
      features/issues/issue.feature
  6. 3
      features/issues/list_sums.feature
  7. 8
      features/step_definitions/general_steps.rb

@ -5,6 +5,11 @@ Feature: Localized boolean custom fields can be created
And the following languages are active:
| en |
| de |
And there are the following trackers:
| name | position | is_in_chlog |
| Bug | 1 | true |
| Feature | 2 | true |
| Support | 3 | false |
When I go to the custom fields page
When I follow "New custom field" within "#tab-content-IssueCustomField"

@ -2,6 +2,8 @@ Feature: Copying an issue should copy the watchers
Background:
Given there is 1 project with the following:
| identifier | omicronpersei8 |
| name | omicronpersei8 |
And I am working in project "omicronpersei8"
And there is a role "CanCopyIssues"
And the role "CanCopyIssues" may have the following rights:
| add_issues |
@ -22,6 +24,11 @@ Feature: Copying an issue should copy the watchers
And there are the following issue status:
| name | is_default |
| New | true |
And there is a default issuepriority with:
| name | Normal |
And the project "omicronpersei8" has the following trackers:
| name | position |
| Bug | 1 |
And the user "lrrr" has 1 issue with the following:
| subject | Improve drive |
| description | Acquire horn |

@ -9,6 +9,9 @@ Feature: Exporting issues
And there is 1 project with the following:
| name | project1 |
| identifier | project1 |
And the project "project1" has the following trackers:
| name | position |
| Bug | 1 |
And the user "bob" is a "member" in the project "project1"
And the user "bob" has 1 issue with the following:
| subject | Some Issue |

@ -5,6 +5,9 @@ Feature: Paginated issue index list
And there is 1 project with the following:
| identifier | project1 |
| name | project1 |
And the project "project1" has the following trackers:
| name | position |
| Bug | 1 |
And there is 1 user with the following:
| login | bob |
And there is a role "member"

@ -4,6 +4,12 @@ Feature: Issue textile quickinfo links
And there is 1 project with the following:
| name | parent |
| identifier | parent |
And I am working in project "parent"
And the project "parent" has the following trackers:
| name | position |
| Bug | 1 |
And there is a default issuepriority with:
| name | Normal |
And there is a role "member"
And the role "member" may have the following rights:
| add_issues |

@ -4,6 +4,9 @@ Feature: Issue Sum Calculations for Currency
Given there is 1 project with the following:
| name | project1 |
| identifier | project1 |
And the project "project1" has the following trackers:
| name | position |
| Bug | 1 |
And the following issue custom fields are defined:
| name | type |
| cf1 | float |

@ -5,17 +5,11 @@ require "rack_session_access/capybara"
Before do |scenario|
unless ScenarioDisabler.empty_if_disabled(scenario)
# Reset the DB and load the minimal fixtures for a functional system before each scenario
system "RAILS_ENV=test db:test:load >/dev/null 2>/dev/null"
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
ActiveRecord::Schema.verbose = false
system "RAILS_ENV=test rake db:test:prepare >/dev/null 2>/dev/null"
fixtures_path = File.expand_path(Rails.root.join('test/fixtures'))
FactoryGirl.create(:admin) unless User.find_by_login("admin")
FactoryGirl.create(:anonymous) unless AnonymousUser.count > 0
Setting.notified_events = [] #can not test mailer
Dir.glob(File.join(fixtures_path, "*.yml")) do |table_name|
ActiveRecord::Fixtures.create_fixtures(fixtures_path, File.basename(table_name).gsub(".yml", ""))
end
if Capybara.current_driver.to_s.include?("selenium")
Capybara.current_session.driver.browser.manage.window.resize_to(3000, 3000)

Loading…
Cancel
Save