 defmodule VidStoreTest do
+  use ExUnit.Case
   import Should
-  use ExUnit.Case
 
   should "update count" do
     rented_video = VidStore.renting(video)


  should "rent video" do
    rented_video = VidStore.rent video

    assert :rented == rented_video.state
    assert 1 == Enum.count( rented_video.log )
  end

  should "handle multiple transitions" do
    import VidStore
    vid = video |> rent |> return |> rent |> return |> rent
    assert 5 == Enum.count( vid.log )
    assert 3 == vid.times_rented
  end
