Sha256: 9cf73d31b10cd6297d4b4bdd777794d51aff4c008a4374dd964859d4efb5f783
Contents?: true
Size: 776 Bytes
Versions: 5
Compression:
Stored size: 776 Bytes
Contents
require 'teststrap' context "a negative assertion made with arguments" do setup do Riot::Context.new("foo") {}.denies(:[], 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(:fail) end # assertion made with arguments context "a negative assertion made with arguments" do setup do Riot::Context.new("foo") {}.should_not(:[], 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(:fail) end # assertion made with arguments
Version data entries
5 entries across 5 versions & 1 rubygems