Skip to content

Commit

Permalink
Added most simple specs for fillable_field
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrj committed Dec 26, 2010
1 parent 9809f35 commit 4fb89eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/html_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ def all(*args)
end

describe '#fillable_field' do
subject{ :fillable_field }
context "by parent label" do
it("finds inputs with text type") { get('Label text').should == 'id-text' }
it("finds inputs where label has problem chars") { get("Label text's got an apostrophe").should == 'id-problem-text' }
end

end

Expand Down

0 comments on commit 4fb89eb

Please sign in to comment.