Skip to content

Commit

Permalink
Test default name
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny committed Apr 2, 2014
1 parent 9d51512 commit c6af97d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/player_test.rb
Expand Up @@ -8,6 +8,18 @@ def setup
end


# Default name

def test_default_name
assert_equal "Noplayer", @player.name
end

def test_default_name_should_remove_namespace
flexmock(@player).should_receive(:class).and_return("Foo::Bar")
assert_equal "Bar", @player.name
end


# Default paused?

def test_paused_is_false_if_not_playing
Expand Down

0 comments on commit c6af97d

Please sign in to comment.