Scenario: Updating profile picture
Given I am logged in
When I change my profile picture
Then my profile should be updated
And I should see the new profile picture
When /^I change my profile picture$/ do
visit("/user/profile")
When /^I edit biometric value with "(.*)"$/ do |value| | |
@value = value | |
find(:css, "div[data-key='#{@key}']").hover | |
within("div[data-key='#{@key}']") do | |
find(:css, ".icon-edit").trigger("click") | |
end | |
within("div.resource-type-#{@key}") do | |
find(:css, "div.selectbox").click | |
end | |
within("ul.selectbox") do |
class Measure | |
def valid? | |
true | |
end | |
end | |
Measure.extend(Spawn).spawner do |measure| | |
measure.source ||= ["profile","identity"].sample | |
measure.key ||= User::PROFILE_MEASURES.keys.sample.to_s | |
measure.type ||= measure.key | |
measure.unit ||= nil |
Scenario: Updating profile picture
Given I am logged in
When I change my profile picture
Then my profile should be updated
And I should see the new profile picture
When /^I change my profile picture$/ do
visit("/user/profile")
[ 2013-10-03 13:13:09.4306 2839/7f6b7aef7700 Pool2/Implementation.cpp:1174 ]: [App 4249 stderr] cache error: Unknown storage provider: redis://localhost:6380/1/metastore | |
[ 2013-10-03 13:13:09.4306 2839/7f6b7aef7700 Pool2/Implementation.cpp:1174 ]: [App 4249 stderr] /var/lib/jenkins/workspace/master-plupin-web/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/storage.rb:39:in `create_store' | |
[ 2013-10-03 13:13:09.4306 2839/7f6b7aef7700 Pool2/Implementation.cpp:1174 ]: [App 4249 stderr] /var/lib/jenkins/workspace/master-plupin-web/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/storage.rb:18:in `resolve_metastore_uri' | |
[ 2013-10-03 13:13:09.4306 2839/7f6b7aef7700 Pool2/Implementation.cpp:1174 ]: [App 4249 stderr] /var/lib/jenkins/workspace/master-plupin-web/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:34:in `metastore' | |
[ 2013-10-03 13:13:09.4306 2839/7f6b7aef7700 Pool2/Implementation.cpp:1174 ]: [App 4249 stderr] /var/lib/jenkins/workspace/master-plupin-web/vendor/b |
# Grabs errors from a json response. | |
def from_json(json, save_cache = false) | |
array = Array.wrap(ActiveSupport::JSON.decode(json)['errors']) rescue [] | |
from_array array, save_cache | |
end | |
def from_array(messages, save_cache = false) | |
clear unless save_cache | |
humanized_attributes = Hash[@base.attributes.keys.map { |attr_name| [attr_name.humanize, attr_name] }] | |
messages.each do |message| |
module Faker | |
class Internet | |
def self.webpage | |
"https://#{Faker::Internet.user_name}.#{domain_name}" | |
end | |
end | |
class Geo | |
def self.lat | |
Random.rand(-90.00000000..90.00000000) |
irb(main):001:0> Application.find("mapmyfitness") | |
=> <Application:mapmyfitness flags={} has_icon=false created_at=2012-11-12 23:09:35 UTC app_type="browser" app_status="dev" scope_permissions="public" default_access_type="read_write" connected_apps=0 total_users=5 state="inactive" name="mapmyfitness" prod_activated_at=nil display_name="mapmyfitness" description="MapMyFitness Connector" url_website=nil url_support="http://mhealth.dev.attcompute.com" consumer_id="T43czemeRxRRoHHEQOau" consumer_secret="FW2m75YgHkuR2wnwwI8VpDKYDnJK63dns6yKRyAg" updated_at=2013-09-12 19:30:03 UTC developer_id=nil organization=nil compliance=nil url_subscription=nil url_callback=nil> |
class Player | |
@health = 20 | |
@bottom = false | |
@pivot = false | |
@last_mode = nil | |
@last_move = nil | |
@mode = :walk | |
@move = :backward | |
@fullrecover = false | |
#### SDD | |
* Dual-Core I7 | |
* 8GB RAM | |
Finished in 4 minutes 57.1 seconds | |
542 examples, 0 failures | |
#### HDD (5400) |
class Group | |
include Ripple::Document | |
include Ripple::Encryption | |
property :name, String, :presence => true | |
property :user_id, String, :presence => true, :index => true | |
timestamps! | |
one :owner, class_name: 'User', foreign_key: :user_id |