test/test_subtrigger.rb in subtrigger-0.2.5 vs test/test_subtrigger.rb in subtrigger-0.2.6

- old
+ new

@@ -1,14 +1,24 @@ require 'helper' class TestSubtrigger < Test::Unit::TestCase context 'with a clean slate' do setup do + Subtrigger.reset Subtrigger::Trigger.reset end should 'output the version number' do assert_match(/\d+\.\d+\.\d+/, Subtrigger.version) + end + + should 'configure with a block' do + assert_nil Subtrigger.svn + output = Subtrigger.configure do |c| + c.svn = 'foo' + end + assert_equal('foo', Subtrigger.svn) + assert_equal(Subtrigger, output) end should 'Create new Repository object' do Subtrigger::Repository.expects(:new).with('foo', '1') Subtrigger.run('foo', '1') \ No newline at end of file