Skip to content

Commit

Permalink
Split in 2 separate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abinoam committed Jul 28, 2013
1 parent 3c95961 commit 1444eff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_cursors.rb
Expand Up @@ -103,13 +103,14 @@ def reset_line(str)
end
end

should "cycle through correctly" do

should "change 'frames' with correct delay" do
$cycle_times.each_cons(2) do |t1, t2|
interval = t2-t1
assert (interval > @delay and interval < (1.5 * @delay))
end
end

should "cycle through correctly" do
assert_equal ["|", "/", "-", "\\", "|"], $cycle_steps
end

Expand Down

0 comments on commit 1444eff

Please sign in to comment.