readable tests
This commit is contained in:
parent
9903cfdab6
commit
de9e929152
2 changed files with 7 additions and 6 deletions
|
@ -88,12 +88,7 @@ describe "Riemann::Dash::Config" do
|
|||
it "pretty-prints the config" do
|
||||
@config.store[:ws_config] = "test/tmp/config.json"
|
||||
@config.update_ws_config("{\"server\":\"10.10.10.10\",\"workspaces\":[]}")
|
||||
File.read("test/tmp/config.json").must_equal "{
|
||||
\"server\": \"10.10.10.10\",
|
||||
\"workspaces\": [
|
||||
|
||||
]
|
||||
}"
|
||||
File.read("test/tmp/config.json").must_equal File.read("test/fixtures/ws_config/pretty_printed_config.json")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
6
test/fixtures/ws_config/pretty_printed_config.json
vendored
Normal file
6
test/fixtures/ws_config/pretty_printed_config.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"server": "10.10.10.10",
|
||||
"workspaces": [
|
||||
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue