updated selenium driver to work with FF5; added translations to contacts/index; fixed cucumber
This commit is contained in:
parent
00ffade884
commit
73fe74c834
8 changed files with 28 additions and 25 deletions
2
Gemfile
2
Gemfile
|
|
@ -89,7 +89,7 @@ end
|
||||||
group :test do
|
group :test do
|
||||||
gem 'factory_girl_rails'
|
gem 'factory_girl_rails'
|
||||||
gem 'fixture_builder', '~> 0.2.0'
|
gem 'fixture_builder', '~> 0.2.0'
|
||||||
gem 'selenium-webdriver', '0.1.3'
|
gem 'selenium-webdriver', '0.2.2'
|
||||||
gem 'capybara', '~> 0.3.9'
|
gem 'capybara', '~> 0.3.9'
|
||||||
gem 'cucumber-rails', '0.3.2'
|
gem 'cucumber-rails', '0.3.2'
|
||||||
gem 'rspec', '>= 2.0.0'
|
gem 'rspec', '>= 2.0.0'
|
||||||
|
|
|
||||||
19
Gemfile.lock
19
Gemfile.lock
|
|
@ -114,8 +114,8 @@ GEM
|
||||||
ohai (>= 0.5.7)
|
ohai (>= 0.5.7)
|
||||||
rest-client (< 1.7.0, >= 1.0.4)
|
rest-client (< 1.7.0, >= 1.0.4)
|
||||||
uuidtools
|
uuidtools
|
||||||
childprocess (0.1.7)
|
childprocess (0.1.9)
|
||||||
ffi (~> 0.6.3)
|
ffi (~> 1.0.6)
|
||||||
closure-compiler (1.1.1)
|
closure-compiler (1.1.1)
|
||||||
cloudfiles (1.4.10)
|
cloudfiles (1.4.10)
|
||||||
mime-types (>= 1.16)
|
mime-types (>= 1.16)
|
||||||
|
|
@ -160,8 +160,7 @@ GEM
|
||||||
faraday (~> 0.6.0)
|
faraday (~> 0.6.0)
|
||||||
fastercsv (1.5.4)
|
fastercsv (1.5.4)
|
||||||
fastthread (1.0.7)
|
fastthread (1.0.7)
|
||||||
ffi (0.6.3)
|
ffi (1.0.9)
|
||||||
rake (>= 0.8.7)
|
|
||||||
fixture_builder (0.2.2)
|
fixture_builder (0.2.2)
|
||||||
fog (0.3.25)
|
fog (0.3.25)
|
||||||
builder
|
builder
|
||||||
|
|
@ -201,7 +200,7 @@ GEM
|
||||||
rspec (>= 1.3.1)
|
rspec (>= 1.3.1)
|
||||||
selenium-webdriver (>= 0.1.3)
|
selenium-webdriver (>= 0.1.3)
|
||||||
json (1.4.6)
|
json (1.4.6)
|
||||||
json_pure (1.5.1)
|
json_pure (1.5.3)
|
||||||
launchy (0.4.0)
|
launchy (0.4.0)
|
||||||
configuration (>= 0.0.5)
|
configuration (>= 0.0.5)
|
||||||
rake (>= 0.8.1)
|
rake (>= 0.8.1)
|
||||||
|
|
@ -308,7 +307,7 @@ GEM
|
||||||
activesupport (= 3.0.3)
|
activesupport (= 3.0.3)
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (~> 0.14.4)
|
thor (~> 0.14.4)
|
||||||
rake (0.9.1)
|
rake (0.9.2)
|
||||||
rash (0.3.0)
|
rash (0.3.0)
|
||||||
hashie (~> 1.0.0)
|
hashie (~> 1.0.0)
|
||||||
rcov (0.9.9)
|
rcov (0.9.9)
|
||||||
|
|
@ -348,9 +347,9 @@ GEM
|
||||||
ruby-progressbar (0.0.10)
|
ruby-progressbar (0.0.10)
|
||||||
rubyntlm (0.1.1)
|
rubyntlm (0.1.1)
|
||||||
rubyzip (0.9.4)
|
rubyzip (0.9.4)
|
||||||
selenium-webdriver (0.1.3)
|
selenium-webdriver (0.2.2)
|
||||||
childprocess (~> 0.1.5)
|
childprocess (>= 0.1.9)
|
||||||
ffi (~> 0.6.3)
|
ffi (>= 1.0.7)
|
||||||
json_pure
|
json_pure
|
||||||
rubyzip
|
rubyzip
|
||||||
settingslogic (2.0.6)
|
settingslogic (2.0.6)
|
||||||
|
|
@ -449,7 +448,7 @@ DEPENDENCIES
|
||||||
rspec-instafail (>= 0.1.7)
|
rspec-instafail (>= 0.1.7)
|
||||||
rspec-rails (>= 2.0.0)
|
rspec-rails (>= 2.0.0)
|
||||||
ruby-debug
|
ruby-debug
|
||||||
selenium-webdriver (= 0.1.3)
|
selenium-webdriver (= 0.2.2)
|
||||||
settingslogic (= 2.0.6)
|
settingslogic (= 2.0.6)
|
||||||
sod!
|
sod!
|
||||||
thin (= 1.2.11)
|
thin (= 1.2.11)
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ class AspectMembershipsController < ApplicationController
|
||||||
flash.now[:notice] = I18n.t 'aspect_memberships.destroy.success'
|
flash.now[:notice] = I18n.t 'aspect_memberships.destroy.success'
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.all {}
|
|
||||||
format.html{
|
format.html{
|
||||||
redirect_to :back
|
redirect_to :back
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
%h4
|
%h4
|
||||||
.right
|
.right
|
||||||
= link_to t('contacts', :count => @contact_count), contacts_path , :title => t('contacts.index.title')
|
= link_to t('contacts', :count => @contact_count), contacts_path , :title => t('contacts.index.your_contacts')
|
||||||
|
|
||||||
= t('aspects', :count => aspects.count)
|
= t('aspects', :count => aspects.count)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,6 @@
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
|
|
||||||
|
|
||||||
:javascript
|
|
||||||
$(document).ready(function(){
|
|
||||||
});
|
|
||||||
|
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('.title')
|
= t('.title')
|
||||||
|
|
||||||
|
|
@ -20,7 +16,7 @@
|
||||||
%a{:href => contacts_path, :class => ("sub_selected" if params["a_id"])}
|
%a{:href => contacts_path, :class => ("sub_selected" if params["a_id"])}
|
||||||
.contact_count
|
.contact_count
|
||||||
= @my_contacts_count
|
= @my_contacts_count
|
||||||
My Contacts
|
= t('.my_contacts')
|
||||||
|
|
||||||
%ul.sub_nav
|
%ul.sub_nav
|
||||||
- for aspect in all_aspects
|
- for aspect in all_aspects
|
||||||
|
|
@ -30,20 +26,20 @@
|
||||||
= aspect.contacts.count
|
= aspect.contacts.count
|
||||||
= aspect
|
= aspect
|
||||||
%li
|
%li
|
||||||
= link_to "+ Add new aspect", "#add_aspect_pane", :class => "new_aspect", :rel => "facebox"
|
= link_to "+ Add an aspect", "#add_aspect_pane", :class => "new_aspect", :rel => "facebox"
|
||||||
|
|
||||||
%li{:class => ("active" if params["set"] == "all" || params["set"] == "only_sharing")}
|
%li{:class => ("active" if params["set"] == "all" || params["set"] == "only_sharing")}
|
||||||
%a{:href => contacts_path(:set => "all"), :class => ("sub_selected" if params["set"] == "only_sharing")}
|
%a{:href => contacts_path(:set => "all"), :class => ("sub_selected" if params["set"] == "only_sharing")}
|
||||||
.contact_count
|
.contact_count
|
||||||
= @all_contacts_count
|
= @all_contacts_count
|
||||||
All Contacts
|
= t('.all_contacts')
|
||||||
|
|
||||||
%ul.sub_nav
|
%ul.sub_nav
|
||||||
%li{:class => ("active" if params["set"] == "only_sharing")}
|
%li{:class => ("active" if params["set"] == "only_sharing")}
|
||||||
%a{:href => contacts_path(:set => "only_sharing")}
|
%a{:href => contacts_path(:set => "only_sharing")}
|
||||||
.contact_count
|
.contact_count
|
||||||
= @only_sharing_count
|
= @only_sharing_count
|
||||||
Only sharing with me
|
= t('.only_sharing_with_me')
|
||||||
|
|
||||||
.span-15
|
.span-15
|
||||||
#people_stream.stream.contacts
|
#people_stream.stream.contacts
|
||||||
|
|
@ -58,7 +54,7 @@
|
||||||
:id => 42,
|
:id => 42,
|
||||||
:aspect_id => @aspect_.id,
|
:aspect_id => @aspect_.id,
|
||||||
:person_id => contact.person.id},
|
:person_id => contact.person.id},
|
||||||
:title => "Remove #{contact.person.first_name} from \"#{@aspect_.name}\"",
|
:title => t('.remove_person_from_aspect', :person_name => contact.person.first_name, :aspect_name => @aspect_.name),
|
||||||
:method => 'delete')
|
:method => 'delete')
|
||||||
|
|
||||||
- else
|
- else
|
||||||
|
|
@ -75,6 +71,6 @@
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h3.no_contacts
|
%h3.no_contacts
|
||||||
No contacts.
|
= t('.no_contacts')
|
||||||
|
|
||||||
= will_paginate @contacts
|
= will_paginate @contacts
|
||||||
|
|
|
||||||
|
|
@ -184,7 +184,13 @@ en:
|
||||||
people_sharing: "People sharing with you:"
|
people_sharing: "People sharing with you:"
|
||||||
index:
|
index:
|
||||||
add_a_new_aspect: "Add a new aspect"
|
add_a_new_aspect: "Add a new aspect"
|
||||||
title: "Your Contacts"
|
title: "Contacts"
|
||||||
|
your_contacts: "Your Contacts"
|
||||||
|
no_contacts: "No contacts."
|
||||||
|
my_contacts: "My Contacts"
|
||||||
|
all_contacts: "All Contacts"
|
||||||
|
only_sharing_with_me: "Only sharing with me"
|
||||||
|
remove_person_from_aspect: "Remove %{person_name} from \"%{aspect_name}\""
|
||||||
|
|
||||||
conversations:
|
conversations:
|
||||||
index:
|
index:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ Feature: User manages contacts
|
||||||
Given I am signed in
|
Given I am signed in
|
||||||
When I follow "All Aspects" in the header
|
When I follow "All Aspects" in the header
|
||||||
And I follow "Your Contacts"
|
And I follow "Your Contacts"
|
||||||
And I follow "+ Add a new aspect"
|
And I follow "My Contacts"
|
||||||
|
And I follow "+ Add an aspect"
|
||||||
And I fill in "Name" with "Dorm Mates" in the modal window
|
And I fill in "Name" with "Dorm Mates" in the modal window
|
||||||
And I press "Create" in the modal window
|
And I press "Create" in the modal window
|
||||||
Then I should see "Dorm Mates" in the header
|
Then I should see "Dorm Mates" in the header
|
||||||
|
|
|
||||||
|
|
@ -2973,6 +2973,8 @@ ul#left_nav
|
||||||
:padding 3px 7px
|
:padding 3px 7px
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
|
@include border-radius(4px)
|
||||||
|
|
||||||
:background
|
:background
|
||||||
:color lighten($blue,45%)
|
:color lighten($blue,45%)
|
||||||
:text
|
:text
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue