This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script> | |
<script src="https://checkout.stripe.com/checkout.js"></script> | |
<button id="customButton">Purchase</button> | |
<label><input type="radio" name="amount" value="2000" data-description="DESCRIBE $20 PRODUCT HERE">$20</label> | |
<label><input type="radio" name="amount" value="5000" data-description="DESCRIBE $50 PRODUCT HERE">$50</label> | |
<label><input type="radio" name="amount" value="10000" data-description="DESCRIBE $100 PRODUCT HERE">$100</label> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Option 1: | |
# Use content to separate the helper from the spec | |
it "should have something" do | |
content = helper.some_helper_method | |
content.should have_tag('a', :text => 'foo') | |
end | |
# Option 2: | |
# Combine helper call and spec |