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
(streams | |
(moving-time-window 10 | |
(tap :mtw | |
#(info %)))) | |
(tests | |
(let [input {:service "some-service"}] | |
(deftest moving-time-window-should-not-retain-state-between-tests | |
(is (= (inject! [input]) | |
{:mtw [[input]]}))) |
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
(streams | |
(throttle 1 10 | |
(tap :throttle | |
#(info %)))) | |
(tests | |
(let [input {:service "some-service"}] | |
(deftest throttle-should-allow-events-after-window-passes | |
(is (= (inject! [input]) | |
{:throttle [input]})) |
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
(streams | |
prn | |
(where (service "digital") | |
(with :service "analog" reinject))) | |
(tests | |
(deftest reinject-test | |
(inject! [{:service "digital"}]))) |
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
Trinity:~ dbriones$ rvm 1.8.7; rvm debug | |
rvm 0.1.22 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] | |
system: | |
uname: "Darwin Trinity.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.48(1)-release" | |
ruby: |
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
Trinity:work dbriones$ rake --trace | |
(in /Users/dbriones/.cruise/projects/Capybara/work) | |
JRuby limited openssl loaded. gem install jruby-openssl for full support. | |
http://jruby.kenai.com/pages/JRuby_Builtin_OpenSSL | |
rake aborted! | |
No such file or directory - File not found - /Users/dbriones/.rvm/gems/jruby-1.4.0�pybara/gems/rubyforge-2.0.4/lib/rubyforge.rb |
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
#!/usr/bin/env jruby | |
STDERR.puts("celerity server running") | |
require File.dirname(__FILE__) << '/../lib/culerity/celerity_server' | |
Culerity::CelerityServer.new(STDIN, STDOUT) |
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
ruby-1.8.7-p302 > require 'rubygems' | |
=> true | |
ruby-1.8.7-p302 > require 'culerity' | |
=> true | |
ruby-1.8.7-p302 > server=Culerity::run_server | |
#<IO:0x60f554> | |
=> #<IO:0x60f554> | |
ruby-1.8.7-p302 > celerity server running |
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
private Matcher<? super FavoritesTab> hasCount(final int i) { | |
final int[] result = new int[1]; | |
return new TypeSafeMatcher<FavoritesTab>() { | |
protected boolean matchesSafely(FavoritesTab favoritesTab) { | |
result[0] = favoritesTab.getCountDisplayedOnTab(); | |
return result[0] == i; | |
} | |
protected void describeMismatchSafely(FavoritesTab item, Description mismatchDescription) { | |
mismatchDescription.appendText("it contained " + i + " card(s)"); |
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
// launches keyboard and list of results | |
driver.findElement(By.placeholder("Search")).click(); | |
// does nothing | |
driver.findElement(By.placeholder("Search")).sendKeys("flat panel lcd"); | |
// returns UISearchBar | |
driver.findElement(By.placeholder("Search")).getTagName(); |
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
table <-- contains the tabs | |
+ tr | |
+ td <-- first tab, onclick defined here | |
+ table | |
+ tr | |
+ td | |
+ a | |
+ td <-- second tab, onclick defined here | |
+ table | |
+ tr |
OlderNewer