Skip to content

Instantly share code, notes, and snippets.

View drewbourne's full-sized avatar

Drew Bourne drewbourne

View GitHub Profile
@drewbourne
drewbourne / keybase.md
Created September 18, 2014 14:39
Keybase proof

Keybase proof

I hereby claim:

  • I am drewbourne on github.
  • I am drewbourne (https://keybase.io/drewbourne) on keybase.
  • I have a public key whose fingerprint is 2406 C349 5125 D7BA 6F3A 8348 90BF 42C8 49A3 FB6E

To claim this, I am signing this object:

@drewbourne
drewbourne / gist:6166538
Created August 6, 2013 17:20
Operational Transformation Resources
@drewbourne
drewbourne / Alecmce_Sockets.as
Created November 30, 2012 05:30
Using Mockolate to proxy calls from a mocked Socket to a ByteArray
package mockolate.issues {
import mockolate.*;
import mockolate.ingredients.*;
import mockolate.runner.*;
import flash.net.Socket;
import flash.utils.ByteArray;
import org.hamcrest.*;
import org.hamcrest.core.*;
import org.hamcrest.object.*;
@drewbourne
drewbourne / MockingRemoteObjects.as
Created February 22, 2012 09:36
Example of mocking RemoteObjects with Mockolate
package mockolate
{
import flash.utils.flash_proxy;
import mockolate.runner.MockolateRule;
import mx.rpc.remoting.RemoteObject;
import mx.rpc.events.ResultEvent;
import org.flexunit.assertThat;
@drewbourne
drewbourne / Model.as
Created February 2, 2012 22:35
FlexUnit Parameterized Test with Mockolate
package flexunit.example.parameterized
{
public class Model
{
public function calculate(... args):Number
{
return NaN;
}
}
}
@drewbourne
drewbourne / EventDispatching
Created November 9, 2011 10:47
Mockolate Event dispatching example for SlevinBE
package mockolate.examples.slevinbe
{
import flash.events.IEventDispatcher;
import mockolate.runner.MockolateRule;
import org.flexunit.assertThat;
import org.hamcrest.object.isTrue;
public class EventDispatching
@drewbourne
drewbourne / 1-clone robotlegs
Created November 3, 2011 10:49
Building and running RobotLegs v2
$ git clone https://github.com/robotlegs/robotlegs-framework.git
Cloning into robotlegs-framework...
remote: Counting objects: 7066, done.
remote: Compressing objects: 100% (2655/2655), done.
remote: Total 7066 (delta 3684), reused 6809 (delta 3448)
Receiving objects: 100% (7066/7066), 6.27 MiB | 52 KiB/s, done.
Resolving deltas: 100% (3684/3684), done.
package mockolate
{
import flash.events.Event;
import mockolate.runner.MockolateRule;
import org.flexunit.assertThat;
import org.hamcrest.object.notNullValue;
public class UsingConstructorArgs
@drewbourne
drewbourne / ColorizedTextPrinter.as
Created September 29, 2011 04:03
ASUnit 4 TextPrinter with colorized trace output for OS X, Linux
package asunit.printers {
import asunit.framework.IResult;
import asunit.framework.IRunListener;
import asunit.framework.ITestFailure;
import asunit.framework.ITestSuccess;
import asunit.framework.ITestWarning;
import asunit.framework.Method;
import flash.display.Shape;
package mockolate.examples
{
public class MockolateFlexUnitAsyncPrepareExample
{
public var command:CreateOrUpdateConstituentCommand;
public var constituent:Constituent;
public var constituentModel:IConstituentModel;
[Before(order=1, async)]
public function prepareMocks():void