File: hookup_test.rb

package info (click to toggle)
ruby-riot 0.12.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 496 kB
  • ctags: 319
  • sloc: ruby: 2,572; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
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