Skip to content

Instantly share code, notes, and snippets.

@sshao
Created July 20, 2015 16:20
Show Gist options
  • Save sshao/24f8a5f72f3f3c6c99b7 to your computer and use it in GitHub Desktop.
Save sshao/24f8a5f72f3f3c6c99b7 to your computer and use it in GitHub Desktop.
flapping pg_query test with 1.8.7 compatible changes
$ [187_compatible] ~/devel/pg_query ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin13.4.0]
$ [187_compatible] ~/devel/pg_query be rspec spec -e 'PgQuery#truncate omits target list'
Run options: include {:full_description=>/PgQuery\#truncate\ omits\ target\ list/}
F
Failures:
1) PgQuery#truncate omits target list
Failure/Error: expect(described_class.parse(query).truncate(40)).to eq 'SELECT ... FROM xyz WHERE a = b'
expected: "SELECT ... FROM xyz WHERE a = b"
got: "SELECT ... FROM xyz WHERE ..."
(compared using ==)
# ./spec/lib/truncate_spec.rb:6
Finished in 0.00305 seconds (files took 0.10397 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./spec/lib/truncate_spec.rb:4 # PgQuery#truncate omits target list
$ [187_compatible] ~/devel/pg_query be rspec spec -e 'PgQuery#truncate omits target list'
Run options: include {:full_description=>/PgQuery\#truncate\ omits\ target\ list/}
.
Finished in 0.00266 seconds (files took 0.10427 seconds to load)
1 example, 0 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment