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 Group < ActiveRecord::Base | |
| has_many :projects | |
| has_many :personal_blogs | |
| has_many :project_events, :through => :projects | |
| has_many :blog_events, :through => :personal_blogs | |
| has_many :events => # I want both project_events and blog_events | |
| 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
| from selenium import selenium | |
| from seldev import sauce_selenium | |
| from time import sleep | |
| import unittest, time, re | |
| class likebutton(unittest.TestCase): | |
| def setUp(self): | |
| self.verificationErrors = [] | |
| # This just creates a selenium object with my credentials and | |
| # FF 3.6 on Windows |
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 "test_helper" | |
| class MixedInTest < ActiveSupport::TestCase | |
| include Sauce::SeleniumForTestUnit | |
| test "my app" do | |
| @browser.open "/" | |
| assert @browser.is_text_present("Welcome aboard") | |
| end | |
| 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
| commit f43bcc04f81013927cf1acf8a9435fe54469afca | |
| Author: theautomatedtester <theautomatedtester@07704840-8298-11de-bf8c-fd130f914ac9> | |
| Date: Thu Jan 27 13:35:59 2011 +0000 | |
| DavidBurns, on behalf of Eric Allen, adding HTTP Basic Auth support for issue 1096 | |
| git-svn-id: http://selenium.googlecode.com/svn/trunk@11164 07704840-8298-11de-bf8c-fd130f914ac9 | |
| diff --git a/py/CHANGES b/py/CHANGES | |
| index 9678943..509ae86 100644 |
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
| import org.openqa.selenium.*; | |
| import org.openqa.selenium.remote.*; | |
| import org.openqa.selenium.firefox.*; | |
| public class CustomFirefoxProfile { | |
| public static void main(String[] args) throws Exception { | |
| DesiredCapabilities capabillities = new DesiredCapabilities("firefox", "3.6.", Platform.WINDOWS); | |
| capabillities.setCapability("job-name", "Fancy Firefox profile"); | |
| FirefoxProfile profile = new FirefoxProfile(); | |
| profile.setPreference("network.http.phishy-userpass-length", 255); |
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 'rubygems' | |
| require 'selenium/webdriver' | |
| require 'selenium/webdriver/remote' | |
| require "watir-webdriver" | |
| username = ENV['SAUCE_USERNAME'] | |
| access_key = ENV['SAUCE_ACCESS_KEY'] | |
| capabilities = { | |
| :name => "Watir in the cloud!" |
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
| var soda = require('soda'); | |
| var browser = soda.createSauceClient({ | |
| 'url': 'https://saucelabs.com/', | |
| 'os': 'Windows 2003', | |
| 'browser': 'firefox', | |
| 'idle-timeout': 10, | |
| 'user-extensions-url': ['https://saucelabs.com/ext/test-extension.js'], | |
| 'browser-version': '3.6'}); |
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
| var soda = require('soda'); | |
| var browser = soda.createSauceClient({ | |
| 'url': 'https://saucelabs.com/', | |
| 'os': 'Windows 2003', | |
| 'browser': 'firefox', | |
| 'idle-timeout': 10, | |
| 'browser-version': '3.6'}); | |
| browser |
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
| cc1plus: warnings being treated as errors | |
| vm/capi/object.cpp: In function ‘void rb_error_frozen(const char*)’: | |
| vm/capi/object.cpp:18: warning: unused variable ‘env’ | |
| Error: gcc -Ivm -Ivm/test/cxxtest -I. -pipe -Wall -fno-omit-frame-pointer -ggdb3 -Werror -DRBX_PROFILER -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -DHAS_EXECINFO -DHAS_READLINE -mdynamic-no-pic -DNDEBUG -D_GNU_SOURCE -fno-common -Ivendor/llvm/include -DENABLE_LLVM -Ivendor/udis86 -Ivendor/libffi/include -Ivendor/libgdtoa -Ivendor/onig -Ivendor/libtommath -I/usr/local/include -I/opt/local/include -c -o vm/capi/artifacts/object.cpp.o vm/capi/object.cpp |
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
| [master¹]$ gem list | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/authlogic-3.1.0.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/capistrano-2.9.0.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/coffee-script-source-1.1.3.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/compass-0.12.alpha.1.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/json-1.6.1.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/libv8-3.3.10.4-x86_64-darwin-11.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/paperclip-2.4.5.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/rack-cache-1.0.3.gemspec]: ArgumentError | |
| Invalid gemspec in [/Users/epall/.rvm/gems/rbx-head/specifications/tilt-1.3.3.gemspec]: ArgumentError |