Sha256: f5456f7227ae50c0b31c697dbbfe19170fb53ec7222f68ce277158008b3ba041
Contents?: true
Size: 863 Bytes
Versions: 4
Compression:
Stored size: 863 Bytes
Contents
require "test_helper" describe "Assertions" do include Capybara::DSL include Capybara::Assertions it "defines all the assertions that Capybara does" do Minitest::Capybara.assertions.each do |assertion| assert self.respond_to?("assert_#{assertion}"), "The assertion assert_#{assertion} is not defined." end end it "defines all the refutations that Capybara does" do Minitest::Capybara.refutations.each do |refutation| assert self.respond_to?("refute_#{refutation}"), "The assertion refute_#{refutation} is not defined." end end it "defines all the negative assertions that Capybara does" do Minitest::Capybara.refutations.each do |refutation| assert self.respond_to?("assert_no_#{refutation}"), "The assertion assert_no_#{refutation} is not defined." end end end
Version data entries
4 entries across 4 versions & 1 rubygems