Sha256: d916d624da5abe63dea4aee760b3acdcaebe0ff12a4f8ba8133012d061db85fc
Contents?: true
Size: 289 Bytes
Versions: 3
Compression:
Stored size: 289 Bytes
Contents
module AQLHelper def compress_aql(string) string.gsub(/^[ ]*/, '').split("\n").join(' ') end def expect_aql(string) expected_aql = compress_aql(string) subject { object.aql } it_should_behave_like 'an idempotent method' it { should eql(expected_aql) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
aql-0.0.3 | spec/support/aql_helper.rb |
aql-0.0.2 | spec/support/aql_helper.rb |
aql-0.0.1 | spec/support/aql_helper.rb |