Navigation Menu

Skip to content

Commit

Permalink
Add more cases for detection of EngineNode#live?
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 30, 2015
1 parent 1ac0759 commit 7d5a489
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/unit/test_engine_node.rb
Expand Up @@ -44,15 +44,17 @@ def test_role(data)
end

data(:no_state => nil,
:valid => {
:live_info => {
"live" => true,
})
def test_live(state)
assert_true(node(:name => "node29:2929/droonga",
:state => state).live?)
end

data(:valid => {
data(:no_live_info => {
},
:live_info => {
"live" => false,
})
def test_not_live(state)
Expand Down

0 comments on commit 7d5a489

Please sign in to comment.