File: situation_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 (16 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'teststrap'

context "A situation" do
  setup do
    Riot::Situation.new
  end

  asserts("the topic is result of calling setup") do
    topic.setup { "foo" }
    topic.topic == "foo"
  end

  asserts("evaluate will return result of evaluation") do
    topic.evaluate { "foo" == "bar" } == false
  end
end # A situation