add Nokogiri to Gemfile... how did this ever work without it?
Johnathon E. Wright
committed Nov 11, 2011
commit bb9fe0b737c90b140a7ea48010a8cff6cd7f1810
Showing 2
changed files with
14 additions
and 0 deletions
Gemfile
+2
-0
| @@ | @@ -3,6 +3,8 @@ source 'http://rubygems.org' |
| # Specify your gem's dependencies in sketch.gemspec | |
| gemspec | |
| + | gem 'nokogiri' |
| + | |
| group :test do | |
| gem 'test-unit' | |
| gem 'mocha' | |
test/star_test.rb
+12
-0
| @@ | @@ -0,0 +1,12 @@ |
| + | require 'helper' |
| + | |
| + | class StarTest < Test::Unit::TestCase |
| + | |
| + | def test_that_star_is_drawn_as_a_polygon |
| + | canvas = stub |
| + | canvas.expects(:polygon).with(:points => '100,10 40,180 190,60 10,60 160,180 100,10') |
| + | art = Sketch::Star.new.draw(canvas) |
| + | end |
| + | |
| + | end |
| + | |