Skip to content
Permalink
Browse files

add Nokogiri to Gemfile... how did this ever work without it?

  • Loading branch information...
mustmodify committed Nov 11, 2011
1 parent 197887c commit bb9fe0b737c90b140a7ea48010a8cff6cd7f1810
Showing with 14 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +12 −0 test/star_test.rb
@@ -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'
@@ -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

0 comments on commit bb9fe0b

Please sign in to comment.
You can’t perform that action at this time.