This file contains hidden or 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
| bonjour |
This file contains hidden or 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
| #in my step definitions | |
| Then /^I should see in this order the following elements:$/ do |table| | |
| matched_vals = response.body =~ Regexp.new(table.raw.join(".*"), Regexp::MULTILINE) | |
| assert !matched_vals.nil? | |
| end | |
| #in my feature: | |
| Then I should see in this order the following elements: | |
| | primo | |
This file contains hidden or 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
| puts 'toto' | |
| def titi | |
| end |
This file contains hidden or 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
| [ | |
| "Alsace", | |
| "Aquitaine", | |
| "Auvergne", | |
| "Basse-Normandie", | |
| "Bourgogne", | |
| "Bretagne", | |
| "Centre", | |
| "Champagne-Ardenne", | |
| "Corse", |
This file contains hidden or 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 install ruby-debug19 -- --with-ruby-include=/Users/thibaut/.rvm/src/ruby-1.9.1-p378 |
This file contains hidden or 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
| class StoreRedirectTo | |
| def initialize(app) | |
| @app = app | |
| end | |
| def call(env) | |
| request = Rack::Request.new(env) | |
| path = request.path | |
| signin = path.match(%r(^/auth/[^/]+$)) && path != '/auth/failure' | |
| signout = path == '/users/signout' | |
| if signin || signout |
This file contains hidden or 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
| class SessionsController < ApplicationController | |
| def create | |
| auth = request.env["omniauth.auth"] | |
| user = User.find_by_provider_and_uid(auth["provider"], auth["uid"]) | |
| user ||= User.create_with_omniauth(auth) | |
| session[:user_id] = user.id | |
| redirect_to [:dashboard, user] | |
| end | |
| def destroy |
This file contains hidden or 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
| When /^I create a new "([^"]*)" hotspot$/ do |hotspot_type| | |
| click_link "Hotspots" | |
| page.find(:css, "a[data-hotspot-type=\"#{hotspot_type.camelize}Hotspot\"]").click | |
| end |
This file contains hidden or 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('@omniauth_test') do | |
| OmniAuth.config.test_mode = true | |
| end | |
| After('@omniauth_test') do | |
| OmniAuth.config.test_mode = false | |
| end |
This file contains hidden or 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
| require 'formula' | |
| class Ab < Formula | |
| homepage 'http://httpd.apache.org/docs/trunk/programs/ab.html' | |
| url 'http://www.apache.org/dist/httpd/httpd-2.4.3.tar.bz2' | |
| sha1 '0ef1281bb758add937efe61c345287be2f27f662' | |
| depends_on 'pcre' | |
| depends_on 'libtool' |
OlderNewer