Sha256: 1b3cde0a41bc40a264f6b44c62dfb8a48f4abb01dfc1eacfb1b91ec60ce89892

Contents?: true

Size: 304 Bytes

Versions: 32

Compression:

Stored size: 304 Bytes

Contents

require 'spec_helper'

module Startback
  describe Context, "with_world" do

    let(:who) do
      Object.new
    end

    let(:context) do
      SubContext.new.with_world(hello: who)
    end

    it 'works as expected' do
      got = context.world.hello
      expect(got).to be(who)
    end

  end
end

Version data entries

32 entries across 32 versions & 3 rubygems

Version Path
startback-0.15.3 spec/unit/context/test_with_world.rb
startback-0.15.2 spec/unit/context/test_with_world.rb
startback-0.15.1 spec/unit/context/test_with_world.rb
startback-0.15.0 spec/unit/context/test_with_world.rb
startback-0.14.4 spec/unit/context/test_with_world.rb
startback-0.14.3 spec/unit/context/test_with_world.rb
startback-0.14.2 spec/unit/context/test_with_world.rb
startback-0.14.1 spec/unit/context/test_with_world.rb
startback-0.14.0 spec/unit/context/test_with_world.rb
startback-jobs-0.14.0 spec/unit/context/test_with_world.rb
startback-websocket-0.14.0 spec/unit/context/test_with_world.rb
startback-0.13.0 spec/unit/context/test_with_world.rb