Sha256: 4479704d5fc31cbf6347211d05a3f507d6a6f4743c7288c04562978ecf2aa702

Contents?: true

Size: 386 Bytes

Versions: 31

Compression:

Stored size: 386 Bytes

Contents

require 'teststrap'

context "A setup block" do
  setup do
    Riot::Setup.new { "fooberries" }
  end
  
  asserts("topic is set for situation when run") do
    situation = Riot::Situation.new
    topic.run(situation)
    situation.topic == "fooberries"
  end

  asserts(":setup is returned from calling run") do
    topic.run(Riot::Situation.new) == [:setup]
  end
end # A setup block

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
riot-0.12.7 test/core/runnable/setup_test.rb
riot-0.12.6 test/core/runnable/setup_test.rb
riot-0.12.5 test/core/runnable/setup_test.rb
riot-0.12.4 test/core/runnable/setup_test.rb
riot-0.12.3 test/core/runnable/setup_test.rb
riot-0.12.2 test/core/runnable/setup_test.rb
riot-0.12.1 test/core/runnable/setup_test.rb
riot-0.12.0 test/core/runnable/setup_test.rb
riot-0.12.0.pre test/core/runnable/setup_test.rb
riot-0.11.4 test/core/setup_test.rb
riot-0.11.4.pre test/core/setup_test.rb
riot-0.11.3 test/core/setup_test.rb
riot-0.11.2 test/core/setup_test.rb
riot-0.11.1 test/core/setup_test.rb
riot-0.11.0 test/core/setup_test.rb
riot-0.10.13 test/core/setup_test.rb
riot-0.10.13.pre test/core/setup_test.rb
riot-0.10.12 test/core/setup_test.rb
riot-0.10.12.pre test/setup_test.rb
riot-0.10.11 test/setup_test.rb