Skip to content

Commit

Permalink
Adopt |reply| throughout specs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-w committed Dec 11, 2015
1 parent 204315b commit 58168f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/lita/handlers/reviewme_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
send_command("add iamvery to reviews")
send_command("review https://github.com/#{repo}/pull/#{id}")

expect(replies.last).to eq("iamvery should be on it...")
expect(reply).to eq("iamvery should be on it...")
end

it "skips assigning to the GitHub PR owner" do
Expand All @@ -85,7 +85,7 @@
send_command("add iamvery to reviews")
send_command("review https://github.com/#{repo}/pull/#{id}")

expect(replies.last).to eq("iamvery should be on it...")
expect(reply).to eq("iamvery should be on it...")
end

it "handles errors gracefully" do
Expand All @@ -97,7 +97,7 @@
send_command("add iamvery to reviews")
send_command("review #{url}")

expect(replies.last).to eq("I couldn't post a comment. (Are the permissions right?) iamvery: :eyes: #{url}")
expect(reply).to eq("I couldn't post a comment. (Are the permissions right?) iamvery: :eyes: #{url}")
end
end

Expand Down

0 comments on commit 58168f0

Please sign in to comment.