Sha256: 4ccd6979fb1b465adbeb100123fa6e7d4c5ea078905a1bd8b1f4f01fbec1a2e9

Contents?: true

Size: 388 Bytes

Versions: 4

Compression:

Stored size: 388 Bytes

Contents

require 'helper'

context "A rule all on it's lonesome" do
  setup do
    Rulebook::Rule.new(/is_lonely/) { "='(" }
  end
  asserts("that this rule truly is alone") { topic.matches_against?(:is_lonely) }
  denies("an awkward method") { topic.matches_against?(:is_surrounded_by_other_rule_friends) }
  asserts("this works with Strings") { topic.matches_against?("is_lonely") }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rulebook-0.4.3 test/test_rule.rb
rulebook-0.4.2 test/test_rule.rb
rulebook-0.4.1 test/test_rule.rb
rulebook-0.4.0 test/test_rule.rb