Created
May 10, 2013 13:32
-
-
Save enebo/5554404 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system ~/work/sinatra2 master * 1040% JRUBY_OPTS="--2.0 -X-C" jrake spec | |
/Users/enebo/work/jruby/bin/jruby -I spec:lib:addons/patterns/spec:addons/patterns/lib -w -S rspec spec/sinatra/pattern_spec.rb addons/patterns/spec/patterns/identity_spec.rb addons/patterns/spec/patterns/rails_spec.rb addons/patterns/spec/patterns/shell_spec.rb addons/patterns/spec/patterns/simple_spec.rb | |
/Users/enebo/work/jruby/lib/ruby/gems/shared/gems/rspec-mocks-2.13.1/lib/rspec/mocks/message_expectation.rb:148 warning: `*' interpreted as argument prefix | |
....................................................................................................................................................................................................................F..............F..FF...............................................................................F................FF.................................................................................................................................................................................................................................................................................................................................F..............F..FF............................................................... | |
Failures: | |
1) Sinatra::Patterns::Rails pattern "/:foo(/:bar)" with options "{:capture=>:alpha}" | |
Failure/Error: it { should_not match('/a/2') } | |
expected "/:foo(/:bar)" not to match "/a/2" | |
# ./addons/patterns/spec/patterns/rails_spec.rb:266:in `(root)' | |
2) Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should match('/ab123xy-1') .capturing foo: 'ab', bar: '123', baz: 'xy-1' } | |
expected "/:foo:bar:baz" to capture :bar as "123" when matching "/ab123xy-1", but got "123xy-" | |
AST: | |
#<Sinatra::Pattern::Root:0x425d868f | |
@pattern="/:foo:bar:baz", | |
@payload= | |
#<Sinatra::Pattern::Group:0x1eccd65d | |
@payload= | |
[#<Sinatra::Pattern::Separator:0x1a0d8377 @payload=nil>, | |
#<Sinatra::Pattern::Capture:0x6d3206fd @payload="foo">, | |
#<Sinatra::Pattern::Capture:0x6f69040c @payload="bar">, | |
#<Sinatra::Pattern::Capture:0x5788e8f8 @payload="baz">]>> | |
Regular Expression: | |
/\A\/(?<foo>[[:alpha:]]+)(?<bar>[^\/\?#]+)(?<baz>[^\/\?#]+)\Z/ | |
# ./addons/patterns/spec/patterns/rails_spec.rb:286:in `(root)' | |
3) Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should_not match('/abcxy-1') } | |
expected "/:foo:bar:baz" not to match "/abcxy-1" | |
# ./addons/patterns/spec/patterns/rails_spec.rb:289:in `(root)' | |
4) Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should_not match('/abc1') } | |
expected "/:foo:bar:baz" not to match "/abc1" | |
# ./addons/patterns/spec/patterns/rails_spec.rb:290:in `(root)' | |
5) Sinatra::Patterns::Shell pattern "/föö" | |
Failure/Error: it { should match("/f%C3%B6%C3%B6") } | |
expected #<Sinatra::Patterns::Shell:"/föö"> to match "/f%C3%B6%C3%B6" | |
# ./addons/patterns/spec/patterns/shell_spec.rb:56:in `(root)' | |
6) Sinatra::Patterns::Shell pattern "/{foo,bar}" | |
Failure/Error: it { should match('/foo') } | |
expected #<Sinatra::Patterns::Shell:"/{foo,bar}"> to match "/foo" | |
# ./addons/patterns/spec/patterns/shell_spec.rb:85:in `(root)' | |
7) Sinatra::Patterns::Shell pattern "/{foo,bar}" | |
Failure/Error: it { should match('/bar') } | |
expected #<Sinatra::Patterns::Shell:"/{foo,bar}"> to match "/bar" | |
# ./addons/patterns/spec/patterns/shell_spec.rb:86:in `(root)' | |
8) Sinatra::Pattern pattern "/:foo(/:bar)?" with options "{:capture=>:alpha}" | |
Failure/Error: it { should_not match('/a/2') } | |
expected "/:foo(/:bar)?" not to match "/a/2" | |
# ./spec/sinatra/pattern_spec.rb:334:in `(root)' | |
9) Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should match('/ab123xy-1') .capturing foo: 'ab', bar: '123', baz: 'xy-1' } | |
expected "/:foo:bar:baz" to capture :bar as "123" when matching "/ab123xy-1", but got "123xy-" | |
AST: | |
#<Sinatra::Pattern::Root:0x6f84922c | |
@pattern="/:foo:bar:baz", | |
@payload= | |
[#<Sinatra::Pattern::Separator:0x6898bfe6 @payload=nil>, | |
#<Sinatra::Pattern::Capture:0x045ecab0 @payload="foo">, | |
#<Sinatra::Pattern::Capture:0x6b4ceb0d @payload="bar">, | |
#<Sinatra::Pattern::Capture:0x06dbd984 @payload="baz">]> | |
Regular Expression: | |
/\A\/(?<foo>[[:alpha:]]+)(?<bar>[^\/\?#]+)(?<baz>[^\/\?#]+)\Z/ | |
# ./spec/sinatra/pattern_spec.rb:354:in `(root)' | |
10) Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should_not match('/abcxy-1') } | |
expected "/:foo:bar:baz" not to match "/abcxy-1" | |
# ./spec/sinatra/pattern_spec.rb:357:in `(root)' | |
11) Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
Failure/Error: it { should_not match('/abc1') } | |
expected "/:foo:bar:baz" not to match "/abc1" | |
# ./spec/sinatra/pattern_spec.rb:358:in `(root)' | |
Finished in 1.1 seconds | |
734 examples, 11 failures | |
Failed examples: | |
rspec ./addons/patterns/spec/patterns/rails_spec.rb:266 # Sinatra::Patterns::Rails pattern "/:foo(/:bar)" with options "{:capture=>:alpha}" | |
rspec ./addons/patterns/spec/patterns/rails_spec.rb:286 # Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rspec ./addons/patterns/spec/patterns/rails_spec.rb:289 # Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rspec ./addons/patterns/spec/patterns/rails_spec.rb:290 # Sinatra::Patterns::Rails pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rspec ./addons/patterns/spec/patterns/shell_spec.rb:56 # Sinatra::Patterns::Shell pattern "/föö" | |
rspec ./addons/patterns/spec/patterns/shell_spec.rb:85 # Sinatra::Patterns::Shell pattern "/{foo,bar}" | |
rspec ./addons/patterns/spec/patterns/shell_spec.rb:86 # Sinatra::Patterns::Shell pattern "/{foo,bar}" | |
rspec ./spec/sinatra/pattern_spec.rb:334 # Sinatra::Pattern pattern "/:foo(/:bar)?" with options "{:capture=>:alpha}" | |
rspec ./spec/sinatra/pattern_spec.rb:354 # Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rspec ./spec/sinatra/pattern_spec.rb:357 # Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rspec ./spec/sinatra/pattern_spec.rb:358 # Sinatra::Pattern pattern "/:foo:bar:baz" with options "{:capture=>{:foo=>:alpha, :bar=>/\\d+/}}" | |
rake aborted! | |
Command failed with status (1): [/Users/enebo/work/jruby/bin/jruby -I spec:...] | |
org/jruby/RubyProc.java:255:in `call' | |
/Users/enebo/work/sinatra2/Rakefile:8:in `(root)' | |
org/jruby/RubyProc.java:255:in `call' | |
org/jruby/RubyArray.java:1617:in `each' | |
org/jruby/RubyArray.java:1617:in `each' | |
org/jruby/RubyArray.java:1617:in `each' | |
org/jruby/RubyKernel.java:1073:in `load' | |
Tasks: TOP => spec => spec:enabled | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment