Sha256: 550390ecc43c5bdbb03ca7ebfed54557bccfce1ef7be5d1244bfbc17b6b0fae6
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
require 'test_helper' class HookTest < MiniTest::Spec subject { Hooks::Hook.new({}) } it "exposes array behaviour for callbacks" do subject << :play_music subject << :drink_beer subject.to_a.must_equal [:play_music, :drink_beer] end end class ResultsTest < MiniTest::Spec subject { Hooks::Hook::Results.new } describe "#halted?" do it "defaults to false" do subject.halted?.must_equal false end it "responds to #halted!" do subject.halted! subject.halted?.must_equal true end it "responds to #not_halted?" do subject.not_halted?.must_equal true end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
hooks-0.3.5 | test/hook_test.rb |
hooks-0.3.4 | test/hook_test.rb |
hooks-0.3.3 | test/hook_test.rb |
hooks-0.3.2 | test/hook_test.rb |
hooks-0.3.1 | test/hook_test.rb |
hooks-0.3.0 | test/hook_test.rb |