Sha256: 928454010575ff37a9ba8e8ba3f381605868dfd4693c2fa8794a6fddea885d78

Contents?: true

Size: 297 Bytes

Versions: 9

Compression:

Stored size: 297 Bytes

Contents

require 'teststrap'

context "A context with a helper" do
  setup { "foo" }

  helper(:upcase) { topic.upcase }
  helper(:append) {|str| topic + str }

  asserts("executing the helper") { upcase }.equals("FOO")
  asserts("calling a helper with an argument") { append("bar") }.equals("foobar")
end

Version data entries

9 entries across 9 versions & 1 rubygems

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