Skip to content

Commit

Permalink
switch to assert_equal to see fail condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mroth committed Feb 13, 2015
1 parent 5b7ac96 commit 926cb3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/plugins_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_lol_twitter_build_tweet
suffix = '... #lolcommits'

Lolcommits::LolTwitter.send(:define_method, :max_tweet_size, Proc.new { max_tweet_size })
assert_match "#{long_commit_message[0..(max_tweet_size - suffix.length)]}#{suffix}", plugin.build_tweet(long_commit_message)
assert_equal "#{long_commit_message[0..(max_tweet_size - suffix.length)]}#{suffix}", plugin.build_tweet(long_commit_message)
end

def test_lol_twitter_prefix_suffix
Expand All @@ -46,6 +46,6 @@ def test_lol_twitter_prefix_suffix
'suffix' => '#suffixing!'
}
Lolcommits::LolTwitter.send(:define_method, :configuration, Proc.new { plugin_config })
assert_match '@prefixing! commit msg #suffixing!', plugin.build_tweet('commit msg')
assert_equal '@prefixing! commit msg #suffixing!', plugin.build_tweet('commit msg')
end
end

0 comments on commit 926cb3d

Please sign in to comment.