Skip to content

Instantly share code, notes, and snippets.

View bartocc's full-sized avatar

Julien Palmas bartocc

View GitHub Profile
scope '//table[@id = 'admins']//*[position() = 2 and self::tr]' not found on page (Capybara::ElementNotFound)
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:108:in `/^(?:|I )should see "([^\"]*)"(?: within "([^\"]*)")?$/'
features/manage_admins.feature:27:in `Then I should see "[email protected]" within "table#admins tr[2]"'
Before("~@search") do
Sunspot.session = Sunspot::Rails::StubSessionProxy.new(Sunspot.session)
end
# make sure that pickle calls #index! on our appropriate models
require File.join(File.dirname(__FILE__), 'pickle')
module Pickle
module Session
gem 'sunspot_rails', :require => 'sunspot/rails'
# 1.9.2 only (did not try 1.9.1)
puts "foo"
.upcase
.downcase
[julien@mbp-crux] ~/Projects/leadex (master) $ rvm install 1.9.2-preview3 --trace
install 1.9.2-preview3 --trace
rvm 0.1.32 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/]
+ [[ -z install ]]
+ [[ ! -z '' ]]
+ [[ ! -z '' ]]
+ [[ 0 -gt 0 ]]
+ [[ 0 -gt 0 ]]
define_index do
# fields
indexes corporate_name, :sortable => true, :as => :rs
indexes id, :as => :newid
indexes external_id, :as => :oldid
indexes usual_corporate_name, :as => :rsu
indexes [contacts.first_name, contacts.last_name], :as => :nom_contact
indexes contacts.role, :as => :role_contact
indexes categories.label, :as => :categorie