Sha256: 67e3366c6ddbe68682aabb5dd115c924feddcd58812597b22f6f28cb688a5335

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

require 'spec/spec_helper'

describe Scrooge::Strategy::Base do
  
  before(:each) do
    Scrooge::Strategy::Base.stage( :stage ) do
      'payload'
    end
    @base = Scrooge::Strategy::Base.new
    @controller = Scrooge::Strategy::Controller.new( @base )
  end
  
  after(:each) do
    Scrooge::Strategy::Base.flush!
  end
  
  it "should be able to execute a given strategy" do
    @controller.run!().value.should include( 'payload' )
  end
  
  it "should be able to provide access to the background thread" do
    @controller.run!()
    @controller.thread.class.should == Thread
  end  
  
end  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
methodmissing-scrooge-1.0.2 spec/units/scrooge/strategy/controller_spec.rb
methodmissing-scrooge-1.0.3 spec/units/scrooge/strategy/controller_spec.rb
methodmissing-scrooge-1.0.4 spec/units/scrooge/strategy/controller_spec.rb