Skip to content

Commit b80a8c3

Browse files
committed
Use should be_nan syntax in tests
1 parent e645f21 commit b80a8c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/mondrian_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ def nonempty_crossjoin_from_cube(cube_name)
689689
MDX
690690
).
691691
columns('[Measures].[LinRegR2]').execute
692-
result.values.first.nan?.should == true
692+
result.values.first.should be_nan
693693
end
694694
end
695695

@@ -781,7 +781,7 @@ def nonempty_crossjoin_from_cube(cube_name)
781781
MDX
782782
).
783783
columns('[Measures].[LinRegVariance]').execute
784-
result.values.first.nan?.should == true
784+
result.values.first.should be_nan
785785
end
786786
end
787787

0 commit comments

Comments
 (0)