Sha256: bc063bc8600fd0696a6248215c90b39f46ccc96e6f2c3ff47bc7c278f9241001

Contents?: true

Size: 337 Bytes

Versions: 9

Compression:

Stored size: 337 Bytes

Contents

require 'teststrap'

context "Using a hookup" do
  setup do
    situation = Riot::Situation.new
    a_context = Riot::Context.new("foobar") {}
    a_context.setup { "I'm a string" }.run(situation)
    a_context.hookup { topic.size }.run(situation)
    situation.topic
  end
  
  asserts_topic.equals("I'm a string")
end # Using a hookup

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
riot-0.12.7 test/core/context/hookup_test.rb
riot-0.12.6 test/core/context/hookup_test.rb
riot-0.12.5 test/core/context/hookup_test.rb
riot-0.12.4 test/core/context/hookup_test.rb
riot-0.12.3 test/core/context/hookup_test.rb
riot-0.12.2 test/core/context/hookup_test.rb
riot-0.12.1 test/core/context/hookup_test.rb
riot-0.12.0 test/core/context/hookup_test.rb
riot-0.12.0.pre test/core/context/hookup_test.rb