Sha256: 1b3cde0a41bc40a264f6b44c62dfb8a48f4abb01dfc1eacfb1b91ec60ce89892

Contents?: true

Size: 304 Bytes

Versions: 31

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

31 entries across 31 versions & 3 rubygems

Version Path
startback-1.0.3 spec/unit/context/test_with_world.rb
startback-1.0.2 spec/unit/context/test_with_world.rb
startback-1.0.1 spec/unit/context/test_with_world.rb
startback-1.0.0 spec/unit/context/test_with_world.rb
startback-0.19.4 spec/unit/context/test_with_world.rb
startback-0.19.3 spec/unit/context/test_with_world.rb
startback-0.19.1 spec/unit/context/test_with_world.rb
startback-0.19.0 spec/unit/context/test_with_world.rb
startback-0.18.2 spec/unit/context/test_with_world.rb
startback-0.18.1 spec/unit/context/test_with_world.rb
startback-0.18.0 spec/unit/context/test_with_world.rb
startback-0.17.4 spec/unit/context/test_with_world.rb
startback-0.17.3 spec/unit/context/test_with_world.rb
startback-0.17.2 spec/unit/context/test_with_world.rb
startback-0.17.1 spec/unit/context/test_with_world.rb
startback-0.17.0 spec/unit/context/test_with_world.rb
startback-0.16.0 spec/unit/context/test_with_world.rb
startback-0.15.5 spec/unit/context/test_with_world.rb
startback-0.15.4 spec/unit/context/test_with_world.rb
startback-0.15.3 spec/unit/context/test_with_world.rb