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
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]"' |
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
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 | |
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
gem 'sunspot_rails', :require => 'sunspot/rails' |
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
# 1.9.2 only (did not try 1.9.1) | |
puts "foo" | |
.upcase | |
.downcase |
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
[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 ]] |
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
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 |
NewerOlder