readable tests

This commit is contained in:
Roman Heinrich 2013-03-11 19:39:51 +02:00
parent 9903cfdab6
commit de9e929152
2 changed files with 7 additions and 6 deletions

View file

@ -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

View file

@ -0,0 +1,6 @@
{
"server": "10.10.10.10",
"workspaces": [
]
}