Skip to content

Commit

Permalink
add Nokogiri to Gemfile... how did this ever work without it?
Browse files Browse the repository at this point in the history
  • Loading branch information
mustmodify committed Nov 11, 2011
1 parent 197887c commit bb9fe0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
12 changes: 12 additions & 0 deletions test/star_test.rb
Original file line number Diff line number Diff line change
@@ -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.