You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coverage would show incomplete for the hash even though we knew everything in the hash was being used through our tests - except for the first entry in the hash, everything else shows up as red.
We needed to modify the hash like so to make it 100%:
Indeed, I also have come across this problem many times and I too agree that we should be able to write code how we see fit and rcov should be able to determine the actual amount of coverage.
This is an issue with multiline processing. There are about 6 issues here that all stem from the same source. Once those are fixed, all of these issues will be resolved.
For one of our models we needed an elaborate hash.
Ex:
FLAT_PAGES = {
"page1" => {
:lie => "content"
},
"page2" => {
:lie => "content",
:css => "content"
},
"page3" => {
:lie => "content",
:css => ["content1", "content2"],
"contact-us" => {
:lie => "contact",
:css => "aspen"
},
"trade-program" => {
:lie => "classic_trade_program",
:css => ["aspen", "aspen_wide", "aspen_sponsors"]
}
}
}
Coverage would show incomplete for the hash even though we knew everything in the hash was being used through our tests - except for the first entry in the hash, everything else shows up as red.
We needed to modify the hash like so to make it 100%:
FLAT_PAGES = {
"page1" => {
:lie => "content"},
"page2" => {
:lie => "content",
:css => "content"},
"page3" => {
:lie => "content",
:css => ["content1", "content2"],
"contact-us" => {
:lie => "contact",
:css => "aspen"},
"trade-program" => {
:lie => "classic_trade_program",
:css => ["aspen", "aspen_wide", "aspen_sponsors"]}}}
The text was updated successfully, but these errors were encountered: