test/lolcommits/plugin/tranzlate_test.rb in lolcommits-tranzlate-0.3.0 vs test/lolcommits/plugin/tranzlate_test.rb in lolcommits-tranzlate-0.4.0

- old
+ new

@@ -16,24 +16,24 @@ @plugin ||= Lolcommits::Plugin::Tranzlate.new(runner: runner) end describe '#enabled?' do it 'returns false by default' do - plugin.enabled?.must_equal false + _(plugin.enabled?).must_equal false end it 'returns true when configured' do plugin.configuration = { enabled: true } - plugin.enabled?.must_equal true + _(plugin.enabled?).must_equal true end end describe '#run_pre_capture' do before { commit_repo_with_message('my awesome commit') } it 'tranzlates the commit message' do in_repo { plugin.run_pre_capture } - runner.message.must_match(/AWESUM COMMIT/) + _(runner.message).must_match(/AWESUM COMMIT/) end after { teardown_repo } end end