Skip to content

Commit

Permalink
test works with recent ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmike committed Nov 19, 2013
1 parent 60cacbf commit 78acb53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_autocutsel.rb
Expand Up @@ -131,16 +131,16 @@ def test_autocutsel_targets
end

def test_default_selection
run_autocutsel_and_make_it_own_selection @method_name do
assert_equal @method_name, get_selection("CLIPBOARD")
run_autocutsel_and_make_it_own_selection __method__.to_s do
assert_equal __method__.to_s, get_selection("CLIPBOARD")
assert_nil get_selection("my_selection")
end
end

def test_primary_selection
clipboard_value = get_selection("CLIPBOARD")
run_autocutsel_and_make_it_own_selection @method_name, "PRIMARY" do
assert_equal @method_name, get_selection("PRIMARY")
run_autocutsel_and_make_it_own_selection __method__.to_s, "PRIMARY" do
assert_equal __method__.to_s, get_selection("PRIMARY")
assert_equal clipboard_value, get_selection("CLIPBOARD")
end
end
Expand Down

0 comments on commit 78acb53

Please sign in to comment.