-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '54-remove-controller-and-view-specs'
- Loading branch information
Showing
21 changed files
with
205 additions
and
430 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
= form_for @current_object do |f| | ||
%table.edit | ||
%tr | ||
%th&= _('Name') | ||
%th= f.label :name, _('Name') | ||
%td= f.text_field :name | ||
= submit_tag(h(_('Save'))) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
- if !current_user | ||
%h1&= _("Register") | ||
%h1= _("Register") | ||
= error_messages_for :user | ||
= form_for :user, :url => current_user ? edit_user_path(current_user) : users_path do |f| | ||
%h2&= _("Who are you?") | ||
%h2= _("Who are you?") | ||
%table.edit | ||
%tr | ||
%th | ||
&= _("E-mail address") | ||
= f.label :email, _("E-mail address") | ||
%br | ||
%span.hint&= _("(this will be your user name)") | ||
%td= f.text_field :email | ||
%span.hint= _("(this will be your user name)") | ||
%td= f.email_field :email | ||
%tr | ||
%th&= _("First name") | ||
%th= f.label :firstname, _("First name") | ||
%td= f.text_field :firstname | ||
%tr | ||
%th&= _("Last name") | ||
%th= f.label :lastname, _("Last name") | ||
%td= f.text_field :lastname | ||
%tr | ||
%th&= _("Password") | ||
%th= f.label :password, _("Password") | ||
%td= f.password_field :password | ||
%tr | ||
%th | ||
&= _("Password again") | ||
= f.label :password_confirmation, _("Password again") | ||
%br | ||
%span.hint&= _("(for confirmation)") | ||
%span.hint= _("(for confirmation)") | ||
%td= f.password_field :password_confirmation | ||
|
||
%h2&= _("Where do you live?") | ||
%p&= _("This information is optional, but if you provide it, we can tell you the distance from your house to events. And of course we'll never share it with anyone else without your permission (except anonymously for geocoding).") | ||
%h2= _("Where do you live?") | ||
%p= _("This information is optional, but if you provide it, we can tell you the distance from your house to events. And of course we'll never share it with anyone else without your permission (except anonymously for geocoding).") | ||
%table.edit | ||
%tr | ||
%th&= _("Street address") | ||
%th= f.label :street, _("Street address") | ||
%td= f.text_field :street | ||
%tr | ||
%th&= _("Address line 2") | ||
%th= f.label :street2, _("Address line 2") | ||
%td= f.text_field :street2 | ||
%tr | ||
%th&= _("City") | ||
%th= f.label :city, _("City") | ||
%td= f.text_field :city | ||
%tr | ||
%th&= _("State") | ||
%th= f.label :state_id, _("State") | ||
%td= f.collection_select(:state_id, Acts::Addressed::State.find(:all, :order => :name), :id, :name, :include_blank => true) | ||
%tr | ||
%th&= _("ZIP code") | ||
%th= f.label :zip, _("ZIP code") | ||
%td= f.text_field :zip | ||
%p | ||
%label | ||
= f.check_box :show_contact | ||
&= _('Make my address visible in the contact list (available to administrators only)') | ||
= _('Make my address visible in the contact list (available to administrators only)') | ||
|
||
= submit_tag(current_user ? _('Save') : _('Sign up')) |
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
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
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Feature: List events | ||
As a registered user | ||
I can see events on calendars I subscribe to | ||
So I can keep track of what's going on | ||
|
||
Scenario: Unregistered users can't get to event list | ||
Given I am not logged in | ||
When I go to the events page | ||
Then I should be on the login page | ||
|
||
Scenario Outline: It should sort events by date | ||
Given I am logged in | ||
And I am subscribed to "<calendar>" | ||
And the following events exist: | ||
| calendar | name | date | | ||
| the calendar | November | 2100-11-01 | | ||
| the calendar | October | 2100-10-01 | | ||
| the calendar | December | 2100-12-01 | | ||
When I go to the events page | ||
Then I should see the following in order: | ||
| October | | ||
| November | | ||
| December | | ||
|
||
Examples: | ||
| calendar | | ||
| My Amazing Calendar | | ||
|
||
Scenario Outline: It should not show deleted events | ||
Given I am logged in | ||
And I am subscribed to "<calendar>" | ||
And a deleted event exists with name: "<deleted>", calendar: the calendar | ||
When I go to the events page | ||
Then I should not see "<deleted>" | ||
|
||
Examples: | ||
| calendar | deleted | | ||
| Deletion test | I'm invisible! | |
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
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
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
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
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
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
Oops, something went wrong.