hydra-head 3.0.0pre1 → 3.0.0pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/Gemfile.lock +6 -4
  2. data/HOW_TO_GET_STARTED.textile +571 -0
  3. data/HYDRA_ACCESS_CONTROLS.textile +27 -0
  4. data/INITIAL_APP_MODS.textile +239 -0
  5. data/README.textile +22 -7
  6. data/README_RAILS3_CHANGES.textile +23 -2
  7. data/app/views/catalog/_sort_and_per_page.html.erb +3 -2
  8. data/app/views/catalog/show.html.erb +1 -1
  9. data/lib/generators/hydra/cucumber_support_generator.rb +29 -0
  10. data/lib/generators/hydra/head_generator.rb +6 -14
  11. data/lib/generators/hydra/hyhead_fixtures_generator.rb +27 -0
  12. data/lib/generators/hydra/templates/config/initializers/fedora_config.rb +3 -1
  13. data/lib/hydra-head/version.rb +1 -1
  14. data/lib/hydra/access_controls_evaluation.rb +8 -4
  15. data/lib/hydra/{fixtures.rb → fixture_loader.rb} +14 -9
  16. data/lib/railties/hydra-fixtures.rake +5 -5
  17. data/tasks/hydra-head.rake +36 -25
  18. data/test_support/features/file_upload.feature +1 -1
  19. data/test_support/features/mods_asset_search_result.feature +12 -1
  20. data/test_support/features/step_definitions/edit_metadata_steps.rb +2 -2
  21. data/test_support/features/step_definitions/show_document_steps.rb +4 -0
  22. data/test_support/spec/helpers/access_controls_enforcement_spec.rb +62 -10
  23. data/vendor/cache/addressable-2.2.6.gem +0 -0
  24. data/vendor/cache/launchy-2.0.4.gem +0 -0
  25. data/vendor/cache/mediashelf-loggable-0.4.3.gem +0 -0
  26. data/vendor/cache/multipart-post-1.1.3.gem +0 -0
  27. metadata +15 -13
  28. data/lib/generators/hydra/templates/migrations/add_user_attributes_table.rb +0 -15
  29. data/test_support/features/html_validity.feature +0 -47
  30. data/vendor/cache/launchy-2.0.3.gem +0 -0
  31. data/vendor/cache/mediashelf-loggable-0.4.2.gem +0 -0
  32. data/vendor/cache/multipart-post-1.1.2.gem +0 -0
@@ -1,15 +0,0 @@
1
- class AddUserAttributesTable < ActiveRecord::Migration
2
- def self.up
3
- create_table :user_attributes do |t|
4
- t.integer :user_id, :unique => true, :null => false
5
- t.string :first_name
6
- t.string :last_name
7
- t.string :affiliation
8
- t.string :photo
9
- end
10
- end
11
-
12
- def self.down
13
- drop_table :user_attributes
14
- end
15
- end
@@ -1,47 +0,0 @@
1
- Feature: HTML validity
2
- In order to verify that the application in HTML5 valid
3
- As a user
4
- I want to the pages to conform to the W3C HTML5 validation
5
-
6
- Scenario: Home page (unauthenticated)
7
- When I am on the home page
8
- Then the page should be HTML5 valid
9
-
10
- Scenario: Home page (authenticated)
11
- Given I am logged in as "archivist1@example.com"
12
- When I am on the home page
13
- Then the page should be HTML5 valid
14
-
15
- Scenario: Search Results (unauthenticated)
16
- Given I am on the home page
17
- And I fill in "q" with "fixture"
18
- When I press "submit"
19
- When I follow "ARTICLE"
20
- Then I should see "TITLE OF HOST JOURNAL"
21
- And the page should be HTML5 valid
22
-
23
- Scenario: Search Results (authenticated)
24
- Given I am logged in as "archivist1@example.com"
25
- When I am on the home page
26
- And I fill in "q" with "fixture"
27
- And I press "submit"
28
- And I follow "ARTICLE"
29
- Then I should see "TITLE OF HOST JOURNAL"
30
- And the page should be HTML5 valid
31
-
32
- Scenario: Record view browse (unauthenticated)
33
- Given I am on the show document page for hydrangea:fixture_mods_article2
34
- Then I should see "TITLE OF HOST JOURNAL"
35
- And the page should be HTML5 valid
36
-
37
- Scenario: Record view browse (authenticated)
38
- Given I am logged in as "archivist1@example.com"
39
- When I am on the show document page for hydrangea:fixture_mods_article2
40
- Then I should see "TITLE OF HOST JOURNAL"
41
- And the page should be HTML5 valid
42
-
43
- Scenario: Record view edit (authenticated)
44
- Given I am logged in as "archivist1@example.com"
45
- When I am on the edit document page for hydrangea:fixture_mods_article2
46
- Then I should see "TITLE OF HOST JOURNAL"
47
- And the page should be HTML5 valid
Binary file
Binary file