Sha256: c653768e31ce418429df8cb502555797b1cf5dd635730c3beba07dab05f619df
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 Bytes
Contents
require 'teststrap' context "an assertion made with arguments" do setup do Riot::Context.new("foo") {}.asserts(:[], 0) end should("pass its argument to send, with the first argument as method name") do (situation = Riot::Situation.new).instance_variable_set(:@_topic, [1, 2]) topic.equals(1).run(situation).first end.equals(:pass) end # assertion made with arguments context "a should made with arguments" do setup do Riot::Context.new("foo") {}.should(:[], 0) end should("pass its argument to send, with the first argument as method name") do (situation = Riot::Situation.new).instance_variable_set(:@_topic, [1, 2]) topic.equals(1).run(situation).first end.equals(:pass) end
Version data entries
5 entries across 5 versions & 1 rubygems