diff --git a/spec/xpath_spec.rb b/spec/xpath_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/xpath_spec.rb
+++ b/spec/xpath_spec.rb
@@ -155,6 +155,19 @@ describe Capybara::XPath do
       @driver.find(@query).first.value.should == 'seeekrit'
     end
   end
+
+  describe '#button' do
+    it "should find a button by id or content" do
+      @query = @xpath.button('awe123').to_s
+      @driver.find(@query).first.value.should == 'awesome'
+      @query = @xpath.button('okay556').to_s
+      @driver.find(@query).first.value.should == 'okay'
+      @query = @xpath.button('click_me_123').to_s
+      @driver.find(@query).first.value.should == 'click_me'
+      @query = @xpath.button('Click me!').to_s
+      @driver.find(@query).first.value.should == 'click_me'
+    end
+  end
   
   describe '#radio_button' do
     it "should find a radio button by id or label" do
Spec example for XPath.button was added