Skip to content

Commit

Permalink
Rename private method to reflect actual behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Mange committed Jan 20, 2012
1 parent df6750e commit 279362c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/talker_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ def setup
end

def test_push_with_digest_on
expect_message_posting
stub_message_posting

svc = service(:push, {'digest' => '1'}, push_payload)
svc.receive_push
end

def test_push_with_digest_off_and_several_distinct_commits
expect_message_posting
stub_message_posting

payload = push_payload
assert payload['commits'].size > 1
Expand All @@ -23,7 +23,7 @@ def test_push_with_digest_off_and_several_distinct_commits
end

def test_push_with_digest_off_and_a_single_distinct_commit
expect_message_posting
stub_message_posting

payload = push_payload
payload['commits'] = [payload['commits'].first]
Expand All @@ -33,7 +33,7 @@ def test_push_with_digest_off_and_a_single_distinct_commit
end

def test_pull_request
expect_message_posting
stub_message_posting
svc = service(:pull_request, {}, pull_payload)
svc.receive_pull_request
end
Expand All @@ -44,7 +44,7 @@ def service(event, options = {}, *args)
end

private
def expect_message_posting
def stub_message_posting
@stubs.post "/room/1/messages.json" do |env|
assert_equal 's.talkerapp.com', env[:url].host
assert_equal 't', env[:request_headers]['x-talker-token']
Expand Down

0 comments on commit 279362c

Please sign in to comment.