Permalink
Browse files

Beginning the drop down matcher test. [#2 state:open]

  • Loading branch information...
1 parent c1fae5b commit 9379af14e88166355aa92b091497434dea85be84 Stephen Anderson committed Sep 28, 2008
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/drop_down_matcher_spec.rb
@@ -0,0 +1,8 @@
+require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
+
+describe 'drop_down_matcher' do
+ it 'should find matching dropdown' do
+ response = mock_model(Object, :body => '<select id="choice"><option value="val1">Choice 1</option><option value="val2">Choice 2</option></select>')
+ response.should have_dropdown('choice', ['Choice 1', 'Choice 2'])
+ end
+end

0 comments on commit 9379af1

Please sign in to comment.