I'm trying to mock up a hash that is dynamically generated with only 1 or 2 known key names at the top-level, so I can test with it in anticipation for converting it to a nested JSON. This is what I'm using:
ruby.exe -v
ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-mingw32]
I'm having parsing issues though, and I'm not sure why, or what exactly I'm doing wrong. I really don't know what my limitations are, but this seems like a basic formatting issue. However, I've been blind to it for the last 10 mins, so maybe there's some underlying issue? Here's my whole app so far:
tcm = { \
:tc => \
{ \
:tests => \
{ \
:alpha_tests => \
{ \
:passing_tests => {}, \
:failing_tests => \
{ \
:alpha_test_1 => {:name => "alpha_test_1", :result => "FAILED"}, \
:alpha_test_2 => {:name => "alpha_test_2", :result => "FAILED"} \
} \
}, \
:beta_tests => \
{ \
:passing_tests => \
{ \
:beta_test_1 => {:name => "beta_test_1", :result => "PASSED"} \
}, \
:failing_tests => \
{ \
:beta_test_2 => {:name => "beta_test_2", :result => "FAILED"} \
} \
} \
}, \
{ \
:test_session => 1293823 \
} \
} \
}
puts tcm