Permalink
Browse files

pending spec for initialization, clear and drawing one pixel

  • Loading branch information...
1 parent f84a4d5 commit 5cb098f45381c6082e604e79466634ba0cb34c55 @equivalent committed May 15, 2012
Showing with 39 additions and 0 deletions.
  1. +14 −0 spec/lib/color_spec.rb
  2. +22 −0 spec/lib/editor_spec.rb
  3. +3 −0 spec/spec_helper.rb
View
14 spec/lib/color_spec.rb
@@ -0,0 +1,14 @@
+describe Color do
+ describe 'class methods' do
+ describe 'white' do
+ it 'should represent O' do
+
+ end
+ end
+ end
+ describe 'initialize' do
+ it 'should accept argument one char string'
+ it 'should upcase argument'
+ it 'should set @char_color'
+ end
+end
View
22 spec/lib/editor_spec.rb
@@ -0,0 +1,22 @@
+describe Editor do
+ describe 'initialize' do
+ it 'should set @width and should set @height'
+ it 'width and height should be numbers'
+ it 'should call instance method initialize_image'
+ end
+
+ describe 'initialize_image instance method' do
+ it 'should set @image as 2D array with values of white color'
+ end
+
+ desribe 'clear instance method' do
+ it 'should reset image to white color'
+ end
+
+ describe 'paint_pixel instance method' do
+ it 'should accept horizontal_position, vertical_position, and color as argument'
+ it 'should paint one pixel at position with color'
+ end
+
+
+end
View
3 spec/spec_helper.rb
@@ -0,0 +1,3 @@
+require 'rspec'
+Dir['./lib/**/*.rb'].each {|file| require file }
+Dir['./spec/**/*.rb'].each {|file| require file }

0 comments on commit 5cb098f

Please sign in to comment.