Skip to content

Commit

Permalink
Fixing tests in 1.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Bugno committed Jan 6, 2011
1 parent 0d10e6c commit 2e60f34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/integration/projects_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def teardown
assert page.has_xpath?("a[contains(@href, 'down')]")
assert ! page.has_xpath?("a[contains(@href, 'up')]")
end
click_link "↓"

click_link "\342\206\223"
within("#project_#{project1.id} .updown") do
assert page.has_xpath?("a[contains(@href, 'up=')]")
assert ! page.has_xpath?("a[contains(@href, 'down=')]")
Expand Down
2 changes: 1 addition & 1 deletion test/unit/xmpp_hook_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def xmpp_project_with_steps(steps)
def stub_xmpp(hook, message)
s = Mocha::Mock.new
s.expects(:initialize).with(hook.configuration["sender_full_jid"], hook.configuration["sender_password"]).returns(s)
hook.configuration["recipients"].each do |recipient|
hook.configuration["recipients"].to_s.split(",").each do |recipient|
s.expects(:deliver).with(recipient).returns(s)
end
s
Expand Down

0 comments on commit 2e60f34

Please sign in to comment.