Skip to content

Instantly share code, notes, and snippets.

@AlexVPopov
Created December 21, 2017 15:31
Show Gist options
  • Save AlexVPopov/7f266ddc2858b5207fee98d22a48861b to your computer and use it in GitHub Desktop.
Save AlexVPopov/7f266ddc2858b5207fee98d22a48861b to your computer and use it in GitHub Desktop.
spec_errors
Failures:
1) Ruby2D::Image#contains? returns true if point is inside image
Failure/Error: ext_init(@path)
NoMethodError:
undefined method `ext_init' for #<Ruby2D::Image:0x007fbbaaa08c60>
# ./lib/ruby2d/image.rb:27:in `initialize'
# ./test/image_spec.rb:13:in `new'
# ./test/image_spec.rb:13:in `block (3 levels) in <top (required)>'
2) Ruby2D::Image#contains? returns true if point is not inside image
Failure/Error: ext_init(@path)
NoMethodError:
undefined method `ext_init' for #<Ruby2D::Image:0x007fbbaaa38028>
# ./lib/ruby2d/image.rb:27:in `initialize'
# ./test/image_spec.rb:18:in `new'
# ./test/image_spec.rb:18:in `block (3 levels) in <top (required)>'
3) Ruby2D::Sprite#new creates a new sprite
Failure/Error: ext_init(path)
NoMethodError:
undefined method `ext_init' for #<Ruby2D::Sprite:0x007fbbaaaa38c8>
# ./lib/ruby2d/sprite.rb:24:in `initialize'
# ./test/sprite_spec.rb:7:in `new'
# ./test/sprite_spec.rb:7:in `block (3 levels) in <top (required)>'
4) Ruby2D::Text#text= maps Time to string
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa90ef8>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:12:in `new'
# ./test/text_spec.rb:12:in `block (3 levels) in <top (required)>'
5) Ruby2D::Text#text= maps Number to string
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa8ac10>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:18:in `new'
# ./test/text_spec.rb:18:in `block (3 levels) in <top (required)>'
6) Ruby2D::Text#width is known after creation
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa81fc0>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:26:in `new'
# ./test/text_spec.rb:26:in `block (3 levels) in <top (required)>'
7) Ruby2D::Text#width is known after updating
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa7a630>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:31:in `new'
# ./test/text_spec.rb:31:in `block (3 levels) in <top (required)>'
8) Ruby2D::Text#height is known after creation
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa71f80>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:39:in `new'
# ./test/text_spec.rb:39:in `block (3 levels) in <top (required)>'
9) Ruby2D::Text#height is known after updating
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa6b540>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:44:in `new'
# ./test/text_spec.rb:44:in `block (3 levels) in <top (required)>'
10) Ruby2D::Text#contains? returns true if point is inside text
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa631d8>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:52:in `new'
# ./test/text_spec.rb:52:in `block (3 levels) in <top (required)>'
11) Ruby2D::Text#contains? returns true if point is not inside text
Failure/Error: ext_init
NameError:
undefined local variable or method `ext_init' for #<Ruby2D::Text:0x007fbbaaa59110>
# ./lib/ruby2d/text.rb:26:in `initialize'
# ./test/text_spec.rb:58:in `new'
# ./test/text_spec.rb:58:in `block (3 levels) in <top (required)>'
Finished in 0.03725 seconds (files took 0.12685 seconds to load)
85 examples, 11 failures
Failed examples:
rspec ./test/image_spec.rb:12 # Ruby2D::Image#contains? returns true if point is inside image
rspec ./test/image_spec.rb:17 # Ruby2D::Image#contains? returns true if point is not inside image
rspec ./test/sprite_spec.rb:6 # Ruby2D::Sprite#new creates a new sprite
rspec ./test/text_spec.rb:11 # Ruby2D::Text#text= maps Time to string
rspec ./test/text_spec.rb:17 # Ruby2D::Text#text= maps Number to string
rspec ./test/text_spec.rb:25 # Ruby2D::Text#width is known after creation
rspec ./test/text_spec.rb:30 # Ruby2D::Text#width is known after updating
rspec ./test/text_spec.rb:38 # Ruby2D::Text#height is known after creation
rspec ./test/text_spec.rb:43 # Ruby2D::Text#height is known after updating
rspec ./test/text_spec.rb:51 # Ruby2D::Text#contains? returns true if point is inside text
rspec ./test/text_spec.rb:57 # Ruby2D::Text#contains? returns true if point is not inside text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment