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
it 'should make publish' do | |
visit edit_lead_catcher_path(unpublished_lead_cat, format: :js) | |
find('.title', text: 'Settings').click | |
find('input[name=publish]').should_not be_checked | |
check 'publish' | |
click_link 'save' | |
wait_for_ajax | |
expect(unpublished_lead_cat.published).to be | |
end |
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
You asked me to pull without telling me which branch you | |
want to rebase against, and 'branch.master.merge' in | |
your configuration file does not tell me, either. Please | |
specify which branch you want to use on the command line and | |
try again (e.g. 'git pull <repository> <refspec>'). | |
See git-pull(1) for details. | |
If you often rebase against the same branch, you may want to | |
use something like the following in your configuration file: | |
[branch "master"] |
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
<div class="row expense_amount"> | |
<div class="control-group string required error"> | |
<label class="string required control-label" for="wallet_expenses_attributes_0_name"> | |
<abbr title="required"></abbr> Expense name | |
</label> | |
<div class="controls"> | |
<input class="string required" id="wallet_expenses_attributes_0_name" name="wallet[expenses_attributes][0][name]" size="50" type="text" value="" /> | |
<span class="help-inline">is too short (minimum is 3 characters)</span> | |
</div> | |
</div> |
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
//= require jquery | |
//= require jquery_ujs | |
//= require twitter/bootstrap | |
//= require rails.validations.simple_form | |
//= require_tree . | |
//= require_self |
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
<%= f.input :name, label: 'Expense name', class: 'control-label' %> | |
<%= f.input :amount, as: :currency, wrapper: 'prepend' %> |
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
#!/usr/bin/env ruby | |
require "skrypt" | |
require "test/unit" | |
class TestSkrypt < Test::Unit::TestCase | |
def test_title_match | |
assert(true) do | |
title_match?("Row","Row") | |
end |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'nokogiri' | |
def expected_date? (str) | |
DateTime.strptime(str, '%d, %B, %Y') > Date.today-7 | |
end | |
def get_page (number) |
NewerOlder