Skip to content

Instantly share code, notes, and snippets.

@davorb
Created June 10, 2012 01:39
Show Gist options
  • Save davorb/2903472 to your computer and use it in GitHub Desktop.
Save davorb/2903472 to your computer and use it in GitHub Desktop.
rake spec 10/6/12
# I did git clone git@github.com:shoes/shoes4.git right before running rake spec
Shoes::Line
basic
behaves like movable object
 moves (FAILED - 1)
behaves like object with stroke
 sets on receiver (FAILED - 2)
 returns a color (FAILED - 3)
 defaults to black (FAILED - 4)
strokewidth
 sets (FAILED - 5)
 defaults to 1 (FAILED - 6)
specified right-to-left, bottom-to-top
behaves like basic line
 example at ./spec/shoes/line_spec.rb:11 (FAILED - 7)
left
 example at ./spec/shoes/line_spec.rb:13 (FAILED - 8)
top
 example at ./spec/shoes/line_spec.rb:12 (FAILED - 9)
height
 example at ./spec/shoes/line_spec.rb:15 (FAILED - 10)
width
 example at ./spec/shoes/line_spec.rb:14 (FAILED - 11)
created left-to-right, top-to-bottom
behaves like basic line
 example at ./spec/shoes/line_spec.rb:11 (FAILED - 12)
left
 example at ./spec/shoes/line_spec.rb:13 (FAILED - 13)
top
 example at ./spec/shoes/line_spec.rb:12 (FAILED - 14)
height
 example at ./spec/shoes/line_spec.rb:15 (FAILED - 15)
width
 example at ./spec/shoes/line_spec.rb:14 (FAILED - 16)
specified right-to-left, top-to-bottom
behaves like basic line
 example at ./spec/shoes/line_spec.rb:11 (FAILED - 17)
left
 example at ./spec/shoes/line_spec.rb:13 (FAILED - 18)
top
 example at ./spec/shoes/line_spec.rb:12 (FAILED - 19)
height
 example at ./spec/shoes/line_spec.rb:15 (FAILED - 20)
width
 example at ./spec/shoes/line_spec.rb:14 (FAILED - 21)
specified left-to-right, bottom-to-top
behaves like basic line
 example at ./spec/shoes/line_spec.rb:11 (FAILED - 22)
left
 example at ./spec/shoes/line_spec.rb:13 (FAILED - 23)
top
 example at ./spec/shoes/line_spec.rb:12 (FAILED - 24)
height
 example at ./spec/shoes/line_spec.rb:15 (FAILED - 25)
width
 example at ./spec/shoes/line_spec.rb:14 (FAILED - 26)
Shoes::Logger
.get
 retrieves a registered logger
.register
 allows new loggers to be registered
Shoes built-in colors
 there are 140
aquamarine
 should eq #<Shoes::Color:0x1aec0d1 @blue=212, @green=255, @red=127, @alpha=255>
papayawhip
 should eq #<Shoes::Color:0xba63a2 @blue=213, @green=239, @red=255, @alpha=255>
tomato
 should eq #<Shoes::Color:0x1c190a2 @blue=71, @green=99, @red=255, @alpha=255>
differences from Red Shoes
floats
 too-small values become 0
 too-large values become 255
integers
 too-small values become 0
 too-large values become 255
unusual input
negative values
 256 and neighbors
 -1 does not become 255
 float behaviour
too-large values
 green does not get modulo-256'd into bounds
 red does not get modulo-256'd into bounds
 blue does not get modulo-256'd into bounds
edge cases
 1.0 does not become 0
 0.0 does not become 1
Shoes::Logger::Log4j
 delegates to a Log4jruby::Logger instance
Shoes::Color
white
 should not be black
 should be white
comparable
 is less than when darker
 is equal when values are equal
 is greater than when lighter
same rgb values
 is greater than when more opaque
 is less than when less opaque
peru
without optional alpha
alpha
 should eq 255
behaves like peru
 should not be white
 should not be black
red
 should eq 205
class
 should eq Shoes::Color
blue
 should eq 63
green
 should eq 133
with optional alpha
alpha
 should eq 100
behaves like peru
 should not be white
 should not be black
red
 should eq 205
class
 should eq Shoes::Color
blue
 should eq 63
green
 should eq 133
using floats
without optional alpha
alpha
 should eq 255
behaves like peru
 should not be white
 should not be black
red
 should eq 205
class
 should eq Shoes::Color
blue
 should eq 63
green
 should eq 133
with optional alpha
alpha
 should eq 100
behaves like peru
 should not be white
 should not be black
red
 should eq 205
class
 should eq Shoes::Color
blue
 should eq 63
green
 should eq 133
light and dark
 dark color is dark
 light color is light
rgb
 accepts alpha
 returns a new Shoes::Color object
 allows alpha to be omitted
black
without optional alpha
alpha
 should eq 255
behaves like black
 should not be white
 should be black
red
 should eq 0
class
 should eq Shoes::Color
blue
 should eq 0
green
 should eq 0
with optional alpha
alpha
 should eq 0
behaves like black
 should not be white
 should be black
red
 should eq 0
class
 should eq Shoes::Color
blue
 should eq 0
green
 should eq 0
using floats
without optional alpha
alpha
 should eq 255
behaves like black
 should not be white
 should be black
red
 should eq 0
class
 should eq Shoes::Color
blue
 should eq 0
green
 should eq 0
with optional alpha
alpha
 should eq 0
behaves like black
 should not be white
 should be black
red
 should eq 0
class
 should eq Shoes::Color
blue
 should eq 0
green
 should eq 0
transparency
 only opaque colors should be opaque
 only transparent colors are transparent
Basic Element Methods
strokewidth
 sets on receiver
 returns a number
 applies to subsequently created objects
fill
 sets on receiver
 returns a color
 applies to subsequently created objects
oval
 produces a Shoes::Oval (FAILED - 27)
shape
 receives style from app (FAILED - 28)
 example at ./spec/shoes/element_methods_spec.rb:63 (FAILED - 29)
line
 makes a Shoes::Line
rgb
 defaults to opaque
 sends args to Shoes::Color
flow
 should use self, gui_container, opts, blk
stroke
 sets on receiver
 returns a color
 applies to subsequently created objects
animate
with numeric argument
behaves like 10fps
framerate
 should eq 10
behaves like basic
 should be an instance of Shoes::Animation
defaults
framerate
 should eq 24
behaves like basic
 should be an instance of Shoes::Animation
Shoes::Button
initialize
 should set accessors
behaves like movable object
 moves
Shoes::Flow
initialize
 should set accessors
Shoes::Oval
(eccentric)
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 200
width
 should eq 100
basic
behaves like object with fill
 sets on receiver
 returns a color
 defaults to black
behaves like object with stroke
 sets on receiver
 returns a color
 defaults to black
strokewidth
 sets
 defaults to 1
behaves like movable object
 moves
(circle) created with style hash:
left, top, height, width, center: false
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
left, top, height, width
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
left, top, width, height, center: true
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
left, top, radius
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
(circle) created with explicit arguments:
radius
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
width and height
behaves like circle
 should be an instance of Shoes::Oval
left
 should eq 20
top
 should eq 30
height
 should eq 100
width
 should eq 100
A Shoes Framework
 should include Framework Plugins
Shoes::Shape
behaves like object with style
 merges new styles (FAILED - 30)
behaves like object with stroke
 sets on receiver (FAILED - 31)
 returns a color (FAILED - 32)
 defaults to black (FAILED - 33)
strokewidth
 sets (FAILED - 34)
 defaults to 1 (FAILED - 35)
octagon
top
 example at ./spec/shoes/shape_spec.rb:23 (FAILED - 36)
height
 example at ./spec/shoes/shape_spec.rb:27 (FAILED - 37)
right
 example at ./spec/shoes/shape_spec.rb:24 (FAILED - 38)
bottom
 example at ./spec/shoes/shape_spec.rb:25 (FAILED - 39)
behaves like movable object
 moves (FAILED - 40)
left
 example at ./spec/shoes/shape_spec.rb:22 (FAILED - 41)
width
 example at ./spec/shoes/shape_spec.rb:26 (FAILED - 42)
behaves like movable object
 moves (FAILED - 43)
Shoes::App
initialize
 should set default accessor values
 should set accessors from constructor args
 initializes style hash
 should set accessors from opts
stroke
 passes default to objects (FAILED - 44)
 defaults to black
 passes new value to objects (FAILED - 45)
style
behaves like object with style
 merges new styles
strokewidth
 passes default to objects (FAILED - 46)
 defaults to 1
 passes new values to objects (FAILED - 47)
default styles
 is independent among Shoes::App instances (FAILED - 48)
Shoes::Sound
gui_container
 should equal #<RSpec::Mocks::Mock:0x1980 @name="gui container">
filepath
 should eq "../../samples/sounds/61847__simon-rue__boink-v3.wav"
Shoes::Configuration
backend
 raises ArgumentError on bad input
:mock
 sets backend to Shoes::Mock
#logger
:log4j
 uses Log4j (FAILED - 49)
:ruby
 uses the Ruby logger (FAILED - 50)
#backend_for
 returns shape backend object (FAILED - 51)
Shoes::Logger::Ruby
 delegates to a Logger instance
Failures:
1) Shoes::Line basic behaves like movable object moves
Failure/Error: subject.move(300, 200)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "movable object" called from ./spec/shoes/line_spec.rb:7
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/common_methods.rb:3:in `(root)'
2) Shoes::Line basic behaves like object with stroke sets on receiver
Failure/Error: subject.stroke = color
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/line_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/shared_element_method.rb:12:in `(root)'
3) Shoes::Line basic behaves like object with stroke returns a color
Failure/Error: c = subject.stroke = color
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/line_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/shared_element_method.rb:7:in `(root)'
4) Shoes::Line basic behaves like object with stroke defaults to black
Failure/Error: subject.stroke.should eq(Shoes::COLORS.fetch :black)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/line_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/shared_element_method.rb:19:in `(root)'
5) Shoes::Line basic behaves like object with stroke strokewidth sets
Failure/Error: subject.strokewidth = 2
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/line_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/shared_element_method.rb:28:in `(root)'
6) Shoes::Line basic behaves like object with stroke strokewidth defaults to 1
Failure/Error: subject.strokewidth.should eq(1)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/line_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:5:in `(root)'
 # ./spec/shoes/shared_examples/shared_element_method.rb:24:in `(root)'
7) Shoes::Line specified right-to-left, bottom-to-top behaves like basic line
Failure/Error: subject { Shoes::Line.new(100, 60, 10, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:30
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:29:in `(root)'
 # ./spec/shoes/line_spec.rb:11:in `(root)'
8) Shoes::Line specified right-to-left, bottom-to-top behaves like basic line left
Failure/Error: subject { Shoes::Line.new(100, 60, 10, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:30
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:29:in `(root)'
 # ./spec/shoes/line_spec.rb:13:in `(root)'
9) Shoes::Line specified right-to-left, bottom-to-top behaves like basic line top
Failure/Error: subject { Shoes::Line.new(100, 60, 10, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:30
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:29:in `(root)'
 # ./spec/shoes/line_spec.rb:12:in `(root)'
10) Shoes::Line specified right-to-left, bottom-to-top behaves like basic line height
Failure/Error: subject { Shoes::Line.new(100, 60, 10, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:30
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:29:in `(root)'
 # ./spec/shoes/line_spec.rb:15:in `(root)'
11) Shoes::Line specified right-to-left, bottom-to-top behaves like basic line width
Failure/Error: subject { Shoes::Line.new(100, 60, 10, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:30
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:29:in `(root)'
 # ./spec/shoes/line_spec.rb:14:in `(root)'
12) Shoes::Line created left-to-right, top-to-bottom behaves like basic line
Failure/Error: subject { Shoes::Line.new(10, 15, 100, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:20
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:19:in `(root)'
 # ./spec/shoes/line_spec.rb:11:in `(root)'
13) Shoes::Line created left-to-right, top-to-bottom behaves like basic line left
Failure/Error: subject { Shoes::Line.new(10, 15, 100, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:20
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:19:in `(root)'
 # ./spec/shoes/line_spec.rb:13:in `(root)'
14) Shoes::Line created left-to-right, top-to-bottom behaves like basic line top
Failure/Error: subject { Shoes::Line.new(10, 15, 100, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:20
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:19:in `(root)'
 # ./spec/shoes/line_spec.rb:12:in `(root)'
15) Shoes::Line created left-to-right, top-to-bottom behaves like basic line height
Failure/Error: subject { Shoes::Line.new(10, 15, 100, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:20
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:19:in `(root)'
 # ./spec/shoes/line_spec.rb:15:in `(root)'
16) Shoes::Line created left-to-right, top-to-bottom behaves like basic line width
Failure/Error: subject { Shoes::Line.new(10, 15, 100, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:20
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:19:in `(root)'
 # ./spec/shoes/line_spec.rb:14:in `(root)'
17) Shoes::Line specified right-to-left, top-to-bottom behaves like basic line
Failure/Error: subject { Shoes::Line.new(100, 15, 10, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:25
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:24:in `(root)'
 # ./spec/shoes/line_spec.rb:11:in `(root)'
18) Shoes::Line specified right-to-left, top-to-bottom behaves like basic line left
Failure/Error: subject { Shoes::Line.new(100, 15, 10, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:25
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:24:in `(root)'
 # ./spec/shoes/line_spec.rb:13:in `(root)'
19) Shoes::Line specified right-to-left, top-to-bottom behaves like basic line top
Failure/Error: subject { Shoes::Line.new(100, 15, 10, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:25
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:24:in `(root)'
 # ./spec/shoes/line_spec.rb:12:in `(root)'
20) Shoes::Line specified right-to-left, top-to-bottom behaves like basic line height
Failure/Error: subject { Shoes::Line.new(100, 15, 10, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:25
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:24:in `(root)'
 # ./spec/shoes/line_spec.rb:15:in `(root)'
21) Shoes::Line specified right-to-left, top-to-bottom behaves like basic line width
Failure/Error: subject { Shoes::Line.new(100, 15, 10, 60) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:25
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:24:in `(root)'
 # ./spec/shoes/line_spec.rb:14:in `(root)'
22) Shoes::Line specified left-to-right, bottom-to-top behaves like basic line
Failure/Error: subject { Shoes::Line.new(10, 60, 100, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:35
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:34:in `(root)'
 # ./spec/shoes/line_spec.rb:11:in `(root)'
23) Shoes::Line specified left-to-right, bottom-to-top behaves like basic line left
Failure/Error: subject { Shoes::Line.new(10, 60, 100, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:35
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:34:in `(root)'
 # ./spec/shoes/line_spec.rb:13:in `(root)'
24) Shoes::Line specified left-to-right, bottom-to-top behaves like basic line top
Failure/Error: subject { Shoes::Line.new(10, 60, 100, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:35
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:34:in `(root)'
 # ./spec/shoes/line_spec.rb:12:in `(root)'
25) Shoes::Line specified left-to-right, bottom-to-top behaves like basic line height
Failure/Error: subject { Shoes::Line.new(10, 60, 100, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:35
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:34:in `(root)'
 # ./spec/shoes/line_spec.rb:15:in `(root)'
26) Shoes::Line specified left-to-right, bottom-to-top behaves like basic line width
Failure/Error: subject { Shoes::Line.new(10, 60, 100, 15) }
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "basic line" called from ./spec/shoes/line_spec.rb:35
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./spec/shoes/line_spec.rb:34:in `(root)'
 # ./spec/shoes/line_spec.rb:14:in `(root)'
27) Basic Element Methods oval produces a Shoes::Oval
Failure/Error: ElementMethodsShoeLaces.new.oval(10, 50, 250).should be_an_instance_of(Shoes::Oval)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/oval.rb:35:in `initialize'
 # ./lib/shoes/element_methods.rb:121:in `oval'
 # ./spec/shoes/element_methods_spec.rb:48:in `(root)'
28) Basic Element Methods shape receives style from app
Failure/Error: app.shape {
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./lib/shoes/element_methods.rb:126:in `shape'
 # ./spec/shoes/element_methods_spec.rb:55:in `(root)'
 # ./spec/shoes/element_methods_spec.rb:68:in `(root)'
29) Basic Element Methods shape
Failure/Error: app.shape {
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./lib/shoes/element_methods.rb:126:in `shape'
 # ./spec/shoes/element_methods_spec.rb:55:in `(root)'
 # ./spec/shoes/element_methods_spec.rb:63:in `(root)'
30) Shoes::Shape behaves like object with style merges new styles
Failure/Error: old_style = subject.style
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with style" called from ./spec/shoes/shape_spec.rb:5
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/style.rb:3:in `(root)'
31) Shoes::Shape behaves like object with stroke sets on receiver
Failure/Error: subject.stroke = color
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/shape_spec.rb:4
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/shared_element_method.rb:12:in `(root)'
32) Shoes::Shape behaves like object with stroke returns a color
Failure/Error: c = subject.stroke = color
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/shape_spec.rb:4
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/shared_element_method.rb:7:in `(root)'
33) Shoes::Shape behaves like object with stroke defaults to black
Failure/Error: subject.stroke.should eq(Shoes::COLORS.fetch :black)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/shape_spec.rb:4
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/shared_element_method.rb:19:in `(root)'
34) Shoes::Shape behaves like object with stroke strokewidth sets
Failure/Error: subject.strokewidth = 2
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/shape_spec.rb:4
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/shared_element_method.rb:28:in `(root)'
35) Shoes::Shape behaves like object with stroke strokewidth defaults to 1
Failure/Error: subject.strokewidth.should eq(1)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "object with stroke" called from ./spec/shoes/shape_spec.rb:4
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/shared_element_method.rb:24:in `(root)'
36) Shoes::Shape octagon top
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:23:in `(root)'
37) Shoes::Shape octagon height
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:27:in `(root)'
38) Shoes::Shape octagon right
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:24:in `(root)'
39) Shoes::Shape octagon bottom
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:25:in `(root)'
40) Shoes::Shape octagon behaves like movable object moves
Failure/Error: subject.move(300, 200)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "movable object" called from ./spec/shoes/shape_spec.rb:29
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shared_examples/common_methods.rb:3:in `(root)'
41) Shoes::Shape octagon left
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:22:in `(root)'
42) Shoes::Shape octagon width
Failure/Error: subject { Shoes::Shape.new Hash.new, draw }
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shape_spec.rb:20:in `(root)'
 # ./spec/shoes/shape_spec.rb:26:in `(root)'
43) Shoes::Shape behaves like movable object moves
Failure/Error: subject.move(300, 200)
ArgumentError:
wrong number of arguments (2 for 0)
Shared Example Group: "movable object" called from ./spec/shoes/shape_spec.rb:6
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/shape.rb:31:in `initialize'
 # ./spec/shoes/shared_examples/common_methods.rb:3:in `(root)'
44) Shoes::App stroke passes default to objects
Failure/Error: subject.oval(100, 100, 100).style[:stroke].should eq(black)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/oval.rb:35:in `initialize'
 # ./lib/shoes/element_methods.rb:121:in `oval'
 # ./spec/shoes/app_spec.rb:77:in `(root)'
45) Shoes::App stroke passes new value to objects
Failure/Error: subject.oval(100, 100, 100).style[:stroke].should eq(goldenrod)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/oval.rb:35:in `initialize'
 # ./lib/shoes/element_methods.rb:121:in `oval'
 # ./spec/shoes/app_spec.rb:82:in `(root)'
46) Shoes::App strokewidth passes default to objects
Failure/Error: subject.line(0, 100, 100, 0).style[:strokewidth].should eq(1)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./lib/shoes/element_methods.rb:108:in `line'
 # ./spec/shoes/app_spec.rb:60:in `(root)'
47) Shoes::App strokewidth passes new values to objects
Failure/Error: subject.line(0, 100, 100, 0).style[:strokewidth].should eq(10)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./lib/shoes/element_methods.rb:108:in `line'
 # ./spec/shoes/app_spec.rb:65:in `(root)'
48) Shoes::App default styles is independent among Shoes::App instances
Failure/Error: app1.line(0, 100, 100, 0).style[:strokewidth].should == 10
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./lib/shoes/line.rb:21:in `initialize'
 # ./lib/shoes/element_methods.rb:108:in `line'
 # ./spec/shoes/app_spec.rb:92:in `(root)'
49) Shoes::Configuration#logger :log4j uses Log4j
Failure/Error: Shoes.logger.should be_an_instance_of(Shoes::Logger::Log4j)
expected #<Log4jruby::Logger:0x1f4d7c0> to be an instance of Shoes::Logger::Log4j
 # ./spec/shoes/configuration_spec.rb:19:in `(root)'
50) Shoes::Configuration#logger :ruby uses the Ruby logger
Failure/Error: Shoes.logger.should be_an_instance_of(Shoes::Logger::Ruby)
expected #<Logger:0x3580ab @logdev=#<Logger::LogDevice:0x9267fe @shift_age=nil, @filename=nil, @dev=#<IO:fd 1>, @mutex=#<Logger::LogDevice::LogDeviceMutex:0x1e96c95 @mon_count=0, @mon_mutex=#<Mutex:0x1d7b155>, @mon_owner=nil>, @shift_size=nil>, @formatter=nil, @progname=nil, @default_formatter=#<Logger::Formatter:0x1bb7081 @datetime_format=nil>, @level=0> to be an instance of Shoes::Logger::Ruby
 # ./spec/shoes/configuration_spec.rb:11:in `(root)'
51) Shoes::Configuration#backend_for returns shape backend object
Failure/Error: Shoes.configuration.backend_for(dsl_object, args).should be_instance_of(Shoes::Mock::Shape)
ArgumentError:
wrong number of arguments (2 for 0)
 # ./lib/shoes/configuration.rb:72:in `backend_for'
 # ./spec/shoes/configuration_spec.rb:43:in `(root)'
Finished in 1.03 seconds
217 examples, 51 failures
Failed examples:
rspec ./spec/shoes/shared_examples/common_methods.rb:2 # Shoes::Line basic behaves like movable object moves
rspec ./spec/shoes/shared_examples/shared_element_method.rb:11 # Shoes::Line basic behaves like object with stroke sets on receiver
rspec ./spec/shoes/shared_examples/shared_element_method.rb:6 # Shoes::Line basic behaves like object with stroke returns a color
rspec ./spec/shoes/shared_examples/shared_element_method.rb:18 # Shoes::Line basic behaves like object with stroke defaults to black
rspec ./spec/shoes/shared_examples/shared_element_method.rb:27 # Shoes::Line basic behaves like object with stroke strokewidth sets
rspec ./spec/shoes/shared_examples/shared_element_method.rb:23 # Shoes::Line basic behaves like object with stroke strokewidth defaults to 1
rspec ./spec/shoes/line_spec.rb:11 # Shoes::Line specified right-to-left, bottom-to-top behaves like basic line 
rspec ./spec/shoes/line_spec.rb:13 # Shoes::Line specified right-to-left, bottom-to-top behaves like basic line left 
rspec ./spec/shoes/line_spec.rb:12 # Shoes::Line specified right-to-left, bottom-to-top behaves like basic line top 
rspec ./spec/shoes/line_spec.rb:15 # Shoes::Line specified right-to-left, bottom-to-top behaves like basic line height 
rspec ./spec/shoes/line_spec.rb:14 # Shoes::Line specified right-to-left, bottom-to-top behaves like basic line width 
rspec ./spec/shoes/line_spec.rb:11 # Shoes::Line created left-to-right, top-to-bottom behaves like basic line 
rspec ./spec/shoes/line_spec.rb:13 # Shoes::Line created left-to-right, top-to-bottom behaves like basic line left 
rspec ./spec/shoes/line_spec.rb:12 # Shoes::Line created left-to-right, top-to-bottom behaves like basic line top 
rspec ./spec/shoes/line_spec.rb:15 # Shoes::Line created left-to-right, top-to-bottom behaves like basic line height 
rspec ./spec/shoes/line_spec.rb:14 # Shoes::Line created left-to-right, top-to-bottom behaves like basic line width 
rspec ./spec/shoes/line_spec.rb:11 # Shoes::Line specified right-to-left, top-to-bottom behaves like basic line 
rspec ./spec/shoes/line_spec.rb:13 # Shoes::Line specified right-to-left, top-to-bottom behaves like basic line left 
rspec ./spec/shoes/line_spec.rb:12 # Shoes::Line specified right-to-left, top-to-bottom behaves like basic line top 
rspec ./spec/shoes/line_spec.rb:15 # Shoes::Line specified right-to-left, top-to-bottom behaves like basic line height 
rspec ./spec/shoes/line_spec.rb:14 # Shoes::Line specified right-to-left, top-to-bottom behaves like basic line width 
rspec ./spec/shoes/line_spec.rb:11 # Shoes::Line specified left-to-right, bottom-to-top behaves like basic line 
rspec ./spec/shoes/line_spec.rb:13 # Shoes::Line specified left-to-right, bottom-to-top behaves like basic line left 
rspec ./spec/shoes/line_spec.rb:12 # Shoes::Line specified left-to-right, bottom-to-top behaves like basic line top 
rspec ./spec/shoes/line_spec.rb:15 # Shoes::Line specified left-to-right, bottom-to-top behaves like basic line height 
rspec ./spec/shoes/line_spec.rb:14 # Shoes::Line specified left-to-right, bottom-to-top behaves like basic line width 
rspec ./spec/shoes/element_methods_spec.rb:47 # Basic Element Methods oval produces a Shoes::Oval
rspec ./spec/shoes/element_methods_spec.rb:65 # Basic Element Methods shape receives style from app
rspec ./spec/shoes/element_methods_spec.rb:63 # Basic Element Methods shape 
rspec ./spec/shoes/shared_examples/style.rb:2 # Shoes::Shape behaves like object with style merges new styles
rspec ./spec/shoes/shared_examples/shared_element_method.rb:11 # Shoes::Shape behaves like object with stroke sets on receiver
rspec ./spec/shoes/shared_examples/shared_element_method.rb:6 # Shoes::Shape behaves like object with stroke returns a color
rspec ./spec/shoes/shared_examples/shared_element_method.rb:18 # Shoes::Shape behaves like object with stroke defaults to black
rspec ./spec/shoes/shared_examples/shared_element_method.rb:27 # Shoes::Shape behaves like object with stroke strokewidth sets
rspec ./spec/shoes/shared_examples/shared_element_method.rb:23 # Shoes::Shape behaves like object with stroke strokewidth defaults to 1
rspec ./spec/shoes/shape_spec.rb:23 # Shoes::Shape octagon top 
rspec ./spec/shoes/shape_spec.rb:27 # Shoes::Shape octagon height 
rspec ./spec/shoes/shape_spec.rb:24 # Shoes::Shape octagon right 
rspec ./spec/shoes/shape_spec.rb:25 # Shoes::Shape octagon bottom 
rspec ./spec/shoes/shared_examples/common_methods.rb:2 # Shoes::Shape octagon behaves like movable object moves
rspec ./spec/shoes/shape_spec.rb:22 # Shoes::Shape octagon left 
rspec ./spec/shoes/shape_spec.rb:26 # Shoes::Shape octagon width 
rspec ./spec/shoes/shared_examples/common_methods.rb:2 # Shoes::Shape behaves like movable object moves
rspec ./spec/shoes/app_spec.rb:76 # Shoes::App stroke passes default to objects
rspec ./spec/shoes/app_spec.rb:80 # Shoes::App stroke passes new value to objects
rspec ./spec/shoes/app_spec.rb:59 # Shoes::App strokewidth passes default to objects
rspec ./spec/shoes/app_spec.rb:63 # Shoes::App strokewidth passes new values to objects
rspec ./spec/shoes/app_spec.rb:87 # Shoes::App default styles is independent among Shoes::App instances
rspec ./spec/shoes/configuration_spec.rb:18 # Shoes::Configuration#logger :log4j uses Log4j
rspec ./spec/shoes/configuration_spec.rb:10 # Shoes::Configuration#logger :ruby uses the Ruby logger
rspec ./spec/shoes/configuration_spec.rb:42 # Shoes::Configuration#backend_for returns shape backend object
Randomized with seed 18712
Coverage report generated for RSpec to D:/tmp/shoes4/coverage. 1023 / 1023 LOC (100.0%) covered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment