Sha256: 4a01a40338aae7a4437790a9075524d853851083678c6b98e29a0c0e880288f2

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

describe Elevate::DSL do
  describe "#on_started" do
    it "stores the provided block" do
      i = Elevate::DSL.new do
        on_started { puts 'hi' }
      end

      i.started_callback.should.not.be.nil
    end
  end

  describe "#on_completed" do
    it "stores the passed block" do
      i = Elevate::DSL.new do
        on_completed { |result, exception| puts 'hi' }
      end

      i.finished_callback.should.not.be.nil
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elevate-0.4.0 spec/dsl_spec.rb